您好,欢迎访问三七文档
红蓝波段指标公式K30:EMA(((C-LLV(L,30))/(HHV(H,30)-LLV(L,30)))*100,5);E30:EMA(K30,5),COLOR00FFFF;K301:=EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,12);J18:=3*EMA((C-LLV(L,18))/(HHV(H,18)-LLV(L,18))*100,5)-2*EMA((C-LLV(L,18))/(HHV(H,18)-LLV(L,18))*100,5),CIRCLEDOT,COLORBBBBBB;STICKLINE(J187.5ANDC=LLV(C,10)ANDL=LLV(L,10),50,0,1,0),COLORMAGENTA;STICKLINE(K30E30,K30,E30,1,0),COLOR0000CC;STICKLINE(K30E30,K30,E30,1,0),COLORFF9900;STICKLINE(K30REF(K30,1)ANDREF(K30,1)REF(K30,2)ANDREF(K30,1)80,80,100,1,0),COLORFF9900;STICKLINE(K30REF(K30,1)ANDREF(K30,1)REF(K30,2)ANDREF(K30,1)90,70,100,1,0),COLOR00FF00;STICKLINE(((K30REF(K30,1)ANDREF(K30,1)REF(K30,2))OR(CREF(C,1)ANDCO))ANDREF(K30,1)10,30,0,1,0),COLOR0000FF;STICKLINE(K3010ANDC=LLV(C,10)ANDL=LLV(L,10),30,0,1,0),COLOR0000FF;10,DOTLINE,COLORAAAAAA;90,DOTLINE,COLORAAAAAA;红蓝柱指标拉升力:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,30)-LLV(LOW,36))*0.6*CLOSE;拉升力A:=SMA(拉升力,6.3,1);波峰波谷:SMA(拉升力A,3,1),COLORFF00FF;拉升力B:=3*拉升力A-2.1*波峰波谷;空方:=3*波峰波谷-1*拉升力A;做空:IF(空方拉升力B,拉升力B,空方),LINETHICK2,COLOR00FF00;做空周期:HHV(做空,21),COLORBLUE,LINETHICK2;多头:IF(做空=REF(做空,1),做空,DRAWNULL),COLORRED,LINETHICK3;DRAWICON(做空=REF(做空,1)ANDREF(做空,1)REF(做空,2),做空,23);空头:IF(做空REF(做空,1),做空,DRAWNULL),COLORGREEN,LINETHICK3;{DRAWICON(做空=REF(做空,1)ANDREF(做空,1)REF(做空,2),做空,19);}短线:(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORWHITE;中线:(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORYELLOW;红柱:SMA(短线,3,1),LINETHICK0,COLOR0000FF;蓝柱:SMA(中线,3,1),COLORSTICK,COLORFFFF00;{红柱}STICKLINE(红柱REF(红柱,1)AND红柱0,0,红柱,2,0),COLOR888800;STICKLINE(红柱REF(红柱,1)AND红柱0,0,红柱,1.5,0),COLORAAAA00;STICKLINE(红柱REF(红柱,1)AND红柱0,0,红柱,0.8,0),COLORDDDD00;STICKLINE(红柱REF(红柱,1)AND红柱0,0,红柱,0.3,0),COLORFFFF00;STICKLINE(红柱REF(红柱,1)AND红柱0,0,红柱,2,0),COLOR000088;STICKLINE(红柱REF(红柱,1)AND红柱0,0,红柱,1.5,0),COLOR0000AA;STICKLINE(红柱REF(红柱,1)AND红柱0,0,红柱,0.8,0),COLOR0000DD;STICKLINE(红柱REF(红柱,1)AND红柱0,0,红柱,0.3,0),COLOR0000FF;STICKLINE(蓝柱REF(蓝柱,1)AND蓝柱0,0,蓝柱,2,0),COLOR008800;STICKLINE(蓝柱REF(蓝柱,1)AND蓝柱0,0,蓝柱,1,0),COLOR00AA00;STICKLINE(蓝柱REF(蓝柱,1)AND蓝柱0,0,蓝柱,0.8,0),COLOR00DD00;STICKLINE(蓝柱REF(蓝柱,1)AND蓝柱0,0,蓝柱,0.3,0),COLOR00FF00;{蓝柱}STICKLINE(红柱REF(红柱,1)AND红柱0,0,红柱,2,0),COLOR880088;STICKLINE(红柱REF(红柱,1)AND红柱0,0,红柱,1.5,0),COLORAA00AA;STICKLINE(红柱REF(红柱,1)AND红柱0,0,红柱,0.8,0),COLORDD00DD;STICKLINE(红柱REF(红柱,1)AND红柱0,0,红柱,0.3,0),COLORFF00FF;STICKLINE(红柱REF(红柱,1)AND红柱0,0,红柱,2,0),COLOR888800;STICKLINE(红柱REF(红柱,1)AND红柱0,0,红柱,1.5,0),COLORAAAA00;STICKLINE(红柱REF(红柱,1)AND红柱0,0,红柱,0.8,0),COLORDDDD00;STICKLINE(红柱REF(红柱,1)AND红柱0,0,红柱,0.3,0),COLORFFFF00;STICKLINE(蓝柱REF(蓝柱,1)AND蓝柱0,0,蓝柱,2,0),COLOR009999;STICKLINE(蓝柱REF(蓝柱,1)AND蓝柱0,0,蓝柱,1.5,0),COLOR00BBBB;STICKLINE(蓝柱REF(蓝柱,1)AND蓝柱0,0,蓝柱,0.8,0),COLOR00DDDD;STICKLINE(蓝柱REF(蓝柱,1)AND蓝柱0,0,蓝柱,0.3,0),COLOR00FFFF;VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300)ANDVAR3002.1ANDCO;STICKLINE(A1,5,0,4,0),COLOR770077;STICKLINE(A1,5,0,3,0),COLOR990099;STICKLINE(A1,5,0,2,0),COLORBB00BB;STICKLINE(A1,5,0,1,0),COLORDD00DD;STICKLINE(A1,5,0,0.3,0),COLORFF00FF;同花顺指标DRAWGBK(DATE900103,STRIP(RGB(0,0,0),RGB(160,60,170),1));Var1:=(2*CLOSE+HIGH+LOW+OPEN)/5;A1:(EMA(Var1,13)+EMA(Var1,21)+EMA(Var1,34)+EMA(Var1,34))/4;A2:EMA(A1,3),coloryellow;A3:EMA(A2,3),coloryellow;A4:EMA(A3,3),coloryellow;A5:EMA(A4,3),coloryellow;A6:EMA(A5,3),coloryellow;A7:EMA(A6,3),coloryellow;AA6:EMA(A7,3),coloryellow;AA7:EMA(AA6,3),colorred;B1:=MA(C,1);B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1);SMA2:=MA(B2,4);FILLRGN(b2,sma2,b2sma2,RGB(255,0,250),b2sma2,RGB(0,100,250));压力:HHV(C,30),Color0000FF;支撑:LLV(L,30),Color00FFFF;MA3:=MA(C,3);X1:=REF(EMA(C,3),1);X2:=(EMA(C,3)-X1)/X1*100;N1:=BARSLAST(CROSS(X2,0));N2:=BARSLAST(CROSS(0,X2));X3:=CROSS(X2,0)ORCROSS(0,X2);STICKLINE(N1N2,REF(MA3,N1),REF(MA3,N1),9,3),Color1EFFFF,LINETHICK2;STICKLINE(N2N1,REF(MA3,N2),REF(MA3,N2),9,3),ColorFFFFFF,LINETHICK2;STICKLINE(CLOSEOPEN,OPEN,LOW,0.5,0),COLOR0000FF;STICKLINE(CLOSEOPEN,CLOSE,HIGH,0.5,0),COLOR0000FF;STICKLINE(OPEN=CLOSE,CLOSE,LOW,0.5,0),ColorFFFF1E;STICKLINE(OPEN=CLOSE,OPEN,HIGH,0.5,0),ColorFFFF1E;STICKLINE(OPEN=CLOSE,CLOSE,OPEN,10,0),COLORff7700;STICKLINE(OPEN=CLOSE,CLOSE,OPEN,8,0),COLORff9900;STICKLINE(OPEN=CLOSE,CLOSE,OPEN,5,0),COLORffbb00;STICKLINE(OPEN=CLOSE,CLOSE,OPEN,4,0),COLORffcc00;STICKLINE(OPEN=CLOSE,CLOSE,OPEN,3,0),COLORffdd00;STICKLINE(OPEN=CLOSE,CLOSE,OPEN,2,0),COLORffee00;STICKLINE(OPEN=CLOSE,CLOSE,OPEN,1,0),COLORffFF00;STICKLINE(CLOSEOPEN,CLOSE,OPEN,10,0),COLOR000055;STICKLINE(CLOSEOPEN,CLOSE,OPEN,8,0),COLOR000066;STICKLINE(CLOSEOPEN,CLOSE,OPEN,5,0),COLOR000077;STICKLINE(CLOSEOPEN,CLOSE,OPEN,4,0),COLOR000099;STICKLINE(CLOSEOPEN,CLOSE,OPEN,3,0),COLOR0000bb;STICKLINE(CLOSEOPEN,CLOSE,OPEN,2,0),COLOR0000dd;STICKLINE(CLOSEOPEN,CLOSE,OPEN,1,0),COLOR0000ff;var9Q:=C=HHV(C,4)AND(REF(C,1)=REF(C,2)ORREF(C,1)=REF(C,3))ORREF(C,1)=HHV(C,4)ANDCLOSE=REF(C,2)ORREF(C,2)=HHV(C,4)ANDREF(C,3)=LLV(C,4)ANDC=REF(C,1)ORREF(C,3)=HHV(C,4)ANDC=REF(
本文标题:红蓝波段指标公式
链接地址:https://www.777doc.com/doc-2103438 .html