自用指标源码分享 有图有码介绍
自用指标源码分享 有图有码
自用指标,参考修改于赢在龙头中银蛇指标。请各位老师完善啊!
已修改错误!!
天:=MAX(O,C);
地:=MIN(O,C);
均价:=(H+L+O+C)/4;
B:=(2*Ema(LLV(均价,7),10)-均价);
做空趋势:(3*B-2*SMA(B,10,1)),COLORgreen,linethick1;
做多趋势:((SLOPE(CLOSE,20)*5)+CLOSE),colorRED,PRECIS2;
做空能量:(3*B-2*SMA(B,10,10));
中期支撑:=MA(地,5);
MA5:=MA(C,5);
STICKLINE(做多趋势>=做空趋势 AND C>=O,O,C,7.5,1 ),colorRED;
STICKLINE(做多趋势>=做空趋势 AND O>C,O,C,7.5,0 ),colorRED;
STICKLINE(做多趋势>=做空趋势 AND C>=O,C,H,0.5,0),colorRED;
STICKLINE(做多趋势>=做空趋势 AND C>=O,l,o,0.5,0),colorRED;
STICKLINE(做多趋势>=做空趋势 AND O>C,l,C,0.5,0),colorRED;
STICKLINE(做多趋势>=做空趋势 AND O>C,O,H,0.5,0),colorRED;
STICKLINE(做多趋势<做空趋势 AND C>=O,O,C,7.5,1 ),colorGREEN;
STICKLINE(做多趋势<做空趋势 AND O>C,O,C,7.5,0),colorGREEN;
STICKLINE(做多趋势<做空趋势 AND C<O,O,H,0.5,0),colorGREEN;
STICKLINE(做多趋势<做空趋势 AND C<O,C,L,0.5,0),colorGREEN;
STICKLINE(做多趋势<做空趋势 AND C>=O,O,L,0.5,0),colorGREEN;
STICKLINE(做多趋势<做空趋势 AND C>=O,C,H,0.5,0),colorGREEN;
DRAWTEXT(CROSS(做空趋势,做空能量),做空能量*0.98,'风险'),COLORGREEN;
DRAWTEXT(CROSS(做空趋势,做多趋势) AND 做多趋势<天,H*1.02,'逃'),COLORGREEN;
DRAWTEXT(CROSS(做多趋势,做空能量),做空能量*0.98,'买'),COLORRED;
gd13017