通达信冠军1号主图源码 贴图
+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+
REF(H,20))/210,COLORBLUE,LINETHICK1;
短低L:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)
+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)
+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+
REF(L,20))/210;
多空线:=(短高H+短低L)/2;
D60:=EMA(多空线,90);
高度:=(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*3.5+XMA(XMA(H,60),60);
波段高:=(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*2.3+XMA(XMA(H,60),60);
波段低:=XMA(XMA(L,60),60)-(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*2.3;
高:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25);
低:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1;
多头定位:=多空线>D60;
SJ:=WMA(((2*C+H+L)/4-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2);
ZJ:=WMA(0.618*REF(SJ,1)+0.382*SJ,2);
买1:=CROSS(SJ,ZJ) AND SJ<30;
卖1:=CROSS(ZJ,SJ) AND SJ>70;
VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
买2:=CROSS(VAR1,8);
卖2:=CROSS(88,RSI);
RSV6:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;
K6:=SMA(RSV6,3,1);
D6:=SMA(K6,3,1);
J6:=3*K6-2*D6;
KDJ6买点:=CROSS(J6,D6);
J6买点:=CROSS(J6,0);
J6卖点:=CROSS(100,J6);
RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K9:=SMA(RSV9,3,1);
D9:=SMA(K9,3,1);
J9:=3*K9-2*D9;
J9买点:=CROSS(J9,0);
J9卖点:=CROSS(100,J9);
MB1:=EMA(WINNER(C)*100,5);
MB2:=EMA(MB1,2),COLORGREEN;
MB3:=EMA(MB2,2),COLORGREEN;
MB4:=EMA(MB3,2),COLORGREEN;
MB5:=EMA(MB4,2),COLORGREEN;
MB6:=EMA(MB5,2),COLORGREEN;
VAR2:=MB1;
VAR3:=DRAWLINE(VAR2>=HHV(VAR2,5)=1,VAR2,VAR2<=LLV(VAR2,5)=1,VAR2,1);
宝剑黄柱:=VAR2=VAR3 AND VAR2<MB4;
宝剑红柱:=REF(VAR2,1)=REF(VAR3,1) AND VAR2>REF(VAR2,1);
WRSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
WK:=SMA(WRSV,3,1);
D:=SMA(WK,3,1);
KD买点:=CROSS(WK,D)&&WK<20;
KD卖点:=CROSS(D,WK)&&WK>80;
MID:=MA(CLOSE,20);
UPPER:=MID+2*STD(CLOSE,20);
LOWER:=MID-2*STD(CLOSE,20);
布林买点:=CROSS(CLOSE,LOWER);
布林卖点:=CROSS(CLOSE,UPPER);
LCC:=REF(CLOSE,1);
WRSI:=SMA(MAX(CLOSE-LCC,0),6,1)/SMA(ABS(CLOSE-LCC),6,1)*100;
相对强弱买点:=CROSS(WRSI,20);
相对强弱卖点:=CROSS(80,WRSI);
买点3:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3));
买点定位:=买1=1 OR 买2=1 OR KD买点=1 OR 布林买点=1 OR 相对强弱买点=1 OR 宝剑黄柱=1 OR KD买点=1 OR J6买点=1 OR J9买点=1 OR 宝剑红柱=1 OR 买点3=1;
大单动向:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7);
涨跌动因:=IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0);
大单差分:=IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0);
DDZ1:=大单差分*7;
DDZ2:=大单差分*3;
主力活跃度:=LARGEINTRDVOL-LARGEOUTTRDVOL;
主力净流入:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*AMO/V/10000;
买入力度:=LARGEINTRDVOL*100/VOL;
卖出力度:=LARGEOUTTRDVOL*100/VOL;
买卖力度:=买入力度/卖出力度;
超B:=L2_AMO(0,2)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
小B:=L2_AMO(3,2)/10000.0;
超S:=L2_AMO(0,3)/10000.0;
大S:=L2_AMO(1,3)/10000.0;
中S:=L2_AMO(2,3)/10000.0;
小S:=L2_AMO(3,3)/10000.0;
资金流向:=(超B+大B+中B+小B)-(超S+大S+中S+小S);
资金比:=(超B+大B+中B+小B)/(超S+大S+中S+小S);
大单比:=(超B+大B+中B)/(超S+大S+中S);
超大单比:=(超B+大B)/(超S+大S);
资金K线定位:=大单动向>0 AND 涨跌动因>0 AND 大单比>1;
STICKLINE(资金K线定位=1,LOW,HIGH,0,0),COLORRED;
STICKLINE(资金K线定位=1,CLOSE,OPEN,3,0),COLORRED;
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
虚拟量:=IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL);
虚拟量比:=虚拟量/REF(VOL,1),COLORWHITE,LINETHICK0;
虚量值:=(虚拟量-VOL)/VOL,COLORWHITE,LINETHICK0;
资金定位:=大单动向>0 AND 涨跌动因>0 AND 大单比>0;
轨道振幅:=(高-低)/低*100,COLORWHITE,LINETHICK0;
轨道振幅半:=轨道振幅/2;
逃顶价:=(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*2.2+XMA(XMA(H,60),60);
止盈价:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),COLORMAGENTA,LINETHICK1;
获利率:=(止盈价-C)/C*100,COLORWHITE,LINETHICK0;
目标获利率:=(波段高-C)/C*100;
止损价:=C-(高-低)/2,LINETHICK1,COLORWHITE;
止损率:=(止损价-C)/C*100,COLORWHITE,LINETHICK0;
DEA102:=EMA((EMA(EMA(CLOSE,4) - EMA(CLOSE,12),102) - EMA(EMA(CLOSE,4) - EMA(CLOSE,12),204)),9);
DEA51:=EMA((EMA(EMA(CLOSE,4) - EMA(CLOSE,12),51) - EMA(EMA(CLOSE,4) - EMA(CLOSE,12),102)),9);
DEA1818:=EMA((EMA(EMA(CLOSE,4) - EMA(CLOSE,12),18) - EMA(EMA(CLOSE,4) - EMA(CLOSE,12),36)),9);
- 上一篇公式:通达信 冠军1号VOL源码副图
- 下一篇公式:通达信与庄共舞副图指标 完全加密 贴图