通达信乾坤决策眼分时主图
昨开:='REF(O,1)#DAY',NODRAW;
昨高:='REF(H,1)#DAY',NODRAW;
昨低:='REF(L,1)#DAY',NODRAW;
昨收:=DYNAINFO(3),NODRAW;
A1:=CROSS(C,昨高);
B:=CROSS(昨高,C);
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.01,0,STRCAT('昨高: ',CON2STR(昨高,2))),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.06,0,STRCAT('昨低: ',CON2STR(昨低,2))),COLORMAGENTA;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.11,0,STRCAT('昨收: ',CON2STR(昨收,2))),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.16,0,STRCAT('昨开: ',CON2STR(昨开,2))),COLORWHITE;
N0:=STRCAT(CON2STR(YEAR,0),' 年 ');
Y:=STRCAT(CON2STR(MONTH,0),' 月 ');
R:=STRCAT(CON2STR(DAY,0),' 日 ');
SJ:=STRCAT(STRCAT(N0,Y), R);
DRAWTEXT_FIX(C>0,0.68,0,0,SJ);
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))),COLOR808080;
CS2:=CONST(IF(N,LLV(L,0),REF(LLV(L,0),N))),COLOR808080;
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),COLOR00CCCC;
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),COLOR8C8C00;
DRAWTEXT(ISLASTBAR,(支撑+阻力)/2,' 中'),COLORFFFFFF;
均价:SUM(V*C,0)/SUM(V,0),COLOR004080,DOTLINE;
DRAWTEXT(CURRBARSCOUNT=4,均价,' 均价'),COLORFFFFFF;
最新:C,LINETHICK9,COLORFFFF00;
IF(C>=REF(C,1),C,DRAWNULL),LINETHICK9,COLOR0909FF;
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);
{分时均线}
W:=BARSLAST(DAY-REF(DAY,1))+1;
FSJX:SUM(CLOSE*VOL,W)/SUM(VOL,W),LINETHICK2,COLOR00FFFF;
IF(FSJX<REF(FSJX,1),FSJX,DRAWNULL),LINETHICK2,COLOR00A100;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
昨开赋值:'1日前的O#DAY',NODRAW
昨高赋值:'1日前的H#DAY',NODRAW
昨低赋值:'1日前的L#DAY',NODRAW
昨收赋值:DYNAINFO(3),NODRAW
A1赋值:C上穿昨高
B赋值:昨高上穿C
输出
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.01,0,STRCAT('昨高: ',CON2STR(昨高,2))),画黄色
输出
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.06,0,STRCAT('昨低: ',CON2STR(昨低,2))),画洋红色
输出
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.11,0,STRCAT('昨收: ',CON2STR(昨收,2))),画绿色
DRAWTEXT_FIX( 到最后交易的周期=1,0.01,0.16,0,STRCAT('输出昨开: ',CON2STR(昨开,2))),画白色
N0赋值:STRCAT(CON2STR(YEAR,0),' 年 ')
Y赋值:STRCAT(CON2STR(MONTH,0),' 月 ')
R赋值:STRCAT(CON2STR(DAY,0),' 日 ')
SJ赋值:STRCAT(STRCAT(N0,Y), R)
当满足条件C>0时,在横轴0.68纵轴0位置书写文字
A赋值:O>C AND C>1日前的C AND O/1日前的C>1.03
DRAWTEXT(A的绝对值>0,L, '假阴'),画黄色
DRAWICON(C1日前的C,H,6)
输出{假阴真阳}
均价5:成交额/成交量/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))),COLOR808080
CS2赋值:CONST(IF(N,0日内L最低值,REF(0日内L最低值,N))),COLOR808080
当满足条件时间=1时,在CS1和CS2之间画柱状线
H1赋值:MAX(DYNAINFO(3),DYNAINFO(5))
L1赋值:MIN(DYNAINFO(3),DYNAINFO(6))
P1赋值:H1-L1
输出
阻力:L1+P1*7/8,COLORFFFFFF,DOTLINE
当满足条件 到最后交易的周期=1时,在阻力和' 阻力'位置书写文字
输出
支撑:L1+P1*0.5/8,COLORFFFFFF,DOTLINE
当满足条件 到最后交易的周期=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),COLOR00CCCC
MC赋值:C>阻力 AND CROSS(2日前的C,C)
STICKLINE(阻力上穿现价,C,中,2,0),COLOR8C8C00
当满足条件MC=1时,在阻力和中之间画柱状线
DRAWICON(MC=1 OR 阻力上穿现价,中,35)
STICKLINE(现价上穿阻力,阻力,阻力-(支撑-中)/5,2,0),COLOR8C8C00
DRAWTEXT(ISLASTBAR,(支撑+阻力)/2,' 中'),COLORFFFFFF
输出
均价:0的V*C日累和/0的V日累和,COLOR004080,DOTLINE
当满足条件 到最后交易的周期=4时,在均价和' 均价'位置书写文字
输出
最新:C,LINETHICK9,COLORFFFF00
IF(C>=1日前的C,C,DRAWNULL),LINETHICK9,COLOR0909FF
AA:=SUM(成交额,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)
{分时均线}
W赋值:上次DAY-1日前的DAY距今天数+1
输出
FSJX:W的收盘价*成交量日累和/W的成交量日累和, 线宽为2,COLOR00FFFF
IF(FSJX<1日前的FSJX,FSJX,DRAWNULL), 线宽为2,COLOR00A100