股票的公式有哪些?通达信波浪顶箱体主图指标公式
2016-6-12 9:27:58 股票入门 http://rumen.southmoney.com
股票的公式有哪些?通达信波浪顶箱体主图指标公式 附:通达信短线超卖指标公式 南方财富网小编为您提供
【通达信波浪顶箱体主图指标公式】
TY:=H;
WRAP: break-word; WHITE-SPACE: normal; TEXT-TRANSFORM: none; WORD-SPACING: 0px; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; PADDING-TOP: 0px; FONT: 14px/24px 宋体, arial, sans-serif, 'DejaVu Sans', 'Lucida Grande', Tahoma, 'Hiragino Sans GB', STHeiti, SimSun, sans-serif; PADDING-LEFT: 0px; MARGIN: 0px; WIDOWS: 1; LETTER-SPACING: normal; PADDING-RIGHT: 0px; TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px">HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);
LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10);
A:=REF(H,BARSLAST(HD));
B:=REF(H,BARSLAST(LD));
T1:=BARSLAST(HD);
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
波浪顶:IF(T1,A,A),COLORGREEN,POINTDOT,LINETHICK1;
DRAWNUMBER(波浪顶!=REF(波浪顶,1),H,波浪顶),COLORF00FF0;
STICKLINE(T1,A,A,9,0){,POINTDOT},COLORF00FF0,LINETHICK1;
波浪底:=IF(T2,B,B),COLORGREEN{,POINTDOT},LINETHICK1;
STICKLINE(T2,B,B,9,0){,POINTDOT},COLORCYAN,LINETHICK1;
QA12:=REF(CLOSE,6)=LLV(CLOSE,2*6+1);
QB12:=BACKSET(QA12,6+1);
QC12:=FILTER(QB12,6) AND CLOSE=LLV(CLOSE,6+1);
QD12:=BARSLAST(QC12);
QE12:=IF(QC12,CURRBARSCOUNT,0);
QF12:=IF(QD12,REF(QE12,QD12),QE12);
QG12:=CONST(QF12);
支撑1:=DRAWLINE(CURRBARSCOUNT=QG12,CLOSE,ISLASTBAR,REF(CLOSE,QG12-1),1),COLOR00FF00,LINETHICK1;
DRAWNUMBER(支撑1!=REF(支撑1,1),C,支撑1),COLOR00FF00;
DRAWNUMBER(ISLASTBAR,支撑1,支撑1),COLOR00FF00;
QA14:=REF(CLOSE,3)=LLV(CLOSE,2*3+1);
QB14:=BACKSET(QA14,3+1);
QC14:=FILTER(QB14,3) AND CLOSE=LLV(CLOSE,3+1);
QD14:=BARSLAST(QC14);
QE14:=IF(QC14,CURRBARSCOUNT,0);
QF14:=IF(QD14,REF(QE14,QD14),QE14);
QG14:=CONST(QF14);
支撑2:=DRAWLINE(CURRBARSCOUNT=QG14,CLOSE,ISLASTBAR,REF(CLOSE,QG14-1),1),COLOR00FF00,LINETHICK1;
{DRAWNUMBER(支撑2!=REF(支撑2,1),L,支撑2),COLOR00FF00;};
STICKLINE(C>支撑1,支撑1,波浪顶,15,1),COLOR005599,LINETHICK2;{箱体画框}
STICKLINE(C>支撑2,支撑2,波浪顶,5,1),COLOR005599,LINETHICK2;{箱体画框}
STICKLINE(C>支撑1,支撑1,(波浪顶+支撑1)/2,15,1),COLOR005599,LINETHICK2;{箱体画框}
QA11:=REF(CLOSE,6)=HHV(CLOSE,2*6+1);
QB11:=BACKSET(QA11,6+1);
QC11:=FILTER(QB11,6) AND CLOSE=HHV(CLOSE,6+1);
QD11:=BARSLAST(QC11);
QE11:=IF(QC11,CURRBARSCOUNT,0);
QF11:=IF(QD11,REF(QE11,QD11),QE11);
QG11:=CONST(QF11);
颈线2:DRAWLINE(CURRBARSCOUNT=QG11,CLOSE,ISLASTBAR,REF(C,QG11-1),1),COLORFFDD00,LINETHICK1;
STICKLINE(C>支撑1,支撑1,颈线2,5,1),COLORFFAA33;{箱体画框}
STICKLINE(C>支撑1,支撑1,(颈线2+支撑1)/2,5,1),COLORFFAA33;{箱体画框}
DRAWKLINE(H,O,L,C);
DRAWNUMBER(颈线2!=REF(颈线2,1),C,颈线2),COLOR00FF00;
DRAWNUMBER(ISLASTBAR,波浪顶,波浪顶),COLOR005599;
DRAWNUMBER(ISLASTBAR,(波浪顶+支撑1)/2,(波浪顶+支撑1)/2),COLOR005599;
DRAWNUMBER(ISLASTBAR,颈线2,颈线2),COLORFFAA33;
DRAWNUMBER(ISLASTBAR,(颈线2+支撑1)/2,(颈线2+支撑1)/2),COLORFFAA33;
T1B:=CONST(LLVBARS(LOW,10));
T1HIGH:=CONST(REF(HIGH,T1B));
CCC:=CONST(CURRBARSCOUNT);
T2B:=CONST(BARSLAST(CURRBARSCOUNT>CCC+T1B AND H>T1HIGH));
T2HIGH:=CONST(REF(HIGH,T2B));
T3B:=CONST(BARSLAST(CURRBARSCOUNT>CCC+T2B AND HIGH>T2HIGH));
T3HIGH:=CONST(REF(HIGH,T3B));
抢钱10:DRAWLINE(CURRBARSCOUNT=T3B+1, T3HIGH, ISLASTBAR, T3HIGH, 1),COLORYELLOW,LINETHICK1;{,LINETHICK2,COLOR0000FF;}
DRAWTEXT(ISLASTBAR, T3HIGH, '过线')LINETHICK1,COLORYELLOW;
DRAWNUMBER(抢钱10!=REF(抢钱10,1),H,抢钱10),COLORYELLOW;
STICKLINE(C>支撑1,(抢钱10+支撑1)/2,(抢钱10+支撑1)/2,5,1),COLORYELLOW;{箱体画框};
附:【通达信短线超卖指标公式】
A1:=REF(C,1);
A2:=SMA(MAX(C-A1,0),5,1)/SMA(ABS(C-A1),5,1)*1000;
A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
A4:=A2-LLV(A2,10);
A5:=(MA(A4,2)*3+A4*13)/16;
A6:=IF(A5>13,MA(A5,2),A5)/6;
RSI1:=SMA(MAX(C-A1,0),6,1)/SMA(ABS(C-A1),6,1)*100;
RSI2:=SMA(MAX(C-A1,0),12,1)/SMA(ABS(C-A1),12,1)*100;
RSI3:=SMA(MAX(C-A1,0),24,1)/SMA(ABS(C-A1),24,1)*100;
压力:=HHV(MA(RSI2,3),12);
支撑:=LLV(MA(RSI2,3),12);
中间:(HHV(MA(RSI2,3),12)+LLV(MA(RSI2,3),12))/2,COLORRED,LINETHICK2;
短线:IF(CROSS(A6,1) AND (A6<30)AND RSI2<35 AND RSI2>=支撑 AND RSI2<中间,30,20),COLORMAGENTA,LINETHICK2;
STICKLINE(RSI2<支撑,中间,RSI2,2,0)COLORGREEN;
STICKLINE(RSI2>=支撑 AND RSI2<中间,中间,RSI2,2,0)COLORLIBLUE;
STICKLINE(RSI2>=中间 AND RSI2<压力,中间,RSI2,2,0)COLORLIRED;
STICKLINE(RSI2>=压力,中间,RSI2,2,0)COLORRED;
B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS ("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
DRAWTEXT(B3,RSI2,'底背离');
B1:=RSI1>=RSI2 AND RSI2>=RSI3;
S1:=RSI1<RSI2 AND RSI2<RSI3;
BS1:=NOT(RSI1>=RSI2 AND RSI2>=RSI3)AND NOT(RSI1<RSI2 AND RSI2<RSI3);
STICKLINE(B1,80,82,2,1)COLORRED;
STICKLINE(S1,80,82,2,1)COLORGREEN;
STICKLINE(BS1,80,82,2,1)COLORYELLOW;
更多股票公式相关资讯请关注南方财富网
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。