买线:EMA(C,5),colorwhite; 卖线:EMA(SLOPE(C,21)*20+C,42),POINTDOT,coloryellow,linethick3;
BUY1:=CROSS(买线,卖线);
SEL1:=CROSS(卖线,买线);
DRAWTEXT(buy1,LOW*0.95,'B '),colorred,linethick6;
DRAWTEXT(sel1,HIGH*1.05,'S'),colorgreen,linethick6;
STICKLINE(买线>=卖线 AND MA(C,5)>MA(C,10),LOW,HIGH,0.1,1),colorred;
STICKLINE(买线>=卖线 AND MA(C,5)>MA(C,10),CLOSE,OPEN,8,1),colorred;
STICKLINE(买线>=卖线 AND MA(C,5)<MA(C,10),LOW,HIGH,0.1,1),colormagenta;
STICKLINE(买线>=卖线 AND MA(C,5)<MA(C,10),CLOSE,OPEN,8,0),colormagenta;
STICKLINE(买线<卖线,CLOSE,OPEN,8,0),color00ff00;
STICKLINE(买线<卖线,LOW,HIGH,0.1,1),color00ff00;
STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,4,0),coloryellow;
限制:=EMA((((H+C)/2+L+(C+L)/2)/3-EMA(LLV(((H+C)/2+L+(C+L)/2)/3,89),2))/(EMA(HHV (((H+C)/2+L+(C+L)/2)/3,21),2)-EMA(LLV(((H+C)/2+L+(C+L)/2)/3,89),2)),8)*100;
平衡:=SMA(EMA(SMA((C+L)/2,3,1),3),5,1);//www.fxjgsw.com
DRAWTEXT(FILTER(平衡>REF(平衡,1)AND HHV(MA((H+C)/2,13),10)<REF(HHV(MA((H+C)/2,13),10),1)AND((C+L)/2)>REF((C+L)/2,1),5)AND 限制<88,L*0.98,' ------'),colorcyan;
|
