参考这里的帖子,修改一下公式:http://www.fxjgsw.com/soft/sort013/sort05/down-54950.html
本指标摘取论坛多位高手之精华,整合而成,经近两日盘中观察实站效果不错。在此向各位高手致谢!
公式融入多项指标,对日间买卖很有帮助,遗憾之处"通达信"不能分时预警,否则富可抵院(家属院)!
使用说明:
1,加入量比指标,粉色条:量比>5, 兰色条:量比>2.5,
2,macd大家不用教,
3,彩带是分时均线,做短线T.结合macd,粉进兰出。
4,分时线变桔黄s,涨停可能较大,如左上角三色带全紫,涨幅不大可追!(新手慎为)
5,狮子,红球,金指,均为强势信号,如多指标共振,果断杀入!
指标只做参考,同一只枪,高手弹无虚发,低手可能自伤,祝大家投顺利!
引用公式源码如下
{FSKY 分时K线引用}
今量:VOL;
JH:H;
JL:L;
昨量:REF(VOL,1);
前量:REF(VOL,2);
昨开:REF(O,1);
昨收:REF(C,1);
ZO:=昨开;
ZC:=昨收;
ZH:REF(H,1);
ZL:REF(L,1);
前开:REF(O,2);
前收:REF(C,2);
{ 原文链接:http://www.fxjgsw.com/soft/sort013/sort05/down-54950.html }
前量:="FSKY.前量#DAY";
昨量:="FSKY.昨量#DAY";
今量:="FSKY.今量#DAY";
前总:=前量;
昨总:=昨量;
总:=今量,NODRAW;
BMM:=MAX(前总,昨总);
AMM:=IF(总/BMM>2,BMM*3,BMM);
MM:=200/AMM;
KP:=DYNAINFO(4);
ZX:=DYNAINFO(7);
A1:=IF(ZX>=KP,355,0);
A2:=IF(ZX>=KP,0,355);
A3:=IF(ZX>=KP,0,0);
DRAWRECTREL(0,80,MM*今量,110,RGB(A1,A2,A3));
昨开:="FSKY.昨开#DAY";
昨收:="FSKY.昨收#DAY";
A4:=IF(昨收>=昨开,355,0);
A5:=IF(昨收>=昨开,0,355);
A6:=IF(昨收>=昨开,0,0);
DRAWRECTREL(0,40,MM*昨量,70,RGB(A4,A5,A6));
前开:="FSKY.前开#DAY";
前收:="FSKY.前收#DAY";
A7:=IF(前收>=前开,355,0);
A8:=IF(前收>=前开,0,355);
A9:=IF(前收>=前开,0,0);
DRAWRECTREL(0,0,MM*前量,30,RGB(A7,A8,A9));
{分时K线}
ZS:=DYNAINFO(3);
ZG:=DYNAINFO(5);
ZD:=DYNAINFO(6);
OP:=500-(KP/ZS-1)*4000;
CL:=500-(ZX/ZS-1)*4000;
HI:=500-(ZG/ZS-1)*4000;
LO:=500-(ZD/ZS-1)*4000;
N1:=IF(TIME>=130000 OR TIME<91500,360,900);
DRAWRECTREL(N1+4,OP,N1+8,HI,RGB(350,0,350));
DRAWRECTREL(N1+4,CL,N1+8,LO,RGB(0,355,0));
Q1:=IF(ZX>=KP,350,0);
Q2:=IF(ZX>=KP,0,350);
Q3:=IF(ZX>=KP,0,0);
DRAWRECTREL(N1-10,OP,N1+22,CL,RGB(Q1,Q2,Q3));
ZO:="FSKY.ZO#DAY";
ZC:="FSKY.ZC#DAY";
ZH:="FSKY.ZH#DAY";
ZL:="FSKY.ZL#DAY";
ZKP:=500-(ZO/ZS-1)*4000;
ZCP:=500-(ZC/ZS-1)*4000;
ZZG:=500-(ZH/ZS-1)*4000;
ZZD:=500-(ZL/ZS-1)*4000;
DRAWRECTREL(N1-36,ZKP,N1-32,ZZG,RGB(355,0,355));
DRAWRECTREL(N1-36,ZCP,N1-32,ZZD,RGB(0,355,0));
Q4:=IF(ZC>=ZO,355,0);
Q5:=IF(ZC>=ZO,0,355);
Q6:=IF(ZC>=ZO,0,0);
DRAWRECTREL(N1-49,ZKP,N1-17,ZCP,RGB(Q4,Q5,Q6));
JO:="FSKY.JO#DAY";
JC:="FSKY.JC#DAY";
JH:="FSKY.JH#DAY";
JL:="FSKY.JL#DAY";
ZZKP:=500-(JO/ZS-1)*4000;
ZZCP:=500-(JC/ZS-1)*4000;
ZZZG:=500-(JH/ZS-1)*4000;
ZZZD:=500-(JL/ZS-1)*4000;
DRAWRECTREL(N1-76,ZZKP,N1-72,ZZZG,RGB(355,0,355));
DRAWRECTREL(N1-76,ZZCP,N1-72,ZZZD,RGB(0,355,0));
Q7:=IF(JC>=JO,355,0);
Q8:=IF(JC>=JO,0,355);
Q9:=IF(JC>=JO,0,0);
DRAWRECTREL(N1-89,ZZKP,N1-57,ZZCP,RGB(Q7,Q8,Q9));
JO3:="FSKY.JO3#DAY";
JC3:="FSKY.JC3#DAY";
JH3:="FSKY.JH3#DAY";
JL3:="FSKY.JL3#DAY";
ZZKP3:=500-(JO3/ZS-1)*4000;
ZZCP3:=500-(JC3/ZS-1)*4000;
ZZZG3:=500-(JH3/ZS-1)*4000;
ZZZD3:=500-(JL3/ZS-1)*4000;
DRAWRECTREL(N1-116,ZZKP3,N1-112,ZZZG3,RGB(355,0,355));
DRAWRECTREL(N1-116,ZZCP3,N1-112,ZZZD3,RGB(0,355,0));
Q10:=IF(JC3>=JO3,355,0);
Q11:=IF(JC3>=JO3,0,355);
Q12:=IF(JC3>=JO3,0,0);
DRAWRECTREL(N1-129,ZZKP3,N1-97,ZZCP3,RGB(Q10,Q11,Q12));
JO4:="FSKY.JO4#DAY";
JC4:="FSKY.JC4#DAY";
JH4:="FSKY.JH4#DAY";
JL4:="FSKY.JL4#DAY";
ZZKP4:=500-(JO4/ZS-1)*4000;
ZZCP4:=500-(JC4/ZS-1)*4000;
ZZZG4:=500-(JH4/ZS-1)*4000;
ZZZD4:=500-(JL4/ZS-1)*4000;
DRAWRECTREL(N1-156,ZZKP4,N1-152,ZZZG4,RGB(355,0,355));
DRAWRECTREL(N1-156,ZZCP4,N1-152,ZZZD4,RGB(0,355,0));
Q13:=IF(JC4>=JO4,355,0);
Q14:=IF(JC4>=JO4,0,355);
Q15:=IF(JC4>=JO4,0,0);
DRAWRECTREL(N1-169,ZZKP4,N1-137,ZZCP4,RGB(Q13,Q14,Q15));
JO5:="FSKY.JO5#DAY";
JC5:="FSKY.JC5#DAY";
JH5:="FSKY.JH5#DAY";
JL5:="FSKY.JL5#DAY";
ZZKP5:=500-(JO5/ZS-1)*4000;
ZZCP5:=500-(JC5/ZS-1)*4000;
ZZZG5:=500-(JH5/ZS-1)*4000;
ZZZD5:=500-(JL5/ZS-1)*4000;
DRAWRECTREL(N1-196,ZZKP5,N1-192,ZZZG5,RGB(355,0,355));
DRAWRECTREL(N1-196,ZZCP5,N1-192,ZZZD5,RGB(0,355,0));
Q16:=IF(JC5>=JO5,355,0);
Q17:=IF(JC5>=JO5,0,355);
Q18:=IF(JC5>=JO5,0,0);
DRAWRECTREL(N1-209,ZZKP5,N1-177,ZZCP5,RGB(Q16,Q17,Q18));
分时均价线:SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK2;
D:CLOSE,LINETHICK2,COLORWHITE;RCC:=DYNAINFO(3);
S2:=SMA(C,2,1);
S6:=SMA(C,3,1);
DK:=8*(S2-S6);
KK:=IF(PERIOD=8,0.95,1);
XG:HHV(H,480),COLORRED,LINETHICK9;
STICKLINE(FILTER(CROSS(C,REF(XG,1)),10),C*0.99,C,8,0),COLORYELLOW;
DRAWTEXT(FILTER(CROSS(C,REF(XG,1)),10),C*0.99,'★■ '),COLORRED;
XY:LLV(H,480),COLOR00FF00,LINETHICK9;
STICKLINE(FILTER(CROSS(C,REF(XY,1)),10),C*0.99,C,8,0),COLOR00FF00;
DRAWTEXT(FILTER(CROSS(C,REF(XY,1)),10),C*0.99,'★■'),COLORYELLOW;
分时线:CLOSE,COLORWHITE;
大单动向:="DDX.大单动向#DAY",NODRAW;
DRAWTEXT_FIX(1,0.537,0.99,0,'DDX:'),COLORWHITE;
DRAWNUMBER_FIX(1,0.577,0.99,0,CONST(大单动向)),COLORRED;
涨跌动因:="DDY.涨跌动因#DAY",NODRAW;
DRAWTEXT_FIX(1,0.637,0.99,0,'DDY:'),COLORWHITE;
DRAWNUMBER_FIX(1,0.677,0.99,0,CONST(涨跌动因)),COLORRED;
大单差分:="DDZ.大单差分#DAY",NODRAW;
DRAWTEXT_FIX(1,0.737,0.99,0,'DDZ:'),COLORWHITE;
DRAWNUMBER_FIX(1,0.777,0.99,0,CONST(大单差分)),COLORRED;
AAA:DYNAINFO(5),COLORWHITE,LINETHICK1,POINTDOT;{最高}
BBB:DYNAINFO(6),COLORWHITE,LINETHICK1,POINTDOT;{最低}
CCC:=AAA-BBB;中G:(AAA+BBB)/2,COLORWHITE,LINETHICK1,POINTDOT;{中}
上顶:BBB+CCC*7/8,COLORWHITE,DOTLINE;
阻力:BBB+CCC*2/3,COLORWHITE,LINETHICK1,POINTDOT;
|