均线多头排列,今天送一个8根均线多头排列的公式给大家备用。大家可自行优化!
8根均线多头排列源码:
A1:=BARSCOUNT(C)>800;
A2:=MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,30) AND MA(C,30)>MA(C,40)
AND MA(C,40)>MA(C,60) AND MA(C,60)>MA(C,90) AND MA(C,90)>MA(C,120);
A3:REF(A2,1)=0 AND A2=1 AND A1=1;
中短期均线多头排列
m0:=ma(c,5);m1:=ma(c,10);m2:=ma(c,20);
count(m0>m1 and m1>m2,10)=1;