{一阳穿数线 }
aa23:=o<ma(c,5) and o<ma(c,10) and o<ma(c,20) and o<ma(c,30) and o<ma(c,60) and o<ma(c,120);
bb23:=c>ma(c,5) and c>ma(c,10) and c>ma(c,20) and c>ma(c,30) and c>ma(c,60) and c>ma(c,120);
一阳穿数线:=aa23 and bb23 and c>o ;
DRAWTEXT(一阳穿数线,h*1.03,'一阳穿数线'),COLORyellow;
DRAWTEXT(一阳穿数线,LOW-0.03,' ★'),colorf00ff0,linethick3;
通达信一阳穿五线主图加选股公式
主图公式如下
{N 1,60,10}
H1:=IF( HIGH>MA(CLOSE,5), 1, 0) ;
H2:=IF( HIGH>MA(CLOSE,10), 1, 0) ;
H3:=IF( HIGH>MA(CLOSE,30), 1, 0) ;
H4:=IF( HIGH>MA(CLOSE,60), 1, 0) ;
H5:=IF( HIGH>MA(CLOSE,120), 1, 0) ;
H6:=IF( LOW<MA(CLOSE,5), 1, 0) ;
H7:=IF( LOW<MA(CLOSE,10), 1, 0) ;
H8:=IF( LOW<MA(CLOSE,30), 1, 0) ;
H9:=IF( LOW<MA(CLOSE,60), 1, 0) ;
H10:=IF( LOW<MA(CLOSE,120), 1, 0);
H11:=IF(CLOSE>OPEN,1,0);
H12:=H1+H2+H3+H4+H5+H6+H7+H8+H9+H10+H11;
H13:=H1+H2+H3+H4+H6+H7+H8+H9+H11;
H14:=H1+H2+H3+H6+H7+H8+H11;
M:=IF(H12=11,1,0);
DRAWTEXT(H12=11,LOW,'一阳穿五线');
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA30:MA(CLOSE,30);
MA60:MA(CLOSE,60);
MA120:MA(CLOSE,120);
S:H12=11;
SN:COUNT(H12=11,N);
DRAWTEXT(H13=9,LOW*0.97,'一阳穿四线');
DRAWTEXT(H14=7,LOW*0.94,'一阳穿三线');
选股公式
{一阳穿数线 }
aa23:=o<ma(c,5) and o<ma(c,10) and o<ma(c,20) and o<ma(c,30) and o<ma(c,60) and o<ma(c,120);
bb23:=c>ma(c,5) and c>ma(c,10) and c>ma(c,20) and c>ma(c,30) and c>ma(c,60) and c>ma(c,120);
一阳穿数线:=aa23 and bb23 and c>o ;
DRAWTEXT(一阳穿数线,h*1.03,'一阳穿数线'),COLORyellow;
DRAWTEXT(一阳穿数线,LOW-0.03,' ★'),colorf00ff0,linethick3;