模型加载不了 (文华财经wh9)

投资者咨询:模型加载不了 (文华财经wh9)
来源:文华财经  日期:2019-2-15 20:30
 老师好,我用的是MQ版本,本来好好的模型啥也没有动过,现在加载不了了,什么原因?
技术人员回复
日期:2019-2-15 20:33
 提供一下源码 ,给您分析一下
投资者咨询:模型加载不了 (文华财经wh9)
来源:文华财经  日期:2019-2-15 20:30
Params Numeric Lots(5); Numeric Length(9); Numeric Length1(3); Numeric Length2(3); Numeric ShortLengh(12);//MACD参数 Numeric LongLength(26); Numeric M(9); Numeric N1(5);//均线参数 Numeric N2(10);//均线参数 Vars NumericSeries RSV; NumericSeries K; NumericSeries D; NumericSeries J; NumericSeries DIFF; NumericSeries DEA; NumericSeries MA1; NumericSeries MA2; NumericSeries JCN; NumericSeries SCN; NumericSeries Buy1; NumericSeries SellShort1; Setting MultSig:0,0,0,0,1000,0; Begin RSV = (Close - LLV(Low,Length)) / (HHV(High,Length) - LLV(Low,Length)) * 100; K = Sma(RSV,Length1,1); D = Sma(K,Length2,1); J = 3 * K - 2 * D; DIFF = Ema(Close, ShortLengh) - Ema(Close, LongLength); DEA = Ema(DIFF,M); MA1 = Ma(Close,N1); MA2 = Ma(Close,N2); SCN = SumBars(CrossDown(K,D),1); JCN = SumBars(CrossUp(K,D),1); Buy1 = LLV(K,SCN)<10 && MA1="MA1" >MA2 && DIFF>DEA && K>D; SellShort1 = HHV(K,JCN)>90 && MA1BKPrice && CloseRef(High,1)) { BuyToCover(SKVol,Active_Order); } If(Close>SKPrice && K>D) { BuyToCover(SKVol,Active_Order); } PlotLine("MA1",MA1,Green); PlotLine("MA2",MA2,Yellow); DrawIcon(CountSig(Buy,1)==1 ,RefSig_Price(Buy,1),"ICO119"); DrawIcon(CountSig(SellShort,1)==1 ,RefSig_Price(SellShort,1),"ICO119"); DrawIcon(CountSig(Sell,1)==1 ,RefSig_Price(Sell,1),"ICO119"); DrawIcon(CountSig(BuyToCover,1)==1 ,RefSig_Price(BuyToCover,1),"ICO119"); KText(IsLastBuy&&CountSig(Buy,1)>0 ,0,Low,Red,"多开"); KText(IsLastSellShort&&CountSig(SellShort,1)>0 ,0,High,Green,"空开"); KText(IsLastSell&&CountSig(Sell,1)>0 ,0,High,Green,"多平"); KText(IsLastBuyToCover&&CountSig(BuyToCover,1)>0 ,0,Low,Red,"空平"); PlotLine("资金",MoneyTot,Yellow,Linethick1,2,0);//资金曲线 End
投资者咨询:模型加载不了 (文华财经wh9)
来源:文华财经  日期:2019-2-15 20:30
 麻烦老师看过以后把源码删除哈,谢谢
 
技术人员回复
日期:2019-2-15 20:52
源码中只有买平指令 并且if语句部分残缺混乱的,源码是残缺的,您可以提供一下源码思路 给您分析补充一下




   
投资者咨询:模型加载不了 (文华财经wh9)
来源:文华财经  日期:2019-2-15 20:30
 我截图给您,这样可以了吗?这是if里面的截图。看完后麻烦老师连3楼的源码都删除哈,谢谢

图片点击可在新窗口打开查看