通达信涨跌尺主图指标公式

2013-05-22 09:07:00来源:本站整理浏览:1458

涨幅:=3;
TP转换PW:=1;
移动线:IF(LLVBARS(V,5), REF (C,LLVBARS(V,5)),C),COLORGREEN,DOTLINE;
TP线:PEAK(移动线,0.2,1),COLORLIRED,NODRAW;
STICKLINE(TP线>0 ,TP线,TP线,4,-1),COLORLIRED;
PW线:TROUGH(移动线,0.2,1),COLORCYAN,NODRAW;
STICKLINE(PW线>0 ,PW线,PW线,4,-1),COLORCYAN;
PW:=CONST(PW线);
TP:=CONST(TP线);
ZH:=IF(TP转换PW=1,PW,TP);
最低:=TROUGHBARS(移动线,0.2,1);
幅度:=1+(涨幅/100);
涨幅尺%:DRAWLINE(最低=0,ZH*幅度,ISLASTBAR,ZH*幅度,1),COLOR00BBFF;
DRAWTEXT(ISLASTBAR,涨幅尺%,'涨幅尺'),COLOR00BBFF;
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
量能饱和:=IF(SAT>1,1,SAT)*100,NODRAW;
获利筹码:=WINNER(C)*100,NODRAW;
LC:=REF(CLOSE,1);
RSI值:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;
活跃:=(RSI值-WR10);
活跃度比:=IF(活跃>=0,(活跃+100)/2,100-ABS((活跃-100)/2)),NODRAW;
DRAWRECTREL(80,10,240,60,RGB(0,75,200));
DRAWRECTREL(80,10,160,60,RGB(0,100,0));
DRAWRECTREL(80,10,80+CONST(活跃度比*160/100),60,RGB(200,0,50));
DRAWTEXT_FIX(1,0.00,0.01,0,STRCAT(STRCAT('活跃度比: ',CON2STR(活跃度比,2)),'% ')),COLORYELLOW;
DRAWRECTREL(80,70,240,120,RGB(0,75,200));
DRAWRECTREL(80,70,160,120,RGB(0,100,0));
DRAWRECTREL(80,70,80+CONST(获利筹码*160/100),120,RGB(200,0,50));
DRAWTEXT_FIX(1,0.00,0.07,0,STRCAT(STRCAT('获利筹码: ',CON2STR(获利筹码,2)),'% ')),COLORYELLOW;
DRAWRECTREL(80,130,240,180,RGB(0,75,200));
DRAWRECTREL(80,130,160,180,RGB(0,100,0));
DRAWRECTREL(80,130,80+CONST(量能饱和*160/100),180,RGB(200,0,50));
DRAWTEXT_FIX(1,0.00,0.13,0,STRCAT(STRCAT('量能饱和: ',CON2STR(量能饱和,2)),'% ')),COLORYELLOW;
N:=27;
{预测当天最低价公式}
A1:=REF(O,1);
A2:=ABS((REF(C,1)-A1)/A1);
A3:=ABS((REF(H,1)-A1)/A1);
A4:=ABS((REF(L,1)-A1)/A1);
B1:=ABS((A2+A3+A4)/3);
B2:=O*B1;
预测低一:=O-B2;
预测高一:=O+B2;
开盘价1:=OPEN;
开盘价2:=REF(OPEN,1);
最高价1:=HIGH;
最高价2:=REF(HIGH,1);
最低价1:=LOW;
最低价2:=REF(LOW,1);
收盘价1:=CLOSE;
收盘价2:=REF(CLOSE,1);
AA:=最高价2;
BB:=最低价2;
CC:=开盘价2;
DD:=收盘价2;
EE:=(AA+BB+CC+2*DD)/5;
AAA:=EE+(AA-BB);
BBB:=2*EE-BB;
CCC:=2*EE-AA;
DDD:=EE-(AA-BB);
上升突破价:=AAA;
上升阻力价:=BBB;
下跌支撑价:=CCC;
下跌反转价:=DDD;
EEE:=(EE+上升突破价+上升阻力价+下跌支撑价+下跌反转价)/5;
心理价:=EEE;
FFF:=(EEE+开盘价1)/2;
GGG:=(预测低一+FFF)/2;
预测低二:=GGG;
预测高二:=MA(REF(HIGH,1)/REF(CLOSE,2),N)*REF(CLOSE,1);
买回价:=预测低二*1.015;
卖出价:=买回价*(1+0.03);
DRAWTEXT_FIX(1,0.085,0.21,1,'买回价格:'),COLOR8080FF;
DRAWNUMBER_FIX(1,0.15,0.21,1,CONST(买回价)),COLOR8080FF;
DRAWTEXT_FIX(1,0.17.5,0.21,1,'元'),COLOR8080FF,LINETHICK1;
DRAWTEXT_FIX(1,0.085,0.25,1,'预测低一:'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.15,0.25,1,CONST(预测低一)),COLORYELLOW;
DRAWTEXT_FIX(1,0.17,0.25,1,'元'),COLORYELLOW,LINETHICK1;
DRAWTEXT_FIX(1,0.085,0.29,1,'预测低二:'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.15,0.29,1,CONST(预测低二)),COLORYELLOW;
DRAWTEXT_FIX(1,0.17,0.29,1,'元'),COLORYELLOW,LINETHICK1;
DRAWTEXT_FIX(1,0.085,0.33,1,'卖出价格:'),COLOR8080FF;
DRAWNUMBER_FIX(1,0.15,0.33,1,CONST(卖出价)),COLOR8080FF;
DRAWTEXT_FIX(1,0.17,0.33,1,'元'),COLOR8080FF,LINETHICK1;
DRAWTEXT_FIX(1,0.085,0.37,1,'预测高一:'),COLORFFFFFF;
DRAWNUMBER_FIX(1,0.15,0.37,1,CONST(预测高一)),COLORFFFFFF;
DRAWTEXT_FIX(1,0.17,0.37,1,'元'),COLORFFFFFF,LINETHICK1;
DRAWTEXT_FIX(1,0.085,0.41,1,'预测高二:'),COLORFFFFFF;
DRAWNUMBER_FIX(1,0.15,0.41,1,CONST(预测高二)),COLORFFFFFF;
DRAWTEXT_FIX(1,0.17,0.41,1,'元'),COLORFFFFFF,LINETHICK1;
红色雷达:IF(CLOSE>SAR(4,2,20),SAR(4,2,20),DRAWNULL),COLORRED,CIRCLEDOT;
绿色雷达:IF(CLOSE<=SAR(4,2,20),SAR(4,2,20),DRAWNULL),COLORGREEN,CIRCLEDOT;


 


 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式