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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[大智慧] 真正的单阳不破指标


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-21 17:08:41
真正的单阳不破指标介绍

真正的单阳不破指标

大智慧排序
指标原理:在一根涨幅为4%的长阳后面,有N根收盘不低于最低价,同时不高于最高价的K线组合。
p1:4 0 11 0.1
BAA:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>=P1;
BAB:=SUMBARS( BAA, 1)-1;
BBB:=SUMBARS( BAA, 1);
CAA:=REF(HIGH,BAB);
CAB:=REF(OPEN,BAB);
BAC:=IF(CLOSE>=OPEN,CLOSE,OPEN);
BAD:=IF(CLOSE>=OPEN,OPEN,CLOSE);
IF BBB=1 THEN OUTA:=0;
ELSE IF BBB=2 AND ALL(BAC<=CAA,1) AND ALL(LOW>=CAB,1) THEN OUTA:=1;
ELSE IF BBB=3 AND ALL(BAC<=CAA,2) AND ALL(LOW>=CAB,2) THEN OUTA:=2;
ELSE IF BBB=4 AND ALL(BAC<=CAA,3) AND ALL(LOW>=CAB,3) THEN OUTA:=3;
ELSE IF BBB=5 AND ALL(BAC<=CAA,4) AND ALL(LOW>=CAB,4) THEN OUTA:=4;
ELSE IF BBB=6 AND ALL(BAC<=CAA,5) AND ALL(LOW>=CAB,5) THEN OUTA:=5;
ELSE IF BBB=7 AND ALL(BAC<=CAA,6) AND ALL(LOW>=CAB,6) THEN OUTA:=6;
ELSE IF BBB=8 AND ALL(BAC<=CAA,7) AND ALL(LOW>=CAB,7) THEN OUTA:=7;
ELSE IF BBB=9 AND ALL(BAC<=CAA,8) AND ALL(LOW>=CAB,8) THEN OUTA:=8;
ELSE IF BBB=10 AND ALL(BAC<=CAA,9) AND ALL(LOW>=CAB,9) THEN OUTA:=9;
ELSE IF BBB=11 AND ALL(BAC<=CAA,10) AND ALL(LOW>=CAB,10) THEN OUTA:=10;
ELSE IF BBB=12 AND ALL(BAC<=CAA,11) AND ALL(LOW>=CAB,11) THEN OUTA:=11;
ELSE IF BBB=13 AND ALL(BAC<=CAA,12) AND ALL(LOW>=CAB,12) THEN OUTA:=12;
ELSE IF BBB=14 AND ALL(BAC<=CAA,13) AND ALL(LOW>=CAB,13) THEN OUTA:=13;
ELSE IF BBB=15 AND ALL(BAC<=CAA,14) AND ALL(LOW>=CAB,14) THEN OUTA:=14;
ELSE IF BBB=16 AND ALL(BAC<=CAA,15) AND ALL(LOW>=CAB,15) THEN OUTA:=15;
ELSE IF BBB=17 AND ALL(BAC<=CAA,16) AND ALL(LOW>=CAB,16) THEN OUTA:=16;
ELSE IF BBB=18 AND ALL(BAC<=CAA,17) AND ALL(LOW>=CAB,17) THEN OUTA:=17;
ELSE IF BBB=19 AND ALL(BAC<=CAA,18) AND ALL(LOW>=CAB,18) THEN OUTA:=18;
ELSE IF BBB=20 AND ALL(BAC<=CAA,19) AND ALL(LOW>=CAB,19) THEN OUTA:=19;
ELSE OUTA:=0;
天数:if(c>=ma(c,120),OUTA,0);




 



gd17254

回复

举报

QQ|

GMT+8, 2024-11-17 18:33

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