精准均线特色均线主图 源码 说明

2016-08-31 10:22:00来源:本站整理浏览:217

精准均线特色均线主图 源码 说明

参数{N1  1 .20 .5
N2  1 .10 .3}

源码

N1:=5;
N2:=3;
SW1: DMA(EMA(CLOSE,N1),SUM(VOL,N1)/N2/CAPITAL);
SW2: DMA(EMA(CLOSE,2*N1),SUM(VOL,2*N1)/N2/2/CAPITAL);
SW3: DMA(EMA(CLOSE,4*N1),SUM(VOL,4*N1)/N2/4/CAPITAL);
SW4: DMA(EMA(CLOSE,6*N1),SUM(VOL,6*N1)/N2/6/CAPITAL);
SW5: DMA(EMA(CLOSE,8*N1),SUM(VOL,8*N1)/N2/8/CAPITAL);
SW6: DMA(EMA(CLOSE,10*N1),SUM(VOL,10*N1)/N2/10/CAPITAL);
VAR26:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR27:=REVERSE(VAR26);
VAR28:=SMA(VAR26,3,1);
波段王:= SMA(VAR28,3,1);
波段鬼:= SMA(波段王,8,1);
地狱:DRAWICON(CROSS(波段王,波段鬼) AND 波段王<40,LOW,1);
天堂: DRAWICON(CROSS(波段鬼,波段王) AND 波段鬼>75,HIGH,2);
DRAWTEXT(CROSS(波段王,波段鬼) AND 波段王<40,LOW*1.01,'低吸做波段'), COLORWHITE;
DRAWTEXT(CROSS(波段鬼,波段王) AND 波段鬼>75,HIGH*1.01,'减磅是老师'),COLOR00FF00;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'上拐点'),COLORRED;
DRAWTEXT(CROSS(MA15,FF),(HIGH * 1.02),'下拐点'),COLOR00FF00;


 

股票公式栏目导航

本类热门

相关公式