通达信资金强弱副图源码

2016-06-27 09:34:00来源:本站整理浏览:563

VAR9MZ:=((REF(VAR8MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VARAMZ:=((REF(VAR9MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VARBMZ:=((REF(VARAMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VARCMZ:=((REF(VARBMZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VARDMZ:=((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,2)));
VAREMZ:=((REF(VARDMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VARFMZ:=((REF(VAREMZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR10MZ:=((REF(VARFMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR11MZ:=((REF(VAR10MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR12MZ:=((REF(VAR11MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR13MZ:=((REF(VAR12MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR14MZ:=((REF(VAR13MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR15MZ:=((REF(VAR14MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR16MZ:=((REF(VAR15MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR17MZ:=((REF(VAR16MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR18MZ:=((REF(VAR17MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR19MZ:=(REF((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),1) AND VAR1MZ AND CURRBARSCOUNT<短线信号);
VAR1AMZ:=(REF((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),1) AND VARDMZ AND CURRBARSCOUNT<短线信号);
AAK:=(REF(CLOSE,1)+REF(CLOSE,2)+OPEN)/3;
MA7:=MA(CLOSE,1)*BS点信号;
转强:=(6*H+5*REF(H,1)+4*REF(H,2)+3*REF(H,3)+2*REF(H,4)+1*REF(H,5))/(6+5+4+3+2+1);
转弱:=(6*L+5*REF(L,1)+4*REF(L,2)+3*REF(L,3)+2*REF(L,4)+1*REF(L,5))/(6+5+4+3+2+1);
BB2:=IF(C>REF(转强,1),1,IF(C<REF(转弱,1),-1,0));
DD2:=BARSLAST(NOT(BB2=0));
B:=IF(BB2=0,REF(BB2,DD2),BB2);
中短:=IF(B=-1,MA(HIGH,6),MA(LOW,6))*BS点信号;
持股:BARSLASTCOUNT(MA7>中短),COLORRED,NODRAW;
持币:BARSLASTCOUNT(MA7<中短),COLORGREEN,NODRAW;
短买:IF(VAR19MZ,1,0),COLORYELLOW,NODRAW;

生命线多头:=生命>REF(生命,1);
生命上:BARSLASTCOUNT(生命线多头>0),COLORYELLOW,NODRAW;
牛熊线多头:=牛熊>REF(牛熊,1);
牛熊上:BARSLASTCOUNT(牛熊线多头>0),COLORLIGREEN,NODRAW;
成本线多头:=成本>REF(成本,1);
成本上:BARSLASTCOUNT(成本线多头>0),COLORWHITE,NODRAW;
SA:=MAX(MAX(趋势,成本),MAX(生命,牛熊));
SB:=MIN(MIN(趋势,成本),MIN(生命,牛熊));
粘合:100*(SA-SB)/SB,COLORWHITE,NODRAW;
三日涨幅:=(C-REF(C,3))/REF(C,3)*100;
十日涨幅:=(C-REF(C,10))/REF(C,10)*100;
牛牛:BARSLASTCOUNT(生命上>0 AND 牛熊上>0 AND 成本上>0 AND 粘合<10 AND 持股>0 AND 三日涨幅<15 AND 十日涨幅<30),COLORRED,NODRAW;

DRAWTEXT(ISLASTBAR,成本,'←平均成本'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(AAK)>0,0.02,0,0,STRCAT('主力护盘价= ',CON2STR(AAK,2)))COLOR00FFFF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(短买价)>0,0.02,0.1,0,STRCAT('短线买入价=',CON2STR(短买价,2)))COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(离场价)>0,0.02,0.1,0,STRCAT('短线止赢价= ',CON2STR(离场价,2)))COLORGREEN;
STICKLINE(CURRBARSCOUNT<=叠加指数,变H,变L,0,0),COLOR888888;
STICKLINE(CURRBARSCOUNT<=叠加指数,变O,变C,2,0),COLOR888888;
STICKLINE(CURRBARSCOUNT<=叠加指数 AND 变C>=变O,变O,变C,2,1),COLORAAAAAA;
STICKLINE(CURRBARSCOUNT<=叠加指数,变HYH,变HYL,0,0),COLORYELLOW;
STICKLINE(CURRBARSCOUNT<=叠加指数,变HYO,变HYC,2,0),COLORYELLOW;
STICKLINE(CURRBARSCOUNT<=叠加指数 AND 变HYC>=变HYO,变HYO,变HYC,2,1),COLORYELLOW;
STICKLINE(MA7<中短,LOW,HIGH,0,1),COLORCYAN;
STICKLINE(MA7>中短,LOW,HIGH,0,1),COLORRED;
STICKLINE(((OPEN>CLOSE)AND(MA7<中短)),(CLOSE-0.003),OPEN,3.1,0),COLORLIBLUE;
STICKLINE(((OPEN<CLOSE)AND(MA7<中短)),CLOSE,OPEN,3.1,1),COLORCYAN;
STICKLINE(((OPEN>CLOSE)AND(MA7>中短)),OPEN,(CLOSE-0.003),3.1,0),COLORRED;
STICKLINE(((OPEN<CLOSE)AND(MA7>中短)),OPEN,CLOSE,3.1,1),COLORRED;
DRAWICON(CROSS(MA7,中短),L,7);
DRAWICON(CROSS(中短,MA7),H,8);
DRAWICON(VAR19MZ,L,1);
DRAWICON(VAR1AMZ,H,2);


当日资金方程式副图指标源码:

超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)NODRAW;
超大单:=(超B)-(超S);
大单:=(大B)-(大S);
中单:=(中B)-(中S);
小单:=(小B)-(小S);
DAZHI:=CONST(MAX(ABS(净流入),MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单)))))),NODRAW;

上一页  [1] [2] [3] [4]  下一页

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式