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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[东方财富通] 预测VOL幅图公式


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

预测VOL幅图公式

源码

A:=PERIOD;
N:=IF(A=0,1,IF(A=1,5,IF(A=2,15,IF(A=3,30,IF(A=4,60,IF(A=5,240,DRAWNULL))))));
M:=IF(N=1,IF(MOD(FROMOPEN,1)=0,1,
MOD(FROMOPEN,1)),IF(N=5,IF(MOD(FROMOPEN,5)=0,5,
MOD(FROMOPEN,5)),IF(N=15,IF(MOD(FROMOPEN,15)=0,15,
MOD(FROMOPEN,15)),IF(N=30,IF(MOD(FROMOPEN,30)=0,30,
MOD(FROMOPEN,30)),IF(N=60,IF(MOD(FROMOPEN,60)=0,60,
MOD(FROMOPEN,60)),IF(N=240,FROMOPEN,DRAWNULL))))));
现量:VOL,NODRAW;
虚拟:IF(CURRBARSCOUNT=0,V*N/M,DRAWNULL),NODRAW,COLORFFFF00;
STICKLINE(CURRBARSCOUNT=0 AND N,虚拟,0,10,-1),COLORFFFF00;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,10,0),COLOR0099FF;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,8,0),COLOR11AAFF;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,6,0),COLOR22BBFF;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,4.2,0),COLOR33CCFF;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,3.3,0),COLOR44DDFF;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,2.2,0),COLOR55EEFF;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,0.6,0),COLOR66FFFF;
STICKLINE(CLOSE>=REF(CLOSE,1) ,0,VOL,10,0),COLOR880000;
STICKLINE(CLOSE>=REF(CLOSE,1) ,0,VOL,8,0),COLOR991100;
STICKLINE(CLOSE>=REF(CLOSE,1) ,0,VOL,6,0),COLORAA2200;
STICKLINE(CLOSE>=REF(CLOSE,1) ,0,VOL,4.2,0),COLORBB3300;
STICKLINE(CLOSE>=REF(CLOSE,1) ,0,VOL,3.3,0),COLORCC4400;
STICKLINE(CLOSE>=REF(CLOSE,1) ,0,VOL,2.2,0),COLORDD5500;
STICKLINE(CLOSE>=REF(CLOSE,1) ,0,VOL,1.2,0),COLOREE6600;
STICKLINE(CLOSE>=REF(CLOSE,1) ,0,VOL,0.6,0),COLORFF7700;






回复

举报

QQ|

GMT+8, 2024-11-16 12:42

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