当前位置: 网站首页 > 股票软件公式 > 通达信公式 > 文章 当前位置: 通达信公式 > 文章

通达信源码:分时高抛低吸,轨道线主图,缠论多空

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

分时高抛低吸:

分时高抛低吸的主图指标

VAR1:=DAY!=REF(DAY,1);

VAR2:=BARSLAST(VAR1)+1;

均价:=SUM(AMO,VAR2)/SUM(VOL,VAR2)/100,COLORYELLOW;

现价:=C,COLORWHITE,LINETHICK4;

盘整:=IF(HOUR>9 AND RANGE(HHV(C,60)/LLV(C,60),1,1.02),C,DRAWNULL),COLORRED,LINETHICK3;

V1:=EMA(V,1);

HH:=C>REF(C,1) AND V1<REF(V1,1)  AND C/均价>(1+0.03);

LL:=C<REF(C,1) AND V1>REF(V1,1)  AND C/均价<(1-0.03);

DRAWICON(FILTER(HH,240),C,39);

DRAWICON(FILTER(LL,240),C,38);

SS:=CROSS(SUM(C<=REF(C,1),BARSLAST(HH))=1,0.5);

BB:=CROSS(SUM(C>=REF(C,1),BARSLAST(LL))=1,0.5);

BB2:=CROSS(SUM(BB,0),0.5)  ;

SS2:=CROSS(SUM(SS,0),0.5) ;

CB2:CONST(SUM(IF(BB2,REF(C,1),DRAWNULL),0)),COLORRED,LINETHICK2;

CS2:CONST(SUM(IF(SS2,REF(C,1),DRAWNULL),0)),COLORGREEN,LINETHICK2;

BB3:=IF(CROSS(SUM(CROSS(BB AND C/CB2<0.95,0.5),0),0.5) AND SUM(BB,0)>1,1,0);

SS3:=IF(CROSS(SUM(CROSS(SS AND C/CS2>1.05,0.5),0),0.5) AND SUM(SS,0)>1,1,0);

CB3:CONST(SUM(IF(BB3,REF(C,1),DRAWNULL),0)),COLORRED;

CS3:CONST(SUM(IF(SS3,REF(C,1),DRAWNULL),0)),COLORGREEN;

DRAWTEXT(BB2,REF(C,1)*0.99,'低吸1'),COLORRED;

DRAWTEXT(SS2,REF(C,1)*1.01,'高抛1'),COLORGREEN;

DRAWTEXT(BB3,REF(C,1)*0.99,'低吸2'),COLORRED;

DRAWTEXT(SS3,REF(C,1)*1.01,'高抛2'),COLORGREEN;

DRAWICON(BB2 OR BB3,REF(C,1)*0.99,1);

DRAWICON(SS2 OR SS3,REF(C,1)*1.01,2);

MA30:=EMA(CLOSE,30);

强弱:=EMA(CLOSE,900);

H1:=MAX(DYNAINFO(3),DYNAINFO(5));

L1:=MIN(DYNAINFO(3),DYNAINFO(6));

P1:=H1-L1;

阻力:L1+P1*7/8,COLOR00DD00;

支撑:L1+P1*0.5/8,COLOR00DD00;

DRAWTEXT(LONGCROSS(支撑,现价,2),现价*1.001,'★B'),COLORYELLOW;{吸}

DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★'),COLORRED;{抛};




轨道线主图:

N:=25;

M1:=3;

M2:=3;

M3:=6;

M4:=6;

M5:=9;

M6:=9;

NN:=11;

M:=6;

UPPER4:=(1+M5/100)*MA(CLOSE,N);

LOWER4:=(1-M6/100)*MA(CLOSE,N);

UPPER5:=(1+M1/100)*MA(CLOSE,N);

LOWER5:=(1-M2/100)*MA(CLOSE,N);

ENE2:=(UPPER5+LOWER5)/2;

{STICKLINE(CLOSE>LOWER5,LOWER5,UPPER4,1,-1),COLORRED;

STICKLINE(CLOSE<LOWER5,LOWER5,LOWER4,1,-1),COLORGREEN;}

DRAWBAND(CLOSE,RGB(85,0,0),LOWER5,RGB(0,85,0));

UPPER:=(1+M1/100)*MA(CLOSE,N);

LOWER:(1-M2/100)*MA(CLOSE,N),COLORYELLOW;

UPPER2:=(1+M3/100)*MA(CLOSE,N),COLORWHITE;

LOWER2:=(1-M4/100)*MA(CLOSE,N),COLORWHITE;

UPPER3:=(1+M5/100)*MA(CLOSE,N),COLORWHITE;

LOWER3:=(1-M6/100)*MA(CLOSE,N),COLORWHITE;

ENE:=(UPPER+LOWER)/2;

MA5:MA(C,5),COLORWHITE;

MA20:MA(C,20),COLORWHITE,LINETHICK4;

角度5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416,NODRAW;

IF(角度5>0,MA5,DRAWNULL),LINETHICK2,COLORRED;

角度20:=ATAN((MA20/REF(MA20,1)-1)*100)*180/3.1416,NODRAW;

IF(角度20>0,MA20,DRAWNULL),LINETHICK4,COLORRED;

X1A:=30;

X1B:HHV(C,X1A),COLORMAGENTA,LINETHICK3;

X1C:=IF(ISLASTBAR,BARSLAST(C=CONST(X1B))+1,1/0);

X1D:=IF(X1C=1,' 1',IF(X1C=2,' 2',IF(X1C=3,' 3',IF(X1C=4,' 4',IF(X1C=5,' 5',

IF(X1C=6,' 6',IF(X1C=7,' 7',IF(X1C=8,' 8',IF(X1C=9,' 9',IF(X1C=10,' 10',

IF(X1C=11,' 11',IF(X1C=12,' 12',IF(X1C=13,' 13',IF(X1C=14,' 14',IF(X1C=15,' 15',

IF(X1C=16,' 16',IF(X1C=17,' 17',IF(X1C=18,' 18',IF(X1C=19,' 19',IF(X1C=20,' 20',

IF(X1C=21,' 21',IF(X1C=22,' 22',IF(X1C=23,' 23',IF(X1C=24,' 24',IF(X1C=25,' 25',

IF(X1C=26,' 26',IF(X1C=27,' 27',IF(X1C=28,' 28',IF(X1C=29,' 29',IF(X1C=30,' 30',' 0'))))))))))))))))))))))))))))));

X1E:DRAWTEXT(ISLASTBAR,X1B,X1D),COLORFF5500;

X2A:=30;

X2B:LLV(C,X2A),COLORMAGENTA,LINETHICK3;

X2C:=IF(ISLASTBAR,BARSLAST(C=CONST(X2B))+1,1/0);

X2D:=IF(X2C=1,' 1',IF(X2C=2,' 2',IF(X2C=3,' 3',IF(X2C=4,' 4',IF(X2C=5,' 5',

IF(X2C=6,' 6',IF(X2C=7,' 7',IF(X2C=8,' 8',IF(X2C=9,' 9',IF(X2C=10,' 10',

IF(X2C=11,' 11',IF(X2C=12,' 12',IF(X2C=13,' 13',IF(X2C=14,' 14',IF(X2C=15,' 15',

IF(X2C=16,' 16',IF(X2C=17,' 17',IF(X2C=18,' 18',IF(X2C=19,' 19',IF(X2C=20,' 20',

IF(X2C=21,' 21',IF(X2C=22,' 22',IF(X2C=23,' 23',IF(X2C=24,' 24',IF(X2C=25,' 25',

IF(X2C=26,' 26',IF(X2C=27,' 27',IF(X2C=28,' 28',IF(X2C=29,' 29',IF(X2C=30,' 30',' 0'))))))))))))))))))))))))))))));

X2E:DRAWTEXT(ISLASTBAR,X2B,X2D),COLORFF00FF;

CV:=CLOSE;

BBIBOLL:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;

UPR:BBIBOLL+M*STD(BBIBOLL,NN),COLORWHITE,DOTLINE,LINETHICK1;

DWN:BBIBOLL-M*STD(BBIBOLL,NN),COLORWHITE,DOTLINE,LINETHICK1;

DRAWKLINE(HIGH,OPEN,LOW,CLOSE);

STICKLINE(MA5<BBIBOLL AND C<MA5,H,L,0,0),COLORGRAY;

STICKLINE(MA5<BBIBOLL AND C<MA5,O,C,3,1),COLORGRAY;

DRAWTEXT_FIX(C>O,0,0,0,'顶尖财经'),COLORRED;




缠论多空:

很合适震荡行情和抄顶底,在重要点位下单,我最近用这个做国内期货准确还不错,供大家参考( 顶尖财经 股票学院: http://www.58188.com )
 
{缠论多空}
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:=L1+P1*7/8,COLORGREEN;
支撑:=L1+P1*0.5/8,COLORRED;
中线:=(支撑+阻力)/2,COLORWHITE,POINTDOT;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:EMA(V11,3),LINETHICK2,COLORLIMAGENTA;
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
准备买入:STICKLINE(趋势线<11,趋势线,11,5,0),COLORYELLOW;
AA:=(趋势线<11) AND FILTER((趋势线<=11),15) AND C<中线;
BB0:=REF(趋势线,1)<11 AND CROSS(趋势线,11) AND C<中线;
BB1:=REF(趋势线,1)<11 AND REF(趋势线,1)>6 AND CROSS(趋势线,11);
BB2:=REF(趋势线,1)<6 AND REF(趋势线,1)>3 AND CROSS(趋势线,6);
BB3:=REF(趋势线,1)<3 AND REF(趋势线,1)>1 AND CROSS(趋势线,3);
BB4:=REF(趋势线,1)<1 AND REF(趋势线,1)>0 AND CROSS(趋势线,1);
BB5:=REF(趋势线,1)<0 AND CROSS(趋势线,0);
BB:=BB1=1 OR BB2=1 OR BB3=1 OR BB4=1 OR BB5=1;
下单买入:STICKLINE(BB=1 AND C<中线,11,50,3,0),COLORRED;
DRAWICON(BB=1 AND C<中线,55,1);
DRAWTEXT(BB0,60,'★买多'),COLORRED;
DRAWTEXT(AA,16,'等待底分型'),COLORYELLOW;
准备卖出:STICKLINE(趋势线>89,趋势线,89,5,0),COLORWHITE;
CC:=(趋势线>89) AND FILTER((趋势线>89),15) AND C>中线;
DD0:=REF(趋势线,1)>89 AND CROSS(89,趋势线) AND C>中线;
DD1:=REF(趋势线,1)>89 AND REF(趋势线,1)<94 AND CROSS(89,趋势线);
DD2:=REF(趋势线,1)>94 AND REF(趋势线,1)<97 AND CROSS(94,趋势线);
DD3:=REF(趋势线,1)>97 AND REF(趋势线,1)>99 AND CROSS(97,趋势线);
DD4:=REF(趋势线,1)>99 AND REF(趋势线,1)<100 AND CROSS(99,趋势线);
DD5:=REF(趋势线,1)>100 AND CROSS(100,趋势线);
DD:=DD1=1 OR DD2=1 OR DD3=1 OR DD4=1 OR DD5=1;
下单卖出:STICKLINE(DD=1 AND C>中线,89,50,3,0),COLORGREEN;
DRAWICON(DD=1 AND C>中线,45,2);
DRAWTEXT(DD0,40,'★沽空'),COLORGREEN;
DRAWTEXT (CC,84,'等待顶分型'),COLORWHITE;
顶:89,COLORGREEN;
底:11,COLORRED;
中:50,POINTDOT,COLORWHITE;
DRAWTEXT(ISLASTBAR,顶,'空'),COLORGREEN;
DRAWTEXT(ISLASTBAR,底,'多'),COLORRED;
DRAWTEXT(ISLASTBAR,中,'中'),COLORWHITE;

上一篇:通达信公式下载:一线天副图,追板,抢银行

下一篇:通达信源码:精品买卖,进退自如,超级量能柱