编写要求:
理想各位高手,麻烦哪位帮忙把下面的神仙脚修改成选股公式,谢谢了!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,10,0);多头能量:0,COLORWHITE,LINETHICK2;买入:IF(底部=10 AND REF(底部,1)=10 AND REF(底部,2)=0,50,0),COLOR0000CC,LINETHICK2;买入延迟线:底部,LINETHICK1 ,COLOR00CCFF;
解答:
VAR2:=TROUGHBARS(3,15,1)<10;
买入:VAR2=1 AND REF(VAR2,1)=1 AND REF(VAR2,2)=0;