收集:中国股票市场经济分析网

原码公式,已经过测试,粘贴后即可使用。
1、主图公式:倚天线
{操作线}
操作线:ema(c,7),color00ff00;
E21:EMA(C,21),Color008000;
E38:EMA(C,38),ColorFFFFFF;
E55:EMA(C,55),ColorFFFF00;
E89:EMA(C,89),Color0000FF;
E157:EMA(C,157),ColorFF00FF;
MA241:MA(C,241),ColorFF0000;
A:=(REF(操作线,1));
STICKLINE((操作线>A),A,操作线,6,0),Color00FF00;
STICKLINE((操作线<=A),A,操作线,6,0),Color0000FF;
VARA:=IF((CLOSE>150),91.3,0.91299998);
箱下沿:INTPART((CLOSE)/(VARA)),ColorF0F000,POINTDOT;
箱上沿:箱下沿+VARA,Color00FFFF,POINTDOT;
VAR31:=(HHVBARS((ZIG(1,19)>REF(ZIG(1,19),1)) AND (REF(ZIG(1,19),1)<REF(ZIG(1,19),3)),0));
LC:=(REF(CLOSE,1));
动力:=(((SUM(IF((CLOSE>LC),VOL,0),26))/(SUM(IF((CLOSE<=LC),VOL,0),26)))*(100));
WVAD10:=(MA(((CLOSE-OPEN)/(HIGH-LOW))*(VOL),10))/(1000)+(50);
神奇数字:=(0);
DRAWTEXT((VAR31=20),(LOW)*(0.99000001),’↑21’),Color00FFFF;
DRAWTEXT((VAR31=33),(HIGH)*(1.04),’↓34’),Color00FFFF;
DRAWTEXT((VAR31=54),(LOW)*(0.99000001),’↑55’),Color00FFFF;
DRAWTEXT((VAR31=88),(HIGH)*(1.05),’↓89’),Color00FFFF;
DRAWTEXT((VAR31=143),(LOW)*(0.99000001),’↑144’),Color00FFFF;
DRAWTEXT((VAR31=232),(HIGH)*(1.05),’↓233’),Color00FFFF;
DRAWTEXT((VAR31=376),(LOW)*(0.99000001),’↑377’),Color00FFFF;
M9:=(MA(CLOSE,9));
Y:=((HIGH+LOW)/(2));
AO:=MA(Y,5)-(MA(Y,34));
DU0:=(CROSS(AO,0));
UD0:=(CROSS(0,AO));
TDU0:=(BARSLAST(DU0));
TUD0:=(BARSLAST(UD0));
DU3:=(REF(DU0,1));
UD3:=(REF(UD0,1));
TDU3:=(BARSLAST(DU3));
TUD3:=(BARSLAST(UD3));
UDGLINE:=(IF((TDU3<TUD3),REF(HHV(HIGH,2),TDU3),REF(LLV(LOW,2),TUD3)));
JDU0:=(REF(CLOSE,1)<=REF(UDGLINE,1)) AND (CLOSE>UDGLINE) AND (TDU0<(TUD0));
JUD0:=(REF(CLOSE,1)>=REF(UDGLINE,1)) AND (CLOSE<UDGLINE) AND (TUD0<(TDU0));
JDU1:=JDU0 AND (COUNT(JDU0,TDU0)=(1));
JUD1:=JUD0 AND (COUNT(JUD0,TUD0)=(1));
JDU2:=JDU1 AND (REF(BARSLAST(JUD1),1)<(REF(BARSLAST(JDU1),1)));
JUD2:=JUD1 AND (REF(BARSLAST(JUD1),1)>(REF(BARSLAST(JDU1),1)));
JDU3:=JDU1 AND (REF(BARSLAST(JUD1),1)>(REF(BARSLAST(JDU1),1)));
JUD3:=JUD1 AND (REF(BARSLAST(JUD1),1)<(REF(BARSLAST(JDU1),1)));
DRAWTEXT(JDU2,(M9)*(0.94999998),’▲买▲’),Colorred;
VAR1:=(((CLOSE-MA(CLOSE,30))/(MA(CLOSE,30)))*(100));
VAR2:=(CLOSE>OPEN) AND (OPEN-LOW>HIGH-(CLOSE));
VAR3:=(REF(VAR1,1)<(-20)) AND (VAR2);
VAR4:=(REF(VAR1,1)<(-20)) AND (CLOSE>OPEN) AND (((CLOSE-REF(CLOSE,1))/(REF(CLOSE,1)))*(1000)>(20));
VAR5:=(FILTER((VAR3 or VAR4),3));
VAR6:=(OPEN>CLOSE) AND (HIGH-IF((CLOSE>OPEN),CLOSE,OPEN)>IF((OPEN<CLOSE),OPEN,CLOSE)-(LOW));
VAR7:=(REF(VAR1,1)>ABS((-20))) AND (VAR6);
VAR8:=(REF(VAR1,1)>ABS((-20))) AND (CLOSE<OPEN) AND (((REF(CLOSE,1)-CLOSE)/(REF(CLOSE,1)))*(1000)>(20));
VAR9:=(FILTER((VAR7 or VAR8),3));
VAARA:=(REF(VAR1,1)<(-13)) AND (VAR2);
VARB:=(REF(VAR1,1)<(-13)) AND (CLOSE>OPEN) AND (((CLOSE-REF(CLOSE,1))/(REF(CLOSE,1)))*(1000)>(20));
VARC:=(FILTER((VAARA or VARB),3));
VARD:=(REF(VAR1,1)>ABS((-13))) AND (VAR6);
VARE:=(REF(VAR1,1)>ABS((-13))) AND (CLOSE<OPEN) AND (((REF(CLOSE,1)-CLOSE)/(REF(CLOSE,1)))*(1000)>(20));
VARF:=(FILTER((VARD or VARE),3));
DRAWTEXT(((VARF)*(VAR1)>0),(1)*(REF(CLOSE,1)),’卖’),Coloryellow;




2、{MACD 实战指标 }

DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA  : EMA(DIFF,9);
MACD : 2*(DIFF-DEA), COLORSTICK;
D1:=EMA(C,3)-EMA(C,8);
D2:=EMA(O,3)-EMA(O,8);
D3:=EMA(H,3)-EMA(H,8);
D4:=EMA(L,3)-EMA(L,8);
DRAWICON(cross(d1,diff) and diff<-0.05 ,d4-0.1,1);
DRAWICON(cross(diff,d1) and diff>0.1 ,d3+0.1,2);
STICKLINE(D1>=D2,D1,D2,8,0),COLOR0055AA;
STICKLINE(D1<=D2,D1,D2,8,0),COLOR006600;
STICKLINE(D1>=D2,D1,D2,5,0),COLOR0077CC;
STICKLINE(D1>=D2,D1,D2,3,0),COLOR0099DD;
STICKLINE(D1>=D2,D3,D4,0,0),COLOR00BBFF;
STICKLINE(D1<=D2,D1,D2,5,0),COLOR009900;
STICKLINE(D1<=D2,D1,D2,3,0),COLOR00BB00;
STICKLINE(D1<=D2,D3,D4,0,0),COLOR00EE00;

3、抄底王
var2:=MA(CLOSE, 5);
var3:=MA(CLOSE, 10);
var4:=MA(CLOSE, 20);
var5:=MA(CLOSE, 30);
var6:=(var2+var3+var4+var5)/4;
var7:=(var6-REF(var6,15))/REF(var6,15)*100;
var9:=EMA(var7,8);
反转:STICKLINE(var9>1*REF(var9, 1), var7, 0, 5, 0), COLOREE00EE;
持股:STICKLINE(var7>1*REF(var7, 1), var7, var9, 5, 0), COLORRED;
持币:STICKLINE(var7<1*REF(var7, 1), var7, var9, 5, 1), COLORGREEN;
洗盘:STICKLINE(var7<1*REF(var7, 1) AND var9>1*REF(var9, 1), var7, var9, 10, 0), COLOR00EEFF;
var10:=(CLOSE-MA(CLOSE, 58))/MA(CLOSE, 58)*100;
var11:=(var10>1*REF(var10, 1) AND var10<(-26) AND var10>(-40))*1.5;
var12:=VOL/CAPITAL*100;
var13:=LLVBARS(LOW, 50);
var14:=SUM(VOL, var13);
var15:=HHVBARS(HIGH, 50);
var16:=SUM(VOL, var15);
var17:=(CLOSE-REF(OPEN, var15))/REF(OPEN, var15)*100;
var18:=var16/CAPITAL*100;
var19:=(CLOSE-REF(OPEN, var13))/REF(OPEN, var13)*100;
var20:=var14/CAPITAL*100;
var21:=MA(CLOSE, 3);
var22:=REF(CLOSE, 2)*0.865;
var23:=REF(CLOSE, 13)*0.772;
var24:=MIN(var22, var23);
var25:=MA(CLOSE, 13);
抄底王:IF((CLOSE-var24)/CLOSE<0.030 AND var17<(-35) AND SUM(var12, 5)/5<1.800, 1, 0)*10, COLORWHITE;
DRAWTEXT(抄底王, 抄底王, ’ 成功率 90.22 %,共发出指示1289 次.底 追 ’), COLORFFAA00;
var26:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100;
var27:=(EMA(CLOSE, 12)-EMA(CLOSE, 26))*100;
var28:=EMA(var27, 9);
var29:=2*(var27-var28);
DRAWTEXT(var27<(-50) AND var26>7 AND var27>=var28, 5, ’追’),COLORWHITE;
STICKLINE(var27<(-50) AND var26>7, 0,(-10), 5, 0), COLORFFFF66;



发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口


相关内容


  • 上一篇教程:
  • 下一篇教程: