网友求助:
麻烦老师根据源码写个黄柱出现时的买点的思路,加多一个相反条件的卖点,因为我是用来看外汇的,谢谢!
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,38);
VAR6:=HHV(VAR4,38);
VAR7:=IF(LLV(LOW,90),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
ZY:=VAR8*58;
GZ:=REF(ZY,1);
XG:CROSS(GZ,ZY);
解答如下:
{加入卖点}
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,38);
VAR6:=HHV(VAR4,38);
VAR7:=IF(LLV(LOW,90),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
ZY:=VAR8*58;
GZ:=REF(ZY,1);
进吧:CROSS(GZ,ZY),COLORRED;
DRAWTEXT(进吧,进吧,'进吧'),COLOR00FFFF;
VAR9:=REF(H,1);
VAR12:=SMA(ABS(VAR9-H),13,1)/SMA(MAX(VAR9-H,0),10,1);
VAR13:=EMA(VAR12,10);
VAR14:=HHV(H,38);
VAR15:=EMA(IF(H>=VAR14,VAR13,0),3)*10;
出啦:REF(VAR15,2)<REF(VAR15,1) AND VAR15<REF(VAR15,1),COLORGREEN;
DRAWTEXT(出啦,出啦,'出啦'),COLORFFFF00;