通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
X_1:(OPEN-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_2:=REF(SMA((CLOSE-REF(CLOSE,3))*VOL,3,1)/10000,1);
选大:X_1/REF(VOL,1)*1000000;
量王:BETWEEN(X_1,3,7)ANDX_2 21AND选大
MA5:EMA(CLOSE,5),COLORWHITE;
MA10:EMA(CLOSE,10),COLORYELLOW;
MA20:EMA(CLOSE,20),COLORFF00FF;
MA40:EMA(CLOSE,40),COLOR00FF00;
MA60:EMA(C,60),COLOR888888;
MA250:EMA(C,250),COLORFFCC66;
月价托:=MA5 MA20ANDMA5 MA10ANDCROSS(MA10,MA20);
季价托:=MA20 MA60ANDMA20 MA40ANDCROSS(MA40,MA60);
短长价托:=MA5 MA60ANDMA5 MA10ANDCROSS(MA10,MA60);
DRAWICON(月价托,L-0.10,3);
DRAWICON(季价托,L-0.10,4);
DRAWICON(短长价托,L-0.10,5);
VOL5:=MA(VOL,5);
VOL10:=MA(VOL,10);
VOL20:=MA(VOL,20);
量托:=VOL5 =VOL20ANDCROSS(VOL10,VOL20)ANDREF(VOL10,1) REF(VOL20,1);
DRAWICON(量托,L-0.10,6);
AAJ:=C=HHV(C,30);
BBJ:=BARSLAST(FILTER(CROSS(0.8,AAJ),2))+1;
高点J:=REF(C,BBJ);
价:=IF(CROSS(C,REF(高点J,1)),3,0);
STICKLINE(价突破,0,1,1,0),COLOR0000DD;
DRAWTEXT(价突破 0,0.8, 价 ),COLOR0000DD;
AA:=V=HHV(V,30);
BB:=BARSLAST(FILTER(CROSS(0.8,AA),2))+1;
高点L:=REF(V,BB);
量突破:=IF(CROSS(V,REF(高点L,1)),2,0);
STICKLINE(量突破,0,0.5,1,0),COLORYELLOW;
DRAWTEXT(量突破 0,0.55, 量 ),COLORYELLOW;
AA:=BARSLAST(MA40 MA60AND(MA20=MA40ORMA20 MA40));
BB:=REF(COUNT(C MA60,AA)=AA,1);
CC:=CROSS(C,MA60)ANDVOL MA(VOL,5)AND(C-REF(C,1))/REF(C,1)*100 3;
芙蓉出水:=BBANDCC;
DRAWICON(芙蓉出水,L-0.10,9);
M_V:=(MA(AMOUNT,5)/MA(v,5))/1000;
L_H:=MA(H,5)*M_V;
L_O:=MA(O,5)*M_V;
L_C:=MA(C,5)*M_V;
L_L:=MA(L,5)*M_V;
STICKLINE(L_C =L_O,L_L,L_H,0.00001,0),COLORRED;
STICKLINE(L_C L_O,L_O,L_C,2.5,0),COLORRED;
STICKLINE(L_C L_O,L_O,L_C,0.6,0),COLORCC66FF;
STICKLINE(L_C L_O,L_O,L_C,2.5,0),COLORFF6600;
STICKLINE(L_C L_O,L_O,L_C,0.6,0),COLORFF9900;
STICKLINE(L_C L_O,L_L,L_H,0.00001,0),COLORFF9900;
公式解读:
[源码注释]通达信公式动态公式解读公式解读:
公式编写要求:
条件:(1)第一日最高价掉出薛斯通道2的长下轨道。(2)股票次日翻红(3)CCI指标小于-90(4)DMI指标中的ADX大于60;MDI大于25(5)薛斯通道2的源码是:AA:=MA((2*CLOSE+HIGH+LOW)/4,5);通道1:AA*N/100;通道2:AA*(200-N)/100;CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);DD:=DMA(CLOSE,CC);通道3:(1+M/100)*DD;通道4:(1-M/100)*DD;
公式编写方法:
N:=102;M:=7;
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通道2:=AA*(200-N)/100;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
通道4:=(1-M/100)*DD;
暴跌后:REF( DMI.ADX 60AND DMI.MDI 25AND通道4 通道2AND CCI.CCI -90,1)ANDC