%> 同花顺五K翻红指标公式_股票学习视频教程网
同花顺五K翻红指标公式 1406

LC:=REF(CLOSE,1);

RSI1:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;

TPV6:=REF(RSI1,1);

STICKLINE(RSI1>=TPV6,LOW*1.5,HIGH*1.5,0,1),RGB(255,0,0);

STICKLINE(RSI1>=TPV6,CLOSE*1.5,OPEN*1.5,8,1),RGB(255,0,0);

STICKLINE(RSI1<TPV6,LOW*1.5,HIGH*1.5,0,1),RGB(0,255,0);

STICKLINE(RSI1<TPV6,CLOSE*1.5,OPEN*1.5,8,0),RGB(0,255,0);

//================================================

BIAS3:(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;

TPV5:=REF(BIAS3,1);

STICKLINE(BIAS3>=TPV5,LOW*1.4,HIGH*1.4,0,1),RGB(255,0,0);

STICKLINE(BIAS3>=TPV5,CLOSE*1.4,OPEN*1.4,8,1),RGB(255,0,0);

STICKLINE(BIAS3<TPV5,LOW*1.4,HIGH*1.4,0,1),RGB(0,255,0);

STICKLINE(BIAS3<TPV5,CLOSE*1.4,OPEN*1.4,8,0),RGB(0,255,0);

//================================================

MACD参数:MACD.Diff;

TPV4:=REF(MACD参数,1);

STICKLINE(MACD参数>=TPV4,LOW*1.3,HIGH*1.3,0,1),RGB(255,0,0);

STICKLINE(MACD参数>=TPV4,CLOSE*1.3,OPEN*1.3,8,1),RGB(255,0,0);

STICKLINE(MACD参数<TPV4,LOW*1.3,HIGH*1.3,0,1),RGB(0,255,0);

STICKLINE(MACD参数<TPV4,CLOSE*1.3,OPEN*1.3,8,0),RGB(0,255,0);

//================================================

DPO:CLOSE*1-REF(MA(CLOSE,20),10);

TPV3:=REF(DPO,1);//MA(DPO,6);

STICKLINE(DPO>=TPV3,LOW*1.2,HIGH*1.2,0,1),RGB(255,0,0);

STICKLINE(DPO>=TPV3,CLOSE*1.2,OPEN*1.2,8,1),RGB(255,0,0);

STICKLINE(DPO<TPV3,LOW*1.2,HIGH*1.2,0,1),RGB(0,255,0);

STICKLINE(DPO<TPV3,CLOSE*1.2,OPEN*1.2,8,0),RGB(0,255,0);

//================================================

CROSS1:=RSI1>TPV6;

CROSS2:=BIAS3>TPV5;

CROSS3:=MACD参数>TPV4;

CROSS4:=DPO>TPV3;

CROSS5:=CROSS1=1 AND CROSS2=1 AND CROSS3=1 AND CROSS4=1;

持股:IF(CROSS5=1,1,0),colorff00FF;

//STICKLINE(CROSS5=1,LOW*1.2,CLOSE*1.5,6,1),colorff00FF;

//================================================

买线:=MA(C,3);

TPV2:REF(买线,1);

STICKLINE(买线>=TPV2,LOW*1.1,HIGH*1.1,0.1,1),colorred;

STICKLINE(买线>=TPV2,CLOSE*1.1,OPEN*1.1,8,1),colorred;

STICKLINE(买线<TPV2,CLOSE*1.1,OPEN*1.1,8,0),color00ff00;

STICKLINE(买线<TPV2,LOW*1.1,HIGH*1.1,0.1,1),color00ff00;

STICKLINE(CROSS(买线,TPV2),OPEN*1.1,CLOSE*1.1,6,0),colorff00ff;

STICKLINE(CROSS(TPV2,买线),OPEN*1.1,CLOSE*1.1,6,0),colorffff00;

//=================================================================

VRA1:MA(CLOSE,5);

UB:=VRA1+2*STD(CLOSE,5);

LB:=VRA1-2*STD(CLOSE,5);

VRA2:=MA(CLOSE,34);

STICKLINE(CLOSE>=VRA1,LOW,HIGH,0,0),color0000ff;

STICKLINE(CLOSE>=VRA1,CLOSE,OPEN,8,1),color0000ff;

STICKLINE(CLOSE<VRA1,LOW,HIGH,0,0),color0000ff;

STICKLINE(CLOSE<VRA1,CLOSE,OPEN,8,0),color00ff00;

DRAWTEXT(CROSS(CLOSE,VRA1),LOW,'B'),ALIGN1,VALIGN0,Color208FFF,LINETHICK1;

//DRAWTEXT(CROSS(VRA1,CLOSE),HIGH,'▔'),ALIGN1,VALIGN0,ColorFFFF00,LINETHICK1;



 

{股票教程网-http://bkqg.net承接通达信软件和公式破解,普通加密破解,完全加密破解,导入密码破解,时间限制破解,公式编写,可按您的要求写公式指标,价格按难度不同报价,有需要可以找我们}