拐头开仓模型 [文华财经]
- 咨询内容:
老师请帮我改一下这个模型,将其中的MA1改成向上拐头开仓,不要金叉开仓这个条件了。
MA1:=SMA(VOL,4,1);
MA2:=SMA(VOL,11,1);
MA12:=MA(C,12);
MA26:=MA(C,26);
DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:= EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
BK1:=CROSS(MA1,MA2)&&DIFF>0&&DEA>0&&(CROSS(DIFF,DEA)||MA12>MA26)&&H>REF(H,1);
BK1,BPK;
SK1:=CROSS(MA2,MA1)&&DIFF<0&&DEA<0&&(CROSS(DEA,DIFF)||MA26<MA12)&&L<REF(L,1);
SK1,SPK;
PLAYSOUND(BK1,'A');
PLAYSOUND(SK1,'B');
AUTOFILTER;均线拐头源码:
MA1:=SMA(VOL,4,1);
MA2:=SMA(VOL,11,1);
K:=REFX(MA1,1)-MA1;
DRAWSL(V>REF(V,1)*2,MA1,K,1,0,COLORRED);
DRAWSL(V<REF(V,1)*2,MA1,K,1,0,COLORGREEN); - 文华技术人员:
为您修改如下:
MA1:=SMA(VOL,4,1);
MA2:=SMA(VOL,11,1);
MA12:=MA(C,12);
MA26:=MA(C,26);
DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:= EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;UPGT:=MA1>REF(MA1,1)&&REF(MA1,1)<REF(MA1,2);
DOWNGT:=MA1<REF(MA1,1)&&REF(MA1,1)>REF(MA1,2);
BK1:=UPGT&&DIFF>0&&DEA>0&&(CROSS(DIFF,DEA)||MA12>MA26)&&H>REF(H,1);
BK1,BPK;
SK1:=DOWNGT&&DIFF<0&&DEA<0&&(CROSS(DEA,DIFF)||MA26<MA12)&&L<REF(L,1);
SK1,SPK;
PLAYSOUND(BK1,'A');
PLAYSOUND(SK1,'B');
AUTOFILTER;仅供参考。
- 文华客服:
请在帮我加上限制在时间9点06之前时间内开仓。也就是说在上述时间内不开仓。
- 网友回复:
为您修改如下:
MA1:=SMA(VOL,4,1);
MA2:=SMA(VOL,11,1);
MA12:=MA(C,12);
MA26:=MA(C,26);
DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:= EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;UPGT:=MA1>REF(MA1,1)&&REF(MA1,1)<REF(MA1,2);
DOWNGT:=MA1<REF(MA1,1)&&REF(MA1,1)>REF(MA1,2);
BK1:=UPGT&&DIFF>0&&DEA>0&&(CROSS(DIFF,DEA)||MA12>MA26)&&H>REF(H,1);
BK1&&TIME>0906,BPK;
SK1:=DOWNGT&&DIFF<0&&DEA<0&&(CROSS(DEA,DIFF)||MA26<MA12)&&L<REF(L,1);
SK1&&TIME>0906,SPK;
PLAYSOUND(BK1,'A');
PLAYSOUND(SK1,'B');
AUTOFILTER;仅供参考。
- 网友回复: 我在确认一下:是限制在时间9点06之前时间内开仓。也就是说在上述时间内不开仓。对吗?
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 262069696 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容