均线共振源码:
A1:=MA(C,5);
A2:=MA(C,13);
A3:=MA(C,21);
A4:=MA(C,34);
A5:=MA(C,65);
DRAWICON(A1>REF(A1,1),5,1);
DRAWICON(A1<REF(A1,1),5,2);
DRAWICON(A2>REF(A2,1),4,1);
DRAWICON(A2<REF(A2,1),4,2);
DRAWICON(A3>REF(A3,1),3,1);
DRAWICON(A3<REF(A3,1),3,2);
DRAWICON(A4>REF(A4,1),2,1);
DRAWICON(A4<REF(A4,1),2,2);
DRAWICON(A5>REF(A5,1),1,1);
DRAWICON(A5<REF(A5,1),1,2);
DRAWTEXT(ISLASTBAR,5.2,'`线5');
DRAWTEXT(ISLASTBAR,4.2,'`线13');
DRAWTEXT(ISLASTBAR,3.2,'`线21');
DRAWTEXT(ISLASTBAR,2.2,'`线34');
DRAWTEXT(ISLASTBAR,1.2,'`线65');
64377877.png
|