通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
获利盘指标公式源码
N:=30;
获利盘:=WINNER(C)*100;
近邻筹码:=WINNER(C*POW(1.1,0.75))*100-WINNER(C*POW(1.1,-0.75))*100;
获利纵横:获利盘-近邻筹码,COLORFFFFFF,LINETHICK1;
AA:=IF(获利纵横>=N,获利纵横,N);
QSSJ:=BARSLAST(COUNT(获利纵横>=N,2)=2);
备钱阻击:IF(QSSJ<=3 AND COUNT(获利纵横<REF(获利纵横,1),2)=2,-10,N),COLOR00FF00;
STICKLINE(AA>N AND AA>REF(AA,1),N,AA,8,0),COLOR0000FF;
STICKLINE(AA>N AND AA<REF(AA,1),N,AA,8,0),COLORFFFF00;
主力仓位:ema(WINNER(c*0.8)*100,3),linethick0;
浮动获利:ema((WINNER(c*0.9)-winner(c*0.8))*100,3),linethick0;
浮动套牢:ema((WINNER(c*1.1)-winner(c))*100,3),linethick0;
FILLRGN(浮动套牢,0,rgb(50,100,155),rgb(50,100,155));
FILLRGN( 浮动获利,0,rgb(250,100,155),rgb(250,100,155));
FILLRGN( 主力仓位,0,rgb(255,0,0),rgb(255,0,0));
活筹1:=(WINNER(c*1.075)-winner(c*0.925))*100;
活筹:ema(活筹1,3),COLORBLUE;
开:WINNER(OPEN)*100,LINETHICK0;
收:WINNER(CLOSE)*100,LINETHICK0;
高:WINNER(HIGH)*100,LINETHICK0;
低:WINNER(LOW)*100,LINETHICK0;{}
博弈K线长:100*(winner(c)-winner(o)),LINETHICK0;
换手率:vol/capital*100,linethick0;
STICKLINE(CLOSE>REF(CLOSE,1), 高, 低,0.5,1), COLORRED;
STICKLINE(CLOSE<REF(CLOSE,1), 高, 低,0.5,1), COLORGREEN;
STICKLINE(CLOSE>OPEN, 高, 低, 0.5, 1), COLORRED;
STICKLINE(CLOSE<OPEN, 高, 低, 0.5, 1), COLORGREEN;
STICKLINE(CLOSE>OPEN, 收, 开, 6, 0), COLORRED;
STICKLINE(CLOSE<OPEN, 收, 开, 6, 0), COLORGREEN;
STICKLINE(CLOSE=OPEN AND CLOSE>=REF(CLOSE, 1), 收, 收, 6, 0), COLORRED;
STICKLINE(CLOSE=OPEN AND CLOSE<=REF(CLOSE, 1), 收, 收, 6, 0), COLORGREEN;
STICKLINE(CLOSE=OPEN AND CLOSE>=REF(CLOSE, 1), 高, 低, 0.5, 1), COLORRED;
STICKLINE(CLOSE=OPEN AND CLOSE<=REF(CLOSE, 1), 高, 低, 0.5, 1), COLORGREEN;
0,POINTDOT;100,POINTDOT;20,POINTDOT;40,POINTDOT;60,POINTDOT;80,POINTDOT;
STICKLINE(博弈K线长>18 and 换手率<3, 高, 低,0.5,1), COLORMAGENTA;
STICKLINE(博弈K线长>18 and 换手率<4, 高, 低, 0.5, 1), COLORMAGENTA;
STICKLINE(博弈K线长>18 and 换手率<4, 高, 低, 0.5, 1), COLORMAGENTA;
STICKLINE(博弈K线长>18 and 换手率<4, 收, 开, 6, 0), COLORMAGENTA;
STICKLINE(博弈K线长>18 and 换手率<4, 收, 开, 6, 0), COLORMAGENTA;
STICKLINE(博弈K线长>39 and 换手率<7, 高, 低,0.5,1), COLORBLUE;
STICKLINE(博弈K线长>39 and 换手率<7, 高, 低, 0.5, 1), COLORBLUE;
STICKLINE(博弈K线长>39 and 换手率<7, 高, 低, 0.5, 1), COLORBLUE;
STICKLINE(博弈K线长>39 and 换手率<7, 收, 开, 6, 0), COLORBLUE;
STICKLINE(博弈K线长>39 and 换手率<7, 收, 开, 6, 0), COLORBLUE;
获利盘套牢盘指标公式源码
LONG:=26;SHORT:=12;M:=9;
OBV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0)/25000,1);
DIFF : EMA(OBV,12) – EMA(OBV,26);
BBDIFF:=DIFF-REF(DIFF,1);
DEA : EMA(DIFF,9);
BBDEA:=DEA-REF(DEA,1);
MACD : 2*(DIFF-DEA), COLORSTICK;
柱: 2*(DIFF-DEA);
BB柱:=柱-REF(柱,1);
IF(BBDIFF>0,DIFF,DRAWNULL),COLORCC00FF,LINETHICK2;
IF(BBDIFF<=0,DIFF,DRAWNULL),COLORFF9999,LINETHICK2;
IF(BBDEA>0,DEA,DRAWNULL),COLOR0066FF,LINETHICK2;
IF(BBDEA<=0,DEA,DRAWNULL),COLOR00FF33,LINETHICK2;
DRAWTEXT(C=C AND CURRBARSCOUNT=129,0,''),COLORD8D8BF;
IF(BB柱>0,柱,DRAWNULL),COLORCC00FF,LINETHICK1;
IF(BB柱<=0,柱,DRAWNULL),COLORFF9999,LINETHICK1;
DIFF速率:BBDIFF*100,,NODRAW;
DEA速率:BBDEA*100,,NODRAW;
柱速率:BB柱*100,,NODRAW;
VAR22:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
获利盘: WINNER(CLOSE)*100;
VAR33:=SMA(VAR22,3,1);
VAR44:=SMA(VAR33,9,1);
VAR55:=3*VAR33-2*VAR44;
VAR66:=VOL;
量比: VOL/MA(VOL,5);
涨跌: (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
角度: (CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
换手: VOL/CAPITAL*100;
VAR77:=SUM(换手,30);
VAR88:=LLV(INDEXL,5);
VAR99:=HHV(INDEXH,5);
VARAA:=EMA((INDEXC-VAR88)/(VAR99-VAR88)*100,4);
VARBB:=MA(EMA(0.667*REF(VARAA,1)+0.333*VARAA,2),9);
VARCC:=MA(VARBB,30);
VARDD:=EMA(获利盘,4);
本盘亿股: CAPITAL/1000000,;
V5: MA(VOL,5)*2;
VARE:=MA(V5,3);
V34: MA(VOL,34)*2;
VARF:=(涨跌>VARDD AND 角度<-30 AND 涨跌>3);
CROSS(VARBB,VARCC) AND VARCC<29;
CROSS(VARCC,VARBB) AND VARCC>58;
STICKLINE(VOL AND VAR33>VAR44,0,VOL,3,1),COLORRED;
STICKLINE(VOL AND VAR33<=VAR44,0,VOL,3,1),COLORCYAN;
DRAWTEXT(CROSS(VARBB,VARCC) AND 角度<-18 AND VARCC<29,VOL*1.2,'买 '),COLORYELLOW;
W:DRAWTEXT(CROSS(VARCC,VARBB) AND VARCC>58,VOL*1.2,'卖'),COLORWHITE;
DRAWTEXT(CROSS(VARE,V5) AND 角度>22,V5,'<—-');
VAR2:=CLOSE-REF(CLOSE,1);
VAR3:=IF(CLOSE-REF(CLOSE,1)>=0,VAR2,0);
VAR4:=REF(CLOSE,1)-CLOSE;
VAR5:=IF(CLOSE-REF(CLOSE,1)<=0,VAR4,0);
VAR6:=SUM(VAR3,16)/SUM(VAR5,16);
VAR7:=100-100/(1+VAR6);
VAR8:=EMA(VAR7,16);
VAR9:=EMA(VAR8,8);
VARA:=EMA(VAR8,45);
MO:=(VAR8-VARA);
ML:=(VAR9-VARA);
VAR1A:=EMA(CLOSE,32);
VAR2A:=MA(OPEN,32);
趋势:=(VAR1A-VAR2A);
STICKLINE(MO>ML AND 趋势<0 AND MO>REF(MO,3) AND 趋势>REF(趋势,3),VOL,0,3,0) COLORYELLOW;
评论(0)