同花顺顶底警示短线副图指标 源码介绍
同花顺顶底警示短线副图指标 源码
底部确立很准,顶部参考
VAR1:=IF(DATE>=1990601,0,1);
VAR2:=TROUGHBARS(3,15,1)<10;
VAR3:=PEAKBARS(3,15,1)<10;
VAR4:=IF(VAR2=1,50,0);
VAR5:=IF(VAR3=1,50,0);
底部:= IF(VAR4=50,50,0);
头部:= IF(VAR5=50,100,0);
a:IF( 底部>REF(底部,1),1,0);
aa:IF(头部>REF(头部,1),1,0);
DRAWTEXT(a=0.5,0,'买' ),colorred;
DRAWTEXT(aa=0.5,1.8,'卖'),colorblue;
gd46973