以下是通达信富力顶底趋势源码(无源码的请下载附件导入)
{富力顶底趋势: 副图}
VAR1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR2:=SMA(VAR1,9,1);
VAR3:=SMA(VAR2,9,1);
出击:3*VAR2-2*VAR3,COLORYELLOW,LINETHICK2;
买线:LLV(MA(出击,3),13),COLOR9932CD,LINETHICK2;
VAR出击:出击,COLORWHITE,LINETHICK2;
SS:IF(VAR出击>REF(VAR出击,1),VAR出击,DRAWNULL),COLOR00007C,LINETHICK2;
ZP:IF(VAR出击=REF(VAR出击,1),VAR出击,DRAWNULL),COLORWHITE,LINETHICK2;
XJ:IF(VAR出击<REF(VAR出击,1),VAR出击,DRAWNULL),COLORBLUE,LINETHICK2;
VAR4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*(-100);
VAR5:=SMA(VAR4,9,1);
VAR6:=SMA(VAR5,9,1);
出击1:3*VAR5-2*VAR6,COLORYELLOW,LINETHICK2;
卖线1:LLV(MA(出击1,3),13),COLOR238E23,LINETHICK2;
VAR出击1:出击1,COLORGREEN,LINETHICK2;
SS1:IF(VAR出击1>REF(VAR出击1,1),VAR出击1,DRAWNULL),COLORFF7070,LINETHICK2;
ZP1:IF(VAR出击1=REF(VAR出击1,1),VAR出击1,DRAWNULL),COLORWHITE,LINETHICK2;
XJ1:IF(VAR出击1<REF(VAR出击1,1),VAR出击1,DRAWNULL),COLOR4D4DFF,LINETHICK2;
646311803.jpg
|