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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信“线上买指标公式”指标公式


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

以下是通达信“线上买指标公式”指标公式

(1)线上买1;

(2)线上买2;

{M5:MA(CLOSE,5)COLORYELLOW;}
M5:MA(CLOSE,5)COLORWHITE;
M10:MA(CLOSE,10)COLORYELLOW;
VZT:= REF(HIGH,1)<REF(HIGH,2) AND REF(LOW,1)<REF(LOW,2);
VJT:= HIGH>REF(HIGH,1) AND LOW>REF(LOW,1);
DIFX:=VZT AND VJT;
DIYXSJ:=BARSLAST(DIFX);
FXBOTTOM:=REF(L,DIYXSJ+1);
DP:=C<FXBOTTOM AND C<O;
SELLPIONT:=DP AND COUNT(DP,5)=1 AND REF(DP,1)=0;
DRAWICON(SELLPIONT AND C<O, H*1.005, 2);


AZT:= REF(HIGH,1)>REF(HIGH,2) AND REF(LOW,1)>REF(LOW,2);
AJT:= HIGH<REF(HIGH,1) AND LOW<REF(LOW,1);
DINGFX:=AZT AND AJT;
DINGYXSJ:=BARSLAST(DINGFX);
FXTOP:=REF(H,DINGYXSJ+1);
SP:=C>FXTOP AND C>O;
BUYPIONT:=SP AND COUNT(SP,5)=1 AND REF(SP,1)=0;
DRAWICON(BUYPIONT AND C>O, L*0.995, 1);

T11:=CONST(LLVBARS(L,10));
T11H:=CONST(REF(H,T11));
CC:=CONST(CURRBARSCOUNT);
T12:=CONST(BARSLAST(CURRBARSCOUNT>CC+T11 AND H>T11H));
T12H:=CONST(REF(H,T12));
T13:=CONST(BARSLAST(CURRBARSCOUNT>CC+T12 AND H>T12H));
T13H:=CONST(REF(H,T13));
上线买1:DRAWLINE(CURRBARSCOUNT=T13+1,T13H,ISLASTBAR,T13H,1),LINETHICK2,COLOR0000FF;
DRAWTEXT(ISLASTBAR,T13H,' 上线买1')LINETHICK1,COLOR0000FF;
T:=BARSLAST(LLVBARS(LOW,10)=0);
T21:=CONST(REF(REF(T,1),T)+T+1);
T21H:=CONST(REF(H,T21));
T22:=CONST(BARSLAST(CURRBARSCOUNT>CC+T21 AND H>T21H));
T22H:=CONST(REF(H,T22));
T23:=CONST(BARSLAST(CURRBARSCOUNT>CC+T22 AND H>T22H));
T23H:=CONST(REF(H,T23));
上线买2:DRAWLINE(CURRBARSCOUNT=T23+1,T23H,ISLASTBAR,T23H,1),LINETHICK2,COLOR0000FF;
DRAWTEXT(ISLASTBAR,T23H,' 上线买2')LINETHICK1,COLOR0000FF;





回复

举报

QQ|

GMT+8, 2024-11-18 22:52

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