偶用了下,可以用来参考参考```````呵呵````
波段极品,主图用
未来函数没有,参数没有。
在均线处点击右键,修改指标```````````测试通过.保存就好了
把自己的MA5,修改下,随便该成MA7什么的,本代码中的MA5不改!
MA5: MA(CLOSE,5),COLORbbffff;
MA10:MA(CLOSE,10), COLORGREEN,linethick2;
S:MA10+2*STD(CLOSE,10), COLORWHITE,linethick2;
X:MA10-2*STD(CLOSE,10), COLORYELLOW,linethick2;
MA30:MA(CLOSE,30), COLORred;
{MA120: MA(CLOSE,120), COLORcc99cc;}
MA250: MA(CLOSE,250), COLOR3366ff;
{MA60:MA(CLOSE,60), COLORCYAN;}
卖出线:=98;
阶段卖:=96;
趋势:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA
(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
底部:=10;
买入警戒:stickline(趋势<=10,high,low,0.5,0),colorFF9933;
stickline(趋势<=10,open,close,2,1),colorFF9933;
买入信号:drawicon(CROSS(趋势,底部),low,1);
卖出警戒:stickline(趋势>=阶段卖,high,low,0.5,0),color00FF00;
stickline(趋势>=阶段卖,open,close,3,1),linethick2,color00FF00;
卖出:drawicon(cross(卖出线,趋势),high,2);
VB1:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;
VB2:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;
VB3:=VB1 AND VB2;
DRAWTEXT(VB3,LOW,'买入点'), COLORWHITE;
DRAWTEXT(CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),HIGH*1.02,'落袋为安'), COLORWHITE;
V2:=REF(CLOSE,1);
V3:=SMA(MAX(CLOSE-V2,0),6,1)/SMA(ABS(CLOSE-V2),6,1)*100;
DRAWTEXT(CROSS(84,V3),HIGH*1.03,'见顶 '), COLORYELLOW;
V4:=SMA(MAX(CLOSE-V2,0),12,1)/SMA(ABS(CLOSE-V2),12,1)*100;
DRAWTEXT(CROSS(V4,20),LOW*0.98,'见底 '),COLORRED;