好股查询: 行情资金 DDX查询 超赢 千股千评 消息提示 股票公告 概念题材 机构评级 大小非 十大股东 股本结构 股票高管 股吧 涨停 停牌 基本概况
您的位置:好查股网 > 好查股公式 > 公式正文
股票公式搜索:

通达信底部突破上线买主图/选股预警源码[好查股公式]

2022/6/6 17:30:25

底部突破上线买类似于底部U型反转,摆脱底部必须要突破红线,也是走强的分水岭,画线用到未来函数;
T1:=CONST(LLVBARS(LOW,10));
T1HIGH:=CONST(REF(HIGH,T1));
CC:=CONST(CURRBARSCOUNT);
T2:=CONST(BARSLAST(CURRBARSCOUNT>CC+T1 AND H>T1HIGH));
T2HIGH:=CONST(REF(HIGH,T2));
T3:=CONST(BARSLAST(CURRBARSCOUNT>CC+T2 AND HIGH>T2HIGH));
T3HIGH:=CONST(REF(HIGH,T3));
出击线:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),LINETHICK2,COLOR0000FF;
DRAWTEXT(ISLASTBAR, T3HIGH, '上线买')LINETHICK1,COLOR0000FF;

STICKLINE((C-REF(C,1))/REF(C,1)>0.095,C,O,3,0),COLORYELLOW;
STICKLINE((C-REF(C,1))/REF(C,1)<-0.095,C,O,3,0),COLORWHITE;

C_: CONST(C),COLORLIRED,DOTLINE;{现价线};
{主图叠加}
中心线:(O+C)/2,NODRAW;
三分之一:(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),NODRAW;
三分之二:(MAX(O,C)-MIN(O,C))/3+MIN(O,C),NODRAW;
STICKLINE((O+C)/2,O-(O-C)/3,O-(O-C)/3,3,0),COLORRED;
STICKLINE((O+C)/2,O-2*(O-C)/3,O-2*(O-C)/3,3,0),COLORRED;
STICKLINE((O+C)/2,(O+C)/2,(O+C)/2,3,0),COLORYELLOW;

DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLOR0080FF;
DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF;
DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF;
DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF;
DRAWTEXT_FIX(1,0.00,0.04,0,'主题投资:')COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.04,0,EXTERNSTR(0,1));
换手率%:100*VOL/(FINANCE(7)/100)COLORYELLOW,NODRAW;

攻防价位:(REF((H-L)*0.618+L,1)),NODRAW,COLORYELLOW; 
STICKLINE(ISLASTBAR,攻防价位-0.01,攻防价位,6,0),COLORYELLOW;

YT:=(CLOSE-MA(CLOSE,10))/MA(CLOSE,10)*100;
DRAWICON(CROSS(10,YT),H,2);
DRAWTEXT(CROSS(10,YT),H*0.99,'  乖离'),COLORGREEN;

好查股公式指标
好查股网查股:资金行情查询 实时DDX查询 大智慧超赢数据 千股千评 最新提示 股票公告 题材概念 个股评级查询 股东查询 股票高管查询 基本概况查询
手机版 | 电脑端
在线客服
本站股票数据全部免费,内容仅供参考,不构成投资建议,据此操作,风险自担。
本站不为所提供数据的错误或因依此信息所采取的任何行为负责。站内广告不代表好查股网的观点! 豫ICP备2021024630号-1