以下是通达信顶天立地做波段源码用法附图(无源码的请下载附件导入)
快线:SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),3,1),3,1),COLOR0000FF;
慢线:SMA(快线,3,1),COLOR00FFFF;
DRAWTEXT(CROSS(慢线,快线) AND 快线>75,75,'顶天 '),COLOR008000;
STICKLINE(CROSS(慢线,快线) AND 快线>75,100,75,5,0),COLOR008000;
DRAWTEXT(CROSS(快线,慢线) AND 快线>30,35,'空中加油'),COLOR0099FF;
STICKLINE(CROSS(快线,慢线) AND 快线>30,20,35,6,0),COLOR0099FF;
DRAWTEXT(CROSS(快线,慢线) AND 快线<30,25,'立地 '),COLORWHITE;
STICKLINE(CROSS(快线,慢线) AND 快线<30,0,25,5,0),COLORWHITE;
RSI5:=(SMA(MAX(CLOSE-REF(CLOSE,1),0),3,1))/(SMA(ABS(CLOSE-REF(CLOSE,1)),3,1))*5;
WR10:=5*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3));
STICKLINE(RSI5-WR10>0,0,RSI5-WR10,1,0),COLORYELLOW;
651377463.jpg
|