通达信可转债做短线T分时神器 分时主图 源码分享 附图
A:=O>C AND C>REF(C,1) AND O/REF(C,1)>1.03;
DRAWTEXT(ABS(A)>0,L, '假阴'),COLORYELLOW;
DRAWICON(C<O AND C>REF(C,1),H,6);{假阴真阳}
均价5:AMOUNT/VOL/100,NODRAW;
假阴0:=O>C AND 均价5>REF(C,1);
DRAWTEXT(假阴0,L-0.2,'假阴真阳'),COLORE8E8E8;
STICKLINE(假阴0,O,C,1,0),COLORRED;
{DRAWTEXT_FIX(ISLASTBAR,0.5,0.05,0,CODE),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.55,0.05,0,STKNAME)COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.6,0.05,0,HYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.6,0,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.55,0.85,0,GNBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.55,0.90,0,FGBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.55,0.95,0,ZSBLOCK),COLORYELLOW;}
时间:=TIME=100000;
N:=BARSLAST(时间),COLOR808080;
常数:CONST(IF(N=0,C,REF(C,N))),COLOR004848,DOTLINE;
CS1:=CONST(IF(N,HHV(H,0),REF(HHV(H,0),N))),COLORWHITE;
CS2:=CONST(IF(N,LLV(L,0),REF(LLV(L,0),N))),COLORWHITE;
STICKLINE(时间=1,CS1,CS2,-1,0),COLOR808080;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,COLORFFFFFF,DOTLINE;
DRAWTEXT(CURRBARSCOUNT=1,阻力,' 阻力'),COLORFFFFFF;
支撑:L1+P1*0.5/8,COLORFFFFFF,DOTLINE;
DRAWTEXT(CURRBARSCOUNT=1,支撑,' 支撑'),COLORFFFFFF;
中:(支撑+阻力)/2,COLORFFFFFF,DOTLINE;
现价:CLOSE,COLORWHITE,LINETHICK1;
MR:=C<支撑 AND CROSS(C,REF(C,2));
STICKLINE(CROSS(现价,支撑),C,中,2,0),COLOR00CCCC;
STICKLINE(MR=1,支撑,中,2,0),COLOR00CCCC;
DRAWICON(MR=1 OR CROSS(现价,支撑),中,34);
STICKLINE(CROSS(支撑,现价),支撑,(支撑-中)/5+支撑,2,0),COLORMAGENTA;
MC:=C>阻力 AND CROSS(REF(C,2),C);
STICKLINE(CROSS(阻力,现价),C,中,2,0),COLOR8C8C00;
STICKLINE(MC=1,阻力,中,2,0),COLOR8C8C00;
DRAWICON(MC=1 OR CROSS(阻力,现价),中,35);
STICKLINE(CROSS(现价,阻力),阻力,阻力-(支撑-中)/5,2,0),COLORGREEN;
DRAWTEXT(ISLASTBAR,(支撑+阻力)/2,' 中'),COLORFFFFFF;
最新:C,LINETHICK1,COLORWHITE;
IF(C>=REF(C,1),C,DRAWNULL),LINETHICK1,COLORWHITE;
AA:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));
BB:=BETWEEN(C/AA,C+H,C-H);
DRAWICON(ISLASTBAR AND C>REF(C,1),C,1);
DRAWICON(ISLASTBAR AND C<REF(C,1),C,2);
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
A赋值:O>C AND C>1日前的C AND O/1日前的C>1.03
DRAWTEXT(A的绝对值>0,L, '假阴'),画黄色
DRAWICON(C1日前的C,H,6)
输出{假阴真阳}
均价5:AMOUNT/成交量/100,NODRAW
假阴0赋值:O>C AND 均价5>1日前的C
当满足条件假阴0时,在L-0.2和'假阴真阳'位置书写文字
当满足条件假阴0时,在O和C之间画柱状线
当满足条件ISLASTBAR时,在横轴0.5纵轴0.05位置书写文字
当满足条件ISLASTBAR时,在横轴0.55纵轴0.05位置书写文字
当满足条件ISLASTBAR时,在横轴0.6纵轴0.05位置书写文字
当满足条件ISLASTBAR时,在横轴0.6纵轴0位置书写文字
当满足条件ISLASTBAR时,在横轴0.55纵轴0.85位置书写文字
当满足条件ISLASTBAR时,在横轴0.55纵轴0.90位置书写文字
当满足条件ISLASTBAR时,在横轴0.55纵轴0.95位置书写文字
}
时间赋值:TIME=100000
N赋值:上次时间距今天数,COLOR808080
输出常数:CONST(IF(N=0,C,N日前的C)),COLOR004848,DOTLINE
CS1赋值:CONST(IF(N,0日内H最高值,REF(0日内H最高值,N))),画白色
CS2赋值:CONST(IF(N,0日内L最低值,REF(0日内L最低值,N))),画白色
当满足条件时间=1时,在CS1和CS2之间画柱状线
H1赋值:MAX(DYNAINFO(3),DYNAINFO(5))
L1赋值:MIN(DYNAINFO(3),DYNAINFO(6))
P1赋值:H1-L1
输出阻力:L1+P1*7/8,COLORFFFFFF,DOTLINE
当满足条件CURRBARSCOUNT=1时,在阻力和' 阻力'位置书写文字
输出支撑:L1+P1*0.5/8,COLORFFFFFF,DOTLINE
当满足条件CURRBARSCOUNT=1时,在支撑和' 支撑'位置书写文字
输出中:(支撑+阻力)/2,COLORFFFFFF,DOTLINE
输出现价:收盘价,画白色,LINETHICK1
MR赋值:C<支撑 AND CROSS(C,2日前的C)
STICKLINE(现价上穿支撑,C,中,2,0),COLOR00CCCC
当满足条件MR=1时,在支撑和中之间画柱状线
DRAWICON(MR=1 OR 现价上穿支撑,中,34)
STICKLINE(支撑上穿现价,支撑,(支撑-中)/5+支撑,2,0),COLORMAGENTA
MC赋值:C>阻力 AND CROSS(2日前的C,C)
STICKLINE(阻力上穿现价,C,中,2,0),COLOR8C8C00
当满足条件MC=1时,在阻力和中之间画柱状线
DRAWICON(MC=1 OR 阻力上穿现价,中,35)
STICKLINE(现价上穿阻力,阻力,阻力-(支撑-中)/5,2,0),COLORGREEN
DRAWTEXT(ISLASTBAR,(支撑+阻力)/2,' 中'),COLORFFFFFF
输出最新:C,LINETHICK1,画白色
IF(C>=1日前的C,C,DRAWNULL),LINETHICK1,画白色
AA赋值:SUM(AMOUNT,C的有效数据周期数)/SUM(成交量*100,C的有效数据周期数)
BB赋值:BETWEEN(C/AA,C+H,C-H)
DRAWICON(ISLASTBAR AND C>1日前的C,C,1)
DRAWICON(ISLASTBAR AND C<1日前的C,C,2)