九毛八公式指标
公式模块:
谢谢老师了 公式如下
VAR2:=CLOSE*vol;
VAR3:=EMA((EMA(VAR2,3)/EMA(VOL,3)+EMA(VAR2,6)/EMA(VOL,6)
+EMA(VAR2,12)/EMA(VOL,12)+EMA(VAR2,24)/EMA(VOL,24))/4,13);
VAR4:=EMA(CLOSE,9);
SUP:1.06*VAR3,PRECIS2;
SDN:VAR3*0.94,PRECIS2;
LUP:EMA(VAR4*1.14,5),PRECIS2;
LDN:EMA(VAR4*0.86,5),PRECIS2;
买1:=C>O AND REF(C,5)<LDN AND C>LDN;
DRAWICON(买1,LDN,5);
买2:=O<REF(C,1) AND C>REF(O,1) AND REF(C,1)<REF(O,1) AND REF(((CLOSE/REF(CLOSE,1)-1)*100)<(-3),1) AND REF(C,1)<=SDN AND C>SDN;
DRAWICON(买2,SDN,1);
买3:=O>SDN AND LOW<LDN;
DRAWICON(买3,LDN,8);
买4:=C>O AND C<SDN AND REF(count(C<O,3)=3,1) AND (REF(CLOSE,4)-REF(CLOSE,1))>(LUP-SDN );
DRAWICON(买4,C,10);
A:=LLV(REF(LOW,1),2)+(HHV(REF(HIGH,1),2)-LLV(REF(LOW,1),2))/2;
盈损线:A,COLOR005BF5,LINETHICK2;
{PRECIS0,LINETHICK0;}
C3:=REF(C,1); 涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),2,0);
STICKLINE(涨停,OPEN,CLOSE,5,0),COLORRED;
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),2,0);
STICKLINE(跌停,OPEN,CLOSE,5,0),COLORGREEN;
VAR2:=CLOSE*VOL;
VAR3:=EMA((EMA(VAR2,3)/EMA(VOL,3)+EMA(VAR2,6)/EMA(VOL,6)
+EMA(VAR2,12)/EMA(VOL,12)+EMA(VAR2,24)/EMA(VOL,24))/4,13);
VAR4:=EMA(CLOSE,9);
SUP:1.06*VAR3,PRECIS2;
SDN:VAR3*0.94,PRECIS2;
LUP:EMA(VAR4*1.14,5),PRECIS2;
LDN:EMA(VAR4*0.86,5),PRECIS2;
买1:=C>O AND REF(C,5)<LDN AND C>LDN;
DRAWICON(买1,LDN,5);
买2:=O<REF(C,1) AND C>REF(O,1) AND REF(C,1)<REF(O,1) AND REF(((CLOSE/REF(CLOSE,1)-1)*100)<(-3),1) AND REF(C,1)<=SDN AND C>SDN;
DRAWICON(买2,SDN,1);
买3:=O>SDN AND LOW<LDN;
DRAWICON(买3,LDN,8);
买4:=C>O AND C<SDN AND REF(count(C<O,3)=3,1) AND (REF(CLOSE,4)-REF(CLOSE,1))>(LUP-SDN );
DRAWICON(买4,C,10);
A:=LLV(REF(LOW,1),2)+(HHV(REF(HIGH,1),2)-LLV(REF(LOW,1),2))/2;
盈损线:=A,COLOR005BF5,LINETHICK2;
{PRECIS0,LINETHICK0;}
C3:=REF(C,1); 涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),2,0);
STICKLINE(涨停,OPEN,CLOSE,5,0),COLORRED;
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),2,0);
STICKLINE(跌停,OPEN,CLOSE,5,0),COLORGREEN;