九毛八公式指标
N:13 N1:99 M:7 VAR2:=CLOSE*VOL; VAR3:=EMA((EXPMA(VAR2,3)/EXPMA(VOL,3)+EXPMA(VAR2,6)/EXPMA(VOL,6) +EXPMA(VAR2,12)/EXPMA(VOL,12)+EXPMA(VAR2,24)/EXPMA(VOL,24))/4,N); SUP:1.06*VAR3,LINETHICK2,COLORWHITE; SDN:VAR3*0.94,LINETHICK2,COLORWHITE; VAR4:=EXPMA(CLOSE,9); LUP:EXPMA(VAR4*1.14,5),LINETHICK2,COLORYELLOW; LDN:EXPMA(VAR4*0.86,5),LINETHICK2,COLORYELLOW; AAX:=MA((2*CLOSE+HIGH+LOW)/4,5); 通道1:AAX*N1/100,COLORRED; 通道2:AAX*(200-N1)/100,COLORRED; CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20); DD:=DMA(CLOSE,CC); 通道3:(1+M/100)*DD,COLORGREEN; 通道4:(1-M/100)*DD,COLORGREEN; DRAWICON( CCI.CCI<-100 and l<通道4 l
公式模块:
N:=13; N1:=99; M:=7;
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,N); SUP:1.06*VAR3,LINETHICK2,COLORWHITE; SDN:VAR3*0.94,LINETHICK2,COLORWHITE; VAR4:=EMA(CLOSE,9); LUP:EMA(VAR4*1.14,5),LINETHICK2,COLORYELLOW; LDN:EMA(VAR4*0.86,5),LINETHICK2,COLORYELLOW; AAX:=MA((2*CLOSE+HIGH+LOW)/4,5); 通道1:AAX*N1/100,COLORRED; 通道2:AAX*(200-N1)/100,COLORRED; CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20); DD:=DMA(CLOSE,CC); 通道3:(1+M/100)*DD,COLORGREEN; 通道4:(1-M/100)*DD,COLORGREEN; DRAWICON("cci."<-100 AND L<通道4 AND L<LDN AND "dmi.ADX">"DMI.mdi" AND "DMI.ADX">40 ,通道1,17); DRAWTEXT( "CCI."<-100 AND L<通道4 AND L<LDN AND "DMI.ADX">"DMI.MDI" AND "DMI.ADX">40 ,L,'抢啊'); DRAWTEXT("CCI."<REF("CCI.",1) AND C<LUP AND REF(C,1)>REF(LUP,1),H,'绝');