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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[飞狐] 分时盘口分析(解盘公式)


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

以下是分时盘口分析(解盘公式)

分时盘口分析(解盘公式)

AA1:=(1);
VAR1:=IF(((BUYVOL <= REF(ASKVOL(1),1)) AND (CLOSE = REF(ASKPRICE(1),1))),BUYVOL,0);
VAR2:=IF(((BUYVOL <= (REF(ASKVOL(1),1) + REF(ASKVOL(2),1))) AND (CLOSE = REF(ASKPRICE(2),1))),BUYVOL,0);
VAR3:=IF(((BUYVOL <= ((REF(ASKVOL(1),1) + REF(ASKVOL(2),1)) + REF(ASKVOL(3),1))) AND (CLOSE = REF(ASKPRICE(3),1))),BUYVOL,0);
VAR4:=IF((((CLOSE < REF(ASKPRICE(1),1)) AND (REF(BIDVOL(1),1) > 0)) AND (REF(ASKVOL(1),1) > 0)),BUYVOL,0);
VAR5:=IF((((BUYVOL > REF(ASKVOL(1),1)) AND (CLOSE > REF(ASKPRICE(1),1))) AND (CLOSE < REF(ASKPRICE(2),1))),BUYVOL,0);
VAR6:=IF((((BUYVOL > (REF(ASKVOL(1),1) + REF(ASKVOL(2),1))) AND (CLOSE > REF(ASKPRICE(2),1))) AND (CLOSE < REF(ASKPRICE(3),1))),BUYVOL,0);
VAR7:=IF(((SELLVOL <= REF(BIDVOL(1),1)) AND (CLOSE = REF(BIDPRICE(1),1))),SELLVOL,0);
VAR8:=IF(((SELLVOL <= (REF(BIDVOL(1),1) + REF(BIDVOL(2),1))) AND (CLOSE = REF(BIDPRICE(2),1))),SELLVOL,0);
VAR9:=IF(((SELLVOL <= ((REF(BIDVOL(1),1) + REF(BIDVOL(2),1)) + REF(BIDVOL(3),1))) AND (CLOSE = REF(BIDPRICE(3),1))),SELLVOL,0);
VARA:=IF((((CLOSE > REF(BIDPRICE(1),1)) AND (REF(ASKVOL(1),1) > 0)) AND (REF(BIDVOL(1),1) > 0)),SELLVOL,0);
VARB:=IF((((SELLVOL > REF(BIDVOL(1),1)) AND (CLOSE < REF(BIDPRICE(1),1))) AND (CLOSE > REF(BIDPRICE(2),1))),SELLVOL,0);
VARC:=IF((((SELLVOL > (REF(BIDVOL(1),1) + REF(BIDVOL(2),1))) AND (CLOSE < REF(BIDPRICE(2),1))) AND (CLOSE > REF(BIDPRICE(3),1))),SELLVOL,0);
VARD:=IF(((((REF(ASKVOL(1),1) + REF(ASKVOL(2),1)) + REF(ASKVOL(3),1)) = 0) AND (REF(BIDVOL(1),1) > 0)),BUYVOL,0);
VARE:=IF(((((REF(BIDVOL(1),1) + REF(BIDVOL(2),1)) + REF(BIDVOL(3),1)) = 0) AND (REF(ASKVOL(1),1) > 0)),SELLVOL,0);
VARF:=IF(((((ASKVOL(1) < REF(ASKVOL(1),1)) AND (ASKPRICE(1) = REF(ASKPRICE(1),1))) AND (CLOSE < REF(ASKPRICE(1),1))) AND ((REF(ASKVOL(1),1) - ASKVOL(1)) <> SELLVOL)),(REF(ASKVOL(1),1) - ASKVOL(1)),0);
VAR10:=IF((((ASKVOL(3) < REF(ASKVOL(3),1)) AND (ASKPRICE(3) = REF(ASKPRICE(3),1))) AND (CLOSE < REF(ASKPRICE(3),1))),(REF(ASKVOL(3),1) - ASKVOL(3)),0);
VAR11:=IF(((((((((REF(BIDVOL(1),1) + REF(BIDVOL(2),1)) + REF(BIDVOL(3),1)) = 0) AND (REF(ASKVOL(1),1) > 0)) AND ((REF(ASKVOL(1),1) - ASKVOL(1)) < SELLVOL)) AND (ASKVOL(1) < REF(ASKVOL(1),1))) AND (ASKPRICE(1) = REF(ASKPRICE(1),1))) AND (CLOSE < REF(ASKPRICE(1),1))),(REF(ASKVOL(1),1) - ASKVOL(1)),0);
VAR12:=IF((((ASKVOL(2) < REF(ASKVOL(3),1)) AND (ASKPRICE(2) = REF(ASKPRICE(3),1))) AND (CLOSE < REF(ASKPRICE(3),1))),(REF(ASKVOL(3),1) - ASKVOL(2)),0);
VAR13:=IF((((ASKVOL(3) < REF(ASKVOL(2),1)) AND (ASKPRICE(3) = REF(ASKPRICE(2),1))) AND (CLOSE < REF(ASKPRICE(2),1))),(REF(ASKVOL(2),1) - ASKVOL(3)),0);
VAR14:=IF(((((BIDVOL(1) < REF(BIDVOL(1),1)) AND (BIDPRICE(1) = REF(BIDPRICE(1),1))) AND (CLOSE > REF(BIDPRICE(1),1))) AND ((REF(BIDVOL(1),1) - BIDVOL(1)) <> BUYVOL)),(REF(BIDVOL(1),1) - BIDVOL(1)),0);
VAR15:=IF((((BIDVOL(3) < REF(BIDVOL(3),1)) AND (BIDPRICE(3) = REF(BIDPRICE(3),1))) AND (CLOSE > REF(BIDPRICE(3),1))),(REF(BIDVOL(3),1) - BIDVOL(3)),0);
VAR16:=IF(((((((((REF(ASKVOL(1),1) + REF(ASKVOL(2),1)) + REF(ASKVOL(3),1)) = 0) AND (REF(BIDVOL(1),1) > 0)) AND ((REF(BIDVOL(1),1) - BIDVOL(1)) < BUYVOL)) AND (BIDVOL(1) < REF(BIDVOL(1),1))) AND (BIDPRICE(1) = REF(BIDPRICE(1),1))) AND (CLOSE = REF(BIDPRICE(1),1))),(REF(BIDVOL(1),1) - BIDVOL(1)),0);
VAR17:=IF((((BIDVOL(2) < REF(BIDVOL(3),1)) AND (BIDPRICE(2) = REF(BIDPRICE(3),1))) AND (CLOSE > REF(BIDPRICE(3),1))),(REF(BIDVOL(3),1) - BIDVOL(2)),0);
VAR18:=IF((((BIDVOL(3) < REF(BIDVOL(2),1)) AND (BIDPRICE(3) = REF(BIDPRICE(2),1))) AND (CLOSE > REF(BIDPRICE(2),1))),(REF(BIDVOL(2),1) - BIDVOL(3)),0);
VAR19:=IF(((BUYVOL <= ((REF(ASKVOL(1),1) + REF(ASKVOL(2),1)) + REF(ASKVOL(3),1))) AND (CLOSE >= REF(ASKPRICE(3),1))),BUYVOL,0);
VAR1A:=IF(((SELLVOL <= ((REF(BIDVOL(1),1) + REF(BIDVOL(2),1)) + REF(BIDVOL(3),1))) AND (CLOSE <= REF(BIDPRICE(3),1))),SELLVOL,0);
撤卖:=CEILING(IF((((((VARF + VAR10) + VAR11) + VAR12) + VAR13) > BUYVOL),(((((VARF + VAR10) + VAR11) + VAR12) + VAR13) - BUYVOL),0));
撤买:=CEILING(IF((((((VAR14 + VAR15) + VAR16) + VAR17) + VAR18) > SELLVOL),(((((VAR14 + VAR15) + VAR16) + VAR17) + VAR18) - SELLVOL),0));
BB1:=(((CLOSE + OPEN) + (3 * LOW)) / 5);
BIAS1:=(((BB1 - MA(BB1,6)) / MA(BB1,6)) * 100);
BIAS2:=(((BB1 - MA(BB1,12)) / MA(BB1,12)) * 100);
BIAS3:=(((BB1 - MA(BB1,24)) / MA(BB1,24)) * 100);
MM:=(((BIAS1 + (2 * BIAS2)) + (3 * BIAS3)) / 6);
MN:=EMA(MM,1);
AA:=BUYVOL;
BB:=SELLVOL;
主买:=CEILING(IF((((VAR1 + VAR2) + VAR3) > 0),((VAR1 + VAR2) + VAR3),AA));
主卖:=CEILING(IF((((VAR7 + VAR8) + VAR9) > 0),((VAR7 + VAR8) + VAR9),BB));
主动买:SUM(主买,0),colorFF00FF;
主动卖:SUM(主卖,0);
对敲买:=CEILING(SUM(((VAR4 + VAR5) + VAR6),0));
对敲卖:=CEILING(SUM(((VARA + VARB) + VARC),0));
A1号:=SUM(IF((BUYVOL >= 100),VOL,0),0);
A2号:=SUM(IF((SELLVOL >= 100),VOL,0),0);
A3号:=SUM(IF((BUYVOL >= 150),


回复

举报

QQ|

GMT+8, 2024-11-16 15:30

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