期货交易师

[复制链接]
查看205 | 回复0 | 2022-6-27 21:58:20 | 显示全部楼层 |阅读模式

 G:=IF(HIGH=HHV(HIGH,3),1,0); 

D:=IF(LOW=LLV(LOW,3),1,0);
S:=IF(REF(G,2)=1 AND REF(G,1)=0 AND G=0,REF(HIGH,2),REF(HIGH,2+BARSLAST(REF(G,2)=1 AND REF(G,1)=0 AND G=0)));
X:=IF(REF(D,2)=1 AND REF(D,1)=0 AND D=0,REF(LOW,2) ,REF(LOW, 2+BARSLAST(REF(D,2)=1 AND REF(D,1)=0 AND D=0)));
K1:=IF(HIGH>=MA(CLOSE,1),S,REF(S,BARSLAST(HIGH>MA(CLOSE,1)))); 
K2:=IF(LOW <=MA(CLOSE,5),X,REF(X,BARSLAST(LOW<=MA(CLOSE,5)))),LINETHICK1;   
C1:=REF(C,1)<=K1 AND C>K1;
C2:=REF(C,1)>=K2 AND C<K2;
K3:=BARSLAST(C1);
K4:=BARSLAST(C2);
支撑:IF(K3<K4,K2,DRAWNULL),COLORYELLOW,LINETHICK2;
压力:IF(K3>K4,K1,DRAWNULL),COLORWHITE,LINETHICK2;
ZA1:=EMA(C,25);
ZA2:=EMA(ZA1,45);
ZB1:=EMA(C,65);
ZB2:=EMA(ZB1,45);
DIFF:=(ZA1+ZB2)/2;
DEA:=(ZA2+ZB1)/2;
KA0:=(HHV(C,45)-LLV(C,45))/45;
KA1:=SMA(C,3,1);
KA2:=SMA(C-KA0*3,3,1);
KA3:=SMA(KA1-KA0*3,3,1);
SC:=100*(CLOSE-MA(CLOSE,80));
SC1:=EMA(SC,5);
SC2:=EMA(SC,21);
长期策略:SC1>=SC2,NODRAW;
次级策略:DIFF>=DEA,NODRAW;
短期策略:KA2>=KA3,NODRAW;
短期拐点:REF(短期策略,1)=0 AND 短期策略=1,NODRAW;
长期趋势:ZB2,COLORCYAN,LINETHICK3;
次级趋势:DIFF,NODRAW;
短期趋势:KA2,NODRAW;
IF(DIFF>=DEA,DIFF,DRAWNULL),LINETHICK3,COLORRED;
IF(DIFF<DEA,DIFF,DRAWNULL),LINETHICK1,COLORBLUE;
IF(KA2>=KA3,KA2,DRAWNULL)COLORMAGENTA,LINETHICK3;
IF(KA2<KA3,KA2,DRAWNULL),LINETHICK1,COLORGREEN;
CSAR:=SAR(10,2,20); 
持股:=IF(CSAR<=L,CSAR,0);
涅磐:=EMA(SLOPE(C,21)*20+C,42); 
般若:=EMA(C,5);
VAR1:=(C+H+O+L)/4;
卖出:=XMA(VAR1,20)*(1+80/1000);
买入:=XMA(VAR1,32)*(1-100/1000); 
菩提:=买入+(卖出-买入)*2/3;{此函数仅做参考线,为提前趋势预测线,上涨途中向下见顶,下跌途中向上见底}; 
纠错:=买入+(卖出-买入)*1/3;
开悟:=IF(般若>=REF(般若,1),般若,DRAWNULL);
抛物线转向:=CROSS(L,CSAR) AND 开悟>0 AND H<菩提 AND 持股>0 AND H>涅磐;
DRAWICON(抛物线转向,(H),16);{趋势底};
般:=XMA(CLOSE,7); 
若:=MEMA(CLOSE,3); 
趋势延伸A:=短期拐点 AND 菩提>H AND NOT(抛物线转向);
DRAWICON(趋势延伸A,H,4);
 
趋势延伸B:= H<纠错 AND 短期策略=1 AND COUNT(H<纠错 AND 短期策略=1,BARSLAST(H>菩提))=1;
DRAWICON(趋势延伸B,L,3); 
DRAWICON(LONGCROSS(若,般,3) AND H>菩提,H,19);
DRAWICON(BARSLAST(LONGCROSS(若,般,3) AND H>菩提)=1,H,2);
 

p2018640191758803.jpg

p2018640191758803.jpg

2018640193171811.rar

3.33 KB, 下载次数: 0

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

2018640193171811.rar

回复

使用道具 举报

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

本版积分规则