通达信单阳不破主图指标 彩色价格区间抄底 源码 附图
阳涨幅:=4;
阳倍量:=2;
GF:=2;
单阳:=C>O*(1+阳涨幅/100) AND VOL>REF(VOL,1)*阳倍量;
DRAWTEXT(CURRBARSCOUNT< 100 AND 单阳,L*0.998,'阳'),COLOR00FFFF;
高不破价:=REF(C,BARSLAST(单阳));
中不破价:=REF((C+L)/2,BARSLAST(单阳));
低不破价:=REF(L,BARSLAST(单阳));
单阳不破:=CURRBARSCOUNT< 100 AND BARSLAST(单阳)< 11 AND (LLV(L,BARSLAST(单阳))>低不破价 OR LLV(L,BARSLAST(单阳))=低不破价);
阳低:IF(单阳不破 AND GF>=1,低不破价,DRAWNULL),COLORRED;
FU:=C-阳低;
低到当前幅度%:FU/阳低*100,NODRAW,COLOR00FFFF;
阳高:HHV(H,BARSLAST(单阳)),NODRAW,COLOR00DD00;
FUGA:=阳高-C;
高到当前幅度%:FUGA/阳高*100,NODRAW,COLORFFFF00;
DRAWTEXT(BARSLAST(单阳)=1 AND 单阳不破,低不破价*0.998,'1'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=2 AND 单阳不破,低不破价*0.998,'2'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=3 AND 单阳不破,低不破价*0.998,'3'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=4 AND 单阳不破,低不破价*0.998,'4'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=5 AND 单阳不破,低不破价*0.998,'5'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=6 AND 单阳不破,低不破价*0.998,'6'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=7 AND 单阳不破,低不破价*0.998,'7'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=8 AND 单阳不破,低不破价*0.998,'8'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=9 AND 单阳不破,低不破价*0.998,'9'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=10 AND 单阳不破,低不破价*0.998,'10'),COLORGREEN;
低价A:=IF(单阳不破 AND GF>=1,(阳低+(阳高 - 阳低)*0.191),DRAWNULL);
低价B:=IF(单阳不破 AND GF>=1,(阳低+(阳高 - 阳低)*0.381),DRAWNULL);
低价C:=IF(单阳不破 AND GF>=1,(阳低+(阳高 - 阳低)*0.50),DRAWNULL);
低价D:=IF(单阳不破 AND GF>=1,(阳低+(阳高 - 阳低)*0.618),DRAWNULL);
低价E:=IF(单阳不破 AND GF>=1,(阳低+(阳高 - 阳低)*0.809),DRAWNULL);
低价F:=IF(单阳不破 AND GF>=1,(阳低+(阳高 - 阳低)),DRAWNULL);
DRAWBAND(阳低,RGB(80,0,0),低价A,RGB(110,11,115));
DRAWBAND(低价A,RGB(80,0,0),低价B,RGB(66,166,66));
DRAWBAND(低价B,RGB(80,0,0),低价C,RGB(77,77,77));
DRAWBAND(低价C,RGB(80,0,0),低价D,RGB(88,88,88));
DRAWBAND(低价D,RGB(80,0,0),低价E,RGB(6,55,66));
DRAWBAND(低价E,RGB(80,90,0),低价F,RGB(99,55,66));
实体幅度2:=REF((O+(C-O)*0.667),BARSLAST(单阳));
实体幅度1:=REF((O+(C-O)*0.333),BARSLAST(单阳));
幅度的1二:=REF((L+(H-L)/2),BARSLAST(单阳));
幅度:IF(单阳不破 AND GF>=1,幅度的1二,DRAWNULL),COLOR209FFF,DOTLINE;
幅度A:IF(单阳不破 AND GF>=1,实体幅度2,DRAWNULL),COLORFFFF00,DOTLINE;
幅度B:IF(单阳不破 AND GF>=1,实体幅度1,DRAWNULL),COLORFFFF00,DOTLINE;
低价1:IF(单阳不破 AND GF>=1,阳低*1.03,DRAWNULL),COLOR00FF00;
低价2:IF(单阳不破 AND GF>=1,阳低*1.05,DRAWNULL),COLOR00FF00;
低价3:IF(单阳不破 AND GF>=2,阳低*1.08,DRAWNULL),COLOR00FF00;
低价4:IF(单阳不破 AND GF>=2,阳低*1.13,DRAWNULL),COLOR00FF00;
STICKLINE(C>=O,C,O,3,0),COLOR0000FF;
STICKLINE(C>=O,H,L,0,0),COLOR0000FF;
STICKLINE(C<=O,C,O,3,0),COLORFFFF00;
STICKLINE(C<=O,H,L,0,0),COLORFFFF00;
DRAWTEXT(ISLASTBAR AND GF>=1,阳低*1.03,'3'),COLOR00FF00;
DRAWTEXT(ISLASTBAR AND GF>=1,阳低*1.05,'5'),COLOR00FF00;
DRAWTEXT(ISLASTBAR AND GF>=2,阳低*1.08,'8'),COLOR00FF00;
DRAWTEXT(ISLASTBAR AND GF>=2,阳低*1.13,'13'),COLOR00FF00;
DRAWTEXT(ISLASTBAR AND GF>=1,低价A*1.0025,'←■'),COLOR208FFF;
DRAWTEXT(ISLASTBAR AND GF>=1,低价B*1.0025,'←■'),COLOR208FFF;
DRAWTEXT(ISLASTBAR AND GF>=1,低价C*1.0025,'←■'),COLOR208FFF;
DRAWTEXT(ISLASTBAR AND GF>=1,低价D*1.0025,'←■'),COLOR208FFF;
DRAWTEXT(ISLASTBAR AND GF>=1,低价E*1.0025,'←■'),COLOR208FFF;
两天:=LLV(L,BARSLAST(单阳))>低不破价 OR LLV(L,BARSLAST(单阳))=低不破价;
一般:=LLV(L,BARSLAST(单阳)-2)>低不破价 OR LLV(L,BARSLAST(单阳)-2)=低不破价;
DRAWTEXT(CURRBARSCOUNT< 100 AND BARSLAST(单阳)< 9 AND 两天 AND 一般,低不破价*1.001,'^'),LINETHICK2,COLOR88FF00;
较强:=LLV(L,BARSLAST(单阳)-2)>中不破价 OR LLV(L,BARSLAST(单阳)-2)=中不破价;
DRAWTEXT(CURRBARSCOUNT< 100 AND BARSLAST(单阳)< 9 AND 两天 AND 较强,中不破价,'^'),LINETHICK2,COLOR208FFF;
最强:=LLV(L,BARSLAST(单阳)-3)>高不破价 OR LLV(L,BARSLAST(单阳)-2)=高不破价;
DRAWTEXT(CURRBARSCOUNT< 100 AND BARSLAST(单阳)< 9 AND 两天 AND 最强,高不破价,'^'),LINETHICK2,COLOR0FFFFF;
STICKLINE(C=C,O+((C-O)*0.667),(O+(C-O)*0.667),1.5,0),COLORFF0000,LINETHICK1;
STICKLINE(C=C,O+((C-O)*0.333),(O+(C-O)*0.333),1.5,0),COLORFF0000,LINETHICK1;
STICKLINE(C=C,O+((C-O)/2),(O+(C-O)/2),2,0),COLOR00FFFF,LINETHICK1;
STICKLINE(C=C,L+((H-L)/2),(L+(H-L)/2),2.5,0),COLOR208FFF,LINETHICK1;
DRAWTEXT(BARSLAST(单阳)=1 AND 单阳不破,低不破价*0.998,'1'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=2 AND 单阳不破,低不破价*0.998,'2'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=3 AND 单阳不破,低不破价*0.998,'3'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=4 AND 单阳不破,低不破价*0.998,'4'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=5 AND 单阳不破,低不破价*0.998,'5'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=6 AND 单阳不破,低不破价*0.998,'6'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=7 AND 单阳不破,低不破价*0.998,'7'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=8 AND 单阳不破,低不破价*0.998,'8'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=9 AND 单阳不破,低不破价*0.998,'9'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=10 AND 单阳不破,低不破价*0.998,'10'),COLORGREEN;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
阳涨幅赋值:4
阳倍量赋值:2
GF赋值:2
单阳赋值:C>O*(1+阳涨幅/100) AND 成交量>1日前的成交量*阳倍量
当满足条件 到最后交易的周期< 100 AND 单阳时,在L*0.998和'阳'位置书写文字
高不破价赋值:REF(C,上次单阳距今天数)
中不破价赋值:REF((C+L)/2,上次单阳距今天数)
低不破价赋值:REF(L,上次单阳距今天数)
单阳不破:= 到最后交易的周期< 100 AND 上次单阳距今天数< 11 AND (LLV(L,上次单阳距今天数)>低不破价 OR LLV(L,上次单阳距今天数)=低不破价)
如果单阳不破 AND GF>=1返回低不破价否则返回DRAWNULL
FU赋值:C-阳低
输出低到当前幅度%:FU/阳低*100,NODRAW,COLOR00FFFF
输出阳高:HHV(H,上次单阳距今天数),NODRAW,COLOR00DD00
FUGA:=阳高-C
输出高到当前幅度%:FUGA/阳高*100,NODRAW,COLORFFFF00
DRAWTEXT(上次单阳距今天数=1 AND 单阳不破,低不破价*0.998,'1'),画绿色
DRAWTEXT(上次单阳距今天数=2 AND 单阳不破,低不破价*0.998,'2'),画绿色
DRAWTEXT(上次单阳距今天数=3 AND 单阳不破,低不破价*0.998,'3'),画绿色
DRAWTEXT(上次单阳距今天数=4 AND 单阳不破,低不破价*0.998,'4'),画绿色
DRAWTEXT(上次单阳距今天数=5 AND 单阳不破,低不破价*0.998,'5'),画绿色
DRAWTEXT(上次单阳距今天数=6 AND 单阳不破,低不破价*0.998,'6'),画绿色
DRAWTEXT(上次单阳距今天数=7 AND 单阳不破,低不破价*0.998,'7'),画绿色
DRAWTEXT(上次单阳距今天数=8 AND 单阳不破,低不破价*0.998,'8'),画绿色
DRAWTEXT(上次单阳距今天数=9 AND 单阳不破,低不破价*0.998,'9'),画绿色
DRAWTEXT(上次单阳距今天数=10 AND 单阳不破,低不破价*0.998,'10'),画绿色
低价A赋值:IF(单阳不破 AND GF>=1,(阳低+(阳高 - 阳低)*0.191),DRAWNULL)
低价B赋值:IF(单阳不破 AND GF>=1,(阳低+(阳高 - 阳低)*0.381),DRAWNULL)
低价C赋值:IF(单阳不破 AND GF>=1,(阳低+(阳高 - 阳低)*0.50),DRAWNULL)
低价D赋值:IF(单阳不破 AND GF>=1,(阳低+(阳高 - 阳低)*0.618),DRAWNULL)
低价E赋值:IF(单阳不破 AND GF>=1,(阳低+(阳高 - 阳低)*0.809),DRAWNULL)
低价F赋值:IF(单阳不破 AND GF>=1,(阳低+(阳高 - 阳低)),DRAWNULL)
DRAWBAND(阳低,RGB(80,0,0),低价A,RGB(110,11,115))
DRAWBAND(低价A,RGB(80,0,0),低价B,RGB(66,166,66))
DRAWBAND(低价B,RGB(80,0,0),低价C,RGB(77,77,77))
DRAWBAND(低价C,RGB(80,0,0),低价D,RGB(88,88,88))
DRAWBAND(低价D,RGB(80,0,0),低价E,RGB(6,55,66))
DRAWBAND(低价E,RGB(80,90,0),低价F,RGB(99,55,66))
实体幅度2赋值:REF((O+(C-O)*0.667),上次单阳距今天数)
实体幅度1赋值:REF((O+(C-O)*0.333),上次单阳距今天数)
幅度的1二赋值:REF((L+(H-L)/2),上次单阳距今天数)
如果单阳不破 AND GF>=1返回幅度的1二否则返回DRAWNULL
如果单阳不破 AND GF>=1返回实体幅度2否则返回DRAWNULL
如果单阳不破 AND GF>=1返回实体幅度1否则返回DRAWNULL
如果单阳不破 AND GF>=1返回阳低*1.03否则返回DRAWNULL
如果单阳不破 AND GF>=1返回阳低*1.05否则返回DRAWNULL
如果单阳不破 AND GF>=2返回阳低*1.08否则返回DRAWNULL
如果单阳不破 AND GF>=2返回阳低*1.13否则返回DRAWNULL
当满足条件C>=O时,在C和O之间画柱状线
当满足条件C>=O时,在H和L之间画柱状线
当满足条件C<=O时,在C和O之间画柱状线
当满足条件C<=O时,在H和L之间画柱状线
当满足条件ISLASTBAR AND GF>=1时,在阳低*1.03和'3'位置书写文字
当满足条件ISLASTBAR AND GF>=1时,在阳低*1.05和'5'位置书写文字
当满足条件ISLASTBAR AND GF>=2时,在阳低*1.08和'8'位置书写文字
当满足条件ISLASTBAR AND GF>=2时,在阳低*1.13和'13'位置书写文字
当满足条件ISLASTBAR AND GF>=1时,在低价A*1.0025和'←■'位置书写文字
当满足条件ISLASTBAR AND GF>=1时,在低价B*1.0025和'←■'位置书写文字
当满足条件ISLASTBAR AND GF>=1时,在低价C*1.0025和'←■'位置书写文字
当满足条件ISLASTBAR AND GF>=1时,在低价D*1.0025和'←■'位置书写文字
当满足条件ISLASTBAR AND GF>=1时,在低价E*1.0025和'←■'位置书写文字
两天赋值:LLV(L,上次单阳距今天数)>低不破价 OR LLV(L,上次单阳距今天数)=低不破价
一般赋值:LLV(L,上次单阳距今天数-2)>低不破价 OR LLV(L,上次单阳距今天数-2)=低不破价
DRAWTEXT( 到最后交易的周期< 100 AND 上次单阳距今天数< 9 AND 两天 AND 一般,低不破价*1.001,'^'), 线宽为2,COLOR88FF00
较强赋值:LLV(L,上次单阳距今天数-2)>中不破价 OR LLV(L,上次单阳距今天数-2)=中不破价
DRAWTEXT( 到最后交易的周期< 100 AND 上次单阳距今天数< 9 AND 两天 AND 较强,中不破价,'^'), 线宽为2,COLOR208FFF
最强赋值:LLV(L,上次单阳距今天数-3)>高不破价 OR LLV(L,上次单阳距今天数-2)=高不破价
DRAWTEXT( 到最后交易的周期< 100 AND 上次单阳距今天数< 9 AND 两天 AND 最强,高不破价,'^'), 线宽为2,COLOR0FFFFF
STICKLINE(C=C,O+((C-O)*0.667),(O+(C-O)*0.667),1.5,0),COLORFF0000,LINETHICK1
STICKLINE(C=C,O+((C-O)*0.333),(O+(C-O)*0.333),1.5,0),COLORFF0000,LINETHICK1
STICKLINE(C=C,O+((C-O)/2),(O+(C-O)/2),2,0),COLOR00FFFF,LINETHICK1
STICKLINE(C=C,L+((H-L)/2),(L+(H-L)/2),2.5,0),COLOR208FFF,LINETHICK1
DRAWTEXT(上次单阳距今天数=1 AND 单阳不破,低不破价*0.998,'1'),画绿色
DRAWTEXT(上次单阳距今天数=2 AND 单阳不破,低不破价*0.998,'2'),画绿色
DRAWTEXT(上次单阳距今天数=3 AND 单阳不破,低不破价*0.998,'3'),画绿色
DRAWTEXT(上次单阳距今天数=4 AND 单阳不破,低不破价*0.998,'4'),画绿色
DRAWTEXT(上次单阳距今天数=5 AND 单阳不破,低不破价*0.998,'5'),画绿色
DRAWTEXT(上次单阳距今天数=6 AND 单阳不破,低不破价*0.998,'6'),画绿色
DRAWTEXT(上次单阳距今天数=7 AND 单阳不破,低不破价*0.998,'7'),画绿色
DRAWTEXT(上次单阳距今天数=8 AND 单阳不破,低不破价*0.998,'8'),画绿色
DRAWTEXT(上次单阳距今天数=9 AND 单阳不破,低不破价*0.998,'9'),画绿色
DRAWTEXT(上次单阳距今天数=10 AND 单阳不破,低不破价*0.998,'10'),画绿色