以下是通达信精简三步战法主图指标公式源码和截图
通达信精简三步战法主图指标公式源码:
:=MA(LOW,4)*0.998,LINETHICK0;
止损:=IF(短线 REF(短线,1),短线,REF(短线,BArslAST(短线
REF(短线,1)))),LINETHICK1,COLORYELLOW;
短线止损:IF(C 止损,止损,短线)COLOR00FF80,LINETHICK2;
IF(C =短线止损,短线止损,DRAWNULL),COLOR8000FF,LINETHICK2;
量大价涨1:=V REF(V,1)*2ANDC REF(C,1)ANDC
缩量1:=V REF(V,1)ANDC OANDH REF(H,1);
TJ1:=REF(量大价涨1,1)AND缩量1;
TK1:=BARSLAST(TJ1);
TJA1:=crOSS(C,REF(O,TK1));
X_1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
STICKLINE(X_1 =9.84,CLOSE,OPEN,3.4,0),COLOR00AAFF;
STICKLINE(X_1 =9.84,CLOSE,OPEN,2,0),COLOR00CCFF;
STICKLINE(X_1 =9.84,CLOSE,OPEN,0.5,0),COLORYELLOW;
STICKLINE(X_1 =9.84,CLOSE,OPEN,0.5,0),COLORRED;
X_2:=(EMA(CLOSE,13)-REF(EMA(CLOSE,13),1))/REF(EMA(CLOSE,13),1)*10000;
起爆线:IF(X_2 0,REF(LOW,BARSLAST(CROSS(X_2,0))),DRAWNULL),COLORRED,LINETHICK3;
TIPS:=OPEN/起爆线,NODRAW;
XD:=DRAWICON(REF(X_1 9.5,1)ANDTIPS =1.3,LOW,39);
X_3:=IF(CLOSE OPEN,CLOSE,OPEN);
X_4:=IF(CLOSE OPEN,OPEN,CLOSE);
X_5:=LLV(X_3,4);
X_6:=HHV(X_4,4);
X_7:=X_3 =X_5ANDX_4 =X_5ANDX_3 =X_6ANDX_4 =X_6;
X_8:=REF(X_3,1) =X_5ANDREF(X_4,1) =X_5ANDREF(X_3,1) =X_6ANDREF(X_4,1) =X_6;
X_9:=REF(X_3,2) =X_5ANDREF(X_4,2) =X_5ANDREF(X_3,2) =X_6ANDREF(X_4,2) =X_6;
X_10:=REF(X_3,3) =X_5ANDREF(X_4,3) =X_5ANDREF(X_3,3) =X_6ANDREF(X_4,3) =X_6;
X_11:=X_7ANDX_8ANDX_9ANDX_10;
强支撑价格:=REF(X_6,BARSLAST(X_11)),NODRAW;
JI:=STICKLINE(X_6,强支撑价格,强支撑价格,3,0),COLORMAGENTA;
X_12:=(REF(OPEN,5)+REF(CLOSE,5))/2;
X_13:=(HIGH+LOW+CLOSE+OPEN)/4;
X_14:=MAX(X_12,MAX(X_13,HHV(HIGH,5)));
X_15:=MIN(X_12,MIN(X_13,LLV(LOW,5)));
X_16:=X_14=X_12;
X_17:=X_16;
ZOP:=REF(X_14,BARSLAST(X_17)),NODRAW;
ZXXX:=STICKLINE(CLOSE,ZOP,ZOP,1,0),COLORGREEN;
ZXX:=STICKLINE(X_14=X_12,X_14,HIGH,0,(-1));
X_18:=强支撑价格=REF(强支撑价格,1);
CX10:=BARSLAST(NOT(X_18)),NODRAW;
向下:=DRAWNUMBER(X_18 =0,起爆线*1.03,CX10+1),COLORYELLOW;
X_19:=起爆线=REF(起爆线,1);
CXAT:=BARSLAST(NOT(X_19)),NODRAW;
S:DRAWNUMBER(X_19 =0,起爆线,CXAT+1),COLORRED;
BB:=C
HH:=HHV(C,4);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MMM:=(DIF-DEA)*2,COLORSTICK;
VV1:=C REF(C,1)ANDC REF(C,3)ANDC REF(C,2);
VV11:=VV1ANDC MA(C,20)ANDDIF (DEA+0.01)AND(DIF-REF(DIF,4)) 0.02;
VV22:=CROSS(MA(C,10),L)ORCROSS(MA(C,20),L)ORCROSS(MA(C,60),L);
VV:VV11ANDDIF
input:n(26,5,300),p(2,0.1,10);
MA13:MA(C,13),COLORFF9900,DOTLINE;
MID:MA(CLOSE,N),DOTLINE;
UPPER:MID+P*STD(CLOSE,N),DOTLINE;
LOWER:MID-P*STD(CLOSE,N),DOTLINE;
X:=BARSLAST(DISPSTATUS=1)+1;
E:=llvall(llv(l,x))*0.95;
DIFF:EMA(EMA(CLOSE,12)-EMA(CLOSE,26),3),COLOR0000FF,LINETHICK0;
DEA:EMA(DIFF,9),COLOR00FF00,LINETHICK0;
MACD:2*(DIFF-DEA),LINETHICK0;
STICKLINE(MACD 0,E+MACD*3,E,18,0),Color0000FF;
STICKLINE(MACD 0,E+MACD,E,1,0),Color00FF00;
DRAWGBK(MACD 0,STRIP(RGB(0,0,255),RGB(140,0,80),0)),LAYER0;
VERTLINE(CROSS(REF(WMA(C,13),1),WMA(C,13))ANDMACD 0andMA13 MID,2),LAYER0,COLOR00FFff;
PARTLINE(UPPER,UPPERandMACD 0,rgb(255,120,0)),LINETHICK3,LAYER0;
PARTLINE(MID,MIDandMACD 0,rgb(0,255,0)),LINETHICK3,LAYER0;
PARTLINE(MA13,MA13andMACD 0,rgb(255,255,0)),LINETHICK3,LAYER0;
PK:=CROSS(0,MACD)ANDMACD
DRAWTEXT(PK,LOWER*0.999,'●'),LAYER3,ALIGN1,COLOR0000FF,LINETHICK2;
DRAWTEXT(PK,LOWER*0.981,'【别】'),LAYER0,ALIGN1,COLOR00FFFF,LINETHICK1;
DRAWTEXT(PK,LOWER*0.963,'【坐】'),LAYER0,ALIGN1,COLOR00FFCC,LINETHICK1;
DRAWTEXT(PK,LOWER*0.946,'【过】'),LAYER0,ALIGN1,COLOR00FFAA,LINETHICK1;
DRAWTEXT(PK,LOWER*0.929,'【山】'),LAYER0,ALIGN1,COLOR00FF77,LINETHICK1;
DRAWTEXT(PK,LOWER*0.912,'【车】'),LAYER0,ALIGN1,COLOR00FF00,LINETHICK1;
通达信精简三步战法主图指标公式截图