倚天操作线(通达信公式 主图 源码 测试图)

[复制链接]
查看117 | 回复0 | 2022-6-27 14:41:43 | 显示全部楼层 |阅读模式

 {倚天操作线}

 
操作线: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;
 

20226193195128503.png

20226193195128503.png

20226193193650504.rar

4.33 KB, 下载次数: 0

售价: 3 金钱  [记录]  [购买]

20226193193650504.rar

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则