带买点的神奇均线主图 源码
准不准,看了就知道
源码
input: 均线拐头(10);
Var1:=(CLOSE+HIGH+LOW+OPEN)/4;
A1: (EMA(Var1,3)+EMA(Var1,6)+EMA(Var1 ,12)+EMA(Var1,24))/4;
A2: EMA(A1,2);
A3: EMA(A2,2);
A4: EMA(A3,2);
A5: EMA(A4,2);
A6: EMA(A5,2);
A7: EMA(A6,2);
安全线: EMA(CLOSE,60),colorgreen,LINETHICK3;
sk:=max(a2,a3,a4,a5,a6,a7);
sd:=min(a2,a3,a4,a5,a6,a7);
bu:=c>sk and a1> sk ;
bu1:=ref(not(bu),1) and bu and ma(c,均线拐头)>ref(ma(c,均线拐头),1);
bs:=cross(sd,c ) and cross(sk,c);
drawtext(bu1,l,'B'),ALIGN1,VALIGN0,colorred,linethick6;
{drawtext(bs ,h, 'S'),ALIGN1,VALIGN2,colorgreen,linethick4;};