主图买卖点指标源码分享,绿卖红买
源码
生命线:MA(C,21);
攻击线:MA(C,3),COLORAAEE00;
成长线:MA(C,60),COLORRED;
BHG:=SMA(MAX(CLOSE-REF(CLOSE,1),0),16,2)/SMA(ABS(CLOSE/REF(CLOSE,1)),16,2)*100;
VAR1:=SMA(BHG,3,1);
VAR2:=SMA(VAR1,3,1);
VAR3:=3*VAR1-2*VAR2;
日:=-100;昨前:=-3;
高1:=-REF(-HHV(H,日),昨前);
低1:=-REF(-LLV(L,日),昨前);
低:=-REFDATE(低1,DATE),COLORRED,LINETHICK2;
VARC:=-低+(低+OPEN);
WR1:=-低-(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5));
WR2:=-低+(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5));
买入条件:=CROSS(VAR3,VAR2),COLORWHITE;
卖出条件:=CROSS(VAR2,VAR3) ;
DRAWTEXT(卖出条件,HIGH*1.001,'★'),COLORGREEN;
DRAWTEXT(买入条件,LOW*0.998,'■'),COLORRED;
|