以下是通达信强牛操盘主图指标公式源码
通达信强牛操盘主图指标公式源码:
ma3:ma(close,3),colorffffff,linethick1;
ma8:ma(close,8),color00ffff,linethick1;
ma49:ma(close,49),color00ff00,linethick2;
angel:ema(c,2),color000000;
devil:ema(slope(c,21)*20+c,42),pointdot,color000000;
buy:=cross(angel,devil);
sel:=cross(devil,angel);
stickline(cross(angel,devil)orcross(devil,angel),open,close,8,0),colorwhite;
drawtext(buy,low*0.98,'买'),colorf00ff0,linethick2;
drawtext(sel,high*1.02,'卖'),colorwhite,linethick2;
N:=20;M1:=4;M2:=2;Q1:=30;
VAR2:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
VAR3:=SMA(VAR2,M1,1);
VAR4:=SMA(VAR3,M2,1);
VAR5:=VOL/CAPITAL*100;
VAR6:=REF(VAR5,1);
建仓:VAR4 14.5ANDVAR3
大户减仓:VAR6 Q1ANDVAR6
机构减仓:VAR4 82ANDVAR3
股价临界:VAR4 85ANDVAR3
A:=REF(C,1);
RSI:=SMA(MAX(C-A,0),6,1)/SMA(ABS(C-A),6,1)*100;
A1:=C-MA(C,5)/MA(C,5)*100
A2:=C-MA(C,13)/MA(C,13)*100
A3:=C-MA(C,34)/MA(C,34)*100
A4:=RSI
A5:=CCI -120;
组合底部:(A1ANDA2ANDA3ANDA4ANDA5)COLORRED;
M:=1;
天线:(MA(CLOSE,M)*1.15),COLOR0000FF,LINETHICK2;
地线:(MA(CLOSE,M)*0.85),COLOR00FF80,LINETHICK2;
B1:=MA(CLOSE,1);
B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1);
SMA2:MA(B2,4),NODRAW;
DRAWBAND(B2,RGB(250,0,0),SMA2,RGB(0,180,0));
A:='LTFUNC4@FORLT2';
S1:='LTFUNC4@LT_S1';
HS:='LTFUNC4@LT_HS';
LS:='LTFUNC4@LT_LS';
P1:='LTFUNC4@LT_P1';
UPP:='LTFUNC4@LT_UPP';
UDD:='LTFUNC4@LT_UDD';
{HS;LS;HHS;LLS;US;DS;S1;P1;P0;UPP;UDD};
TR0:=IF(P1=1,'明日收盘价 '+CON2STR(UDD,2)+',出现S点N','若明日收盘价 '+CON2STR(UPP,2)+',出现B点N');
TR1:=IF(S1=1,'明日收盘价 '+CON2STR(LS,2)+',卖出机会','若明日收盘价 '+CON2STR(HS,2)+'短线买入机会');
TR2:=IF(P1=1,IF(CROSS(P1,0),'B点','持股'),IF(CROSS(1,P1),'S点','持币'));
TR3:=IF(S1=0,'向下,','向上,');
STICKLINE(CLOSE SMA2ORCLOSE=SMA2,LOW,HIGH,0.1,0),COLOR0022FF;
STICKLINE(CLOSE SMA2ORCLOSE=SMA2,OPEN,CLOSE,3,0),COLOR0088FF;
STICKLINE(CLOSE SMA2ORCLOSE=SMA2,LOW,HIGH,0.1,0),COLOR009900;
STICKLINE(CLOSE SMA2ORCLOSE=SMA2,OPEN,CLOSE,3,0),COLOR009900;
STICKLINE(SMA2 CLOSE,CLOSE,OPEN,3,0),COLOR009900;
STICKLINE(SMA2 CLOSE,CLOSE,OPEN,2,0),COLOR00BB00;
STICKLINE(SMA2 CLOSE,CLOSE,OPEN,1,0),COLOR00DD00;
STICKLINE(SMA2 CLOSE,CLOSE,OPEN,0,0),COLOR00FF00;
STICKLINE(CLOSE =SMA2,CLOSE,OPEN,3,0),COLOR0022FF;
STICKLINE(CLOSE =SMA2,CLOSE,OPEN,2,0),COLOR0066FF;
STICKLINE(CLOSE =SMA2,CLOSE,OPEN,1,0),COLOR00AAFF;
STICKLINE(CLOSE =SMA2,CLOSE,OPEN,0,0),COLOR00EEFF;
{操盘手BS}
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(C,SMA2);
SEL:=CROSS(SMA2,C);
DRAWTEXT(BU,LOW*0.98,'B'),COLORWHITE,LINETHICK4;
DRAWTEXT(SEL,HIGH*1.02,'S'),COLORFFFF00,LINETHICK4;
PT:=REF(HIGH,1)-REF(LOW,1);
{强势回调}
MA13:=MA(C,13);
K1:=BACKSET(MA13 REF(MA13,1),2);
MA34:=EMA(C,34);
MA55:=EMA(C,55);
RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
K:=MA(RSV,2.5);
D:=MA(K,2.5);
J:=3*K-2*D;
JJ:=J
STICKLINE(REF(J,1) 20ANDEMA(C,13) REF(EMA(C,13),1)ANDNOT(JJ),(C+O)/2,O,5,0),COLORFF00FF;
DRAWTEXT(REF(J,1) 20ANDEMA(C,13) REF(EMA(C,13),1)ANDNOT(JJ),L-0.15,'←强势回调'),COLORFF00FF;
{以下定义坚决买进}
VAR77:=EMA(AMOUNT/VOL/100,3);
VAR88:=EMA(VAR77,88);
VAR99:=EMA(VAR77,88)*0.85;
VARAH:=VAR99*0.87;
VARBH:=LOW VARAHANDCLOSE REF(CLOSE,1)*1.02;
DRAWTEXT(FILTER(VARBH,6),L-0.08,'←坚决买进'),LINETHICK1,COLORFF00FF;
{以下设置强势狙击}
BB05:=ATAN(((MA(C,5))/REF((MA(C,5)),1)-1)*100)*180/3.1416;
BB10:=ATAN(((MA(C,10))/REF((MA(C,10)),1)-1)*100)*180/3.1416;
BB30:=ATAN(((MA(C,30))/REF((MA(C,30)),1)-1)*100)*180/3.1416;
强势狙击:=FILTER(BB30 30ANDBB10 45ANDCROSS(BB05,60),10);
DRAWTEXT(强势狙击,LOW*0.98,'←强势狙击'),LINETHICK1,COLORWHITE;
{以下定义进场}
VAR3E:=100-(100-3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1),15,1));
VAR4E:=100-(100-3*SMA((OPEN-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1),15,1));
VAR5E:=VAR3E REF(VAR4E,1)ANDVOL REF(VOL,1)ANDCLOSE REF(CLOSE,1);
DRAWTEXT(VAR5EANDCOUNT(VAR5E,30)=1,LOW,'←资金进场'),LINETHICK1,COLORWHITE;
通达信强牛操盘主图指标公式截图