股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信资金强弱副码图源


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2023-10-9 19:44:50

以下是通达信资金强弱副码图源

给你明确的“操 作 决 策”`“中 线 决 策”`“短线止赢价”和“短线买入价”指导;
给你明确的当日资金情况,机构游资中户及散户今日进出资金情况,明白今日的流入和流出资金,方便你当日作出正确的决策!
是操盘线与资金方程式两个一块装,操盘线是被引用的主图公式;当然也可以自己作主图用
再下载的请下最后一个,我把引用指标与资金方程式放一起了

M1:=5;
M2:=0;
M3:=0;
叠加指数:=0;
BS点信号:=1;
短线信号:=5;
三线开关:=1;


自动C:=INDEXC;
自动H:=INDEXH;
自动L:=INDEXL;
自动O:=INDEXO;
大盘低:=CONST(LLV(自动L,叠加指数));
大盘高:=CONST(HHV(自动H,叠加指数));
大盘差:=大盘高-大盘低;
当前低:=CONST(LLV(L,叠加指数));
当前高:=CONST(HHV(H,叠加指数));
当前差:=当前高-当前低;
比:=当前差/大盘差;
变C:=当前低+(自动C-大盘低)*比,NODRAW;
变H:=当前低+(自动H-大盘低)*比;
变L:=当前低+(自动L-大盘低)*比;
变O:=当前低+(自动O-大盘低)*比;

自动HYC:=HY_INDEXC;
自动HYH:=HY_INDEXH;
自动HYL:=HY_INDEXL;
自动HYO:=HY_INDEXO;
大盘低HY:=CONST(LLV(自动HYL,叠加指数));
大盘高HY:=CONST(HHV(自动HYH,叠加指数));
大盘差HY:=大盘高HY-大盘低HY;
当前低HY:=CONST(LLV(L,叠加指数));
当前高HY:=CONST(HHV(H,叠加指数));
当前差HY:=当前高HY-当前低HY;
比HY:=当前差HY/大盘差HY;
变HYC:=当前低HY+(自动HYC-大盘低HY)*比HY,NODRAW;
变HYH:=当前低HY+(自动HYH-大盘低HY)*比HY;
变HYL:=当前低HY+(自动HYL-大盘低HY)*比HY;
变HYO:=当前低HY+(自动HYO-大盘低HY)*比HY;
现价:C,NODRAW;
MA1:MA(C,M1)COLORWHITE;
MA2:MA(C,M2)COLORLIGREEN;
MA3:MA(C,M3)COLORLIBLUE;
趋势:((MA(C,5)+MA(C,10)+MA(C,15)+MA(C,20))/4),LINETHICK2,COLORGREEN;
IF(趋势>REF(趋势,1),趋势,DRAWNULL),LINETHICK2,COLORRED;
成本:((COST(90)+COST(70)+COST(50)+COST(30)+COST(10))/5)*三线开关,LINETHICK2,COLORWHITE;
生命:EMA(C,55)*三线开关, CIRCLEDOT,COLORYELLOW;
牛熊:EMA(C,265)*三线开关,CIRCLEDOT,COLORLIGREEN;
JRH:=HHV(C,2);
JRL:=LLV(C,2);
VAR101:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));
VAR102:=(REF(VAR101,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR103:=(REF(VAR102,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR104:=(REF(VAR103,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR105:=(REF(VAR104,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR106:=(REF(VAR105,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR107:=(REF(VAR106,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR108:=(REF(VAR107,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR109:=(REF(VAR108,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VARA:=(REF(VAR109,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));
VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR010:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR011:=(REF(VAR010,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR012:=(REF(VAR011,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR013:=(REF(VAR012,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR014:=(REF(VAR013,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR015:=(REF(VAR014,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR016:=(REF(VAR015,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR017:=(REF(VAR016,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR018:=(REF(VAR017,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR019:=((REF(VARD OR VARE OR VARF OR VAR010 OR VAR011 OR VAR012 OR VAR013 OR VAR014 OR VAR015 OR VAR016 OR VAR017 OR VAR018,1)) AND VAR101);
VAR1A:=((REF(VAR101 OR VAR102 OR VAR103 OR VAR104 OR VAR105 OR VAR106 OR VAR107 OR VAR108 OR VAR109 OR VARA OR VARB OR VARC,1)) AND VARD);
红色持股:=VAR101 OR VAR102 OR VAR103 OR VAR104 OR VAR105 OR VAR106 OR VAR107 OR VAR108 OR VAR109 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;
离场:=IF(红色持股,JRL,DRAWNULL);
明离场价:离场,COLORFF99FF,NODRAW;
青色观望:=VARD OR VARE OR VARF OR VAR010 OR VAR011 OR VAR012 OR VAR013 OR VAR014 OR VAR015 OR VAR016 OR VAR017 OR VAR018,COLORFFFF00,NODRAW;
进:=IF(青色观望,JRH,DRAWNULL);
离场价:=REF(离场,1),COLORMAGENTA,NODRAW;
明短买价:进,COLOR33AACC,NODRAW;
短买价:=REF(明短买价,1),COLORYELLOW,NODRAW;

VAR1MZ:=((CLOSE > REF(CLOSE,1)) AND (CLOSE > REF(CLOSE,2)));
VAR2MZ:=((REF(VAR1MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR3MZ:=((REF(VAR2MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR4MZ:=((REF(VAR3MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR5MZ:=((REF(VAR4MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR6MZ:=((REF(VAR5MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR7MZ:=((REF(VAR6MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR8MZ:=((REF(VAR7MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
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);














回复

举报

QQ|

GMT+8, 2024-11-20 11:42

快速回复 返回顶部 返回列表