波段起点大阳买入主图指标!
MA5:MA(C,N);
MA10:MA(C,10);
MA20:=MA(C,20);
MA60:MA(C,55);
中:MA(CLOSE,20);
中间价:=(H+L)/2;
AO:=SMA(中间价,5,1)-SMA(中间价,34,1);
AC:=AO-SMA(AO,5,1);
最大涨幅:=(H-REF(C,1))/REF(C,1)*100;
涨幅:=(C-REF(C,1))/REF(C,1)*100;
攻击角:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;
角10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;
中轨角:=ATAN((MA20/REF(MA20,1)-1)*100)*180/3.1416;
红:=AC>REF(AC,1);
绿:=AC<REF(AC,1);
上:中 + 2*STD(CLOSE,20);
下:中 - 2*STD(CLOSE,20);
上外:上-(上-下)/4;
下外:下+(上-下)/4;
多头:=红 AND AC>0;
空头:=绿 AND AC<0;
震荡:=(多头=0) AND (空头=0);
//用不同颜色画不同行情的K线
STICKLINE(多头,H,L,0,0),colorred;
STICKLINE(多头 AND C>=O,C,O,10,1),colorred;
STICKLINE(多头 AND C<O,C,O,10,0),colorred;
STICKLINE(空头,H,L,0,0),RGB(0,100,255);
STICKLINE(空头 AND C>=O,C,O,10,1),RGB(0,100,255);
STICKLINE(空头 AND C<O,C,O,10,0),RGB(0,100,255);
STICKLINE(震荡=1,H,L,0,0),coloryellow;
STICKLINE(震荡=1 AND C>=O,C,O,10,1),coloryellow;
STICKLINE(震荡=1 AND C<O,C,O,10,0),coloryellow;
DRAWTEXT_FIX(C>0,0.57,0.02,0,'<当前攻击角度> -->'),colorred;
DRAWNUMBER_FIX(ISLASTBAR,0.69,0.02,0,TOSTRING(攻击角,1)),colorcyan;
DRAWTEXT_FIX(C>0,0.57,0.05,0,'<使用说明> -->'),colorred;
DRAWTEXT_FIX(C>0,0.64,0.05,0,'红色上涨,蓝色下跌,黄色震荡'),colorcyan;
买点:=空头=0 AND REF(攻击角,1)<0 AND REF(攻击角,2)<0 AND 攻击角>0 AND 最大涨幅>=3;
备选股池:=买点;
DRAWICON(备选股池,L,1);
成本价:=X;
次日最大获利:=IF(REF(备选股池,1),TOSTRING((H-X)/X*100,1),TOSTRING((H-X)/X*100,1));
次日开盘获利:=IF(REF(备选股池,1),TOSTRING((O-X)/X*100,1),TOSTRING((O-X)/X*100,1));
当日收盘获利:=IF(备选股池,TOSTRING((C-成本价)/成本价*100,1),TOSTRING((C-成本价)/成本价*100,1));
AA:=BARSLAST(备选股池)+1;
浮动盈亏百分比:=(C-成本价)/成本价*100;
DRAWNUMBER_FIX(AA<=10 AND ISLASTBAR AND 成本价>0,0.69,0.10,0,TOSTRING(成本价,2)),colorcyan;
DRAWTEXT_FIX(AA<=10 AND ISLASTBAR AND 成本价>0,0.57,0.10,0,"成本价 -->"),colorred;
DRAWNUMBER_FIX(AA<=10 AND ISLASTBAR AND 成本价>0,0.69,0.15,0,TOSTRING(C,2)),colorcyan;
DRAWTEXT_FIX(AA<=10 AND ISLASTBAR AND 成本价>0,0.57,0.15,0,"最新价 -->"),colorred;
DRAWNUMBER_FIX(AA<=10 AND ISLASTBAR,0.69,0.20,0,TOSTRING(浮动盈亏百分比,2)),colorcyan;
DRAWTEXT_FIX(AA<=10 AND ISLASTBAR,0.57,0.20,0,"当前浮动盈亏百分比 -->"),colorred;