Back

System Argument Exception: This is a forward only indicator EMA

Hi,

I am new to quantconnect and facing this weird error while backtesting my strategy. I am using quantconnect EUR USD data from March 2014 to Dec 2014. I am not sure if it is a data problem or I did something wrong in mys strategy. Did any one else had face similar problem? 

System.ArgumentException: This is a forward only indicator: EMA13(EURUSD_min) Input: 2014-03-02 17:01:00Z Previous: 2014-03-02 17:05:00Z

Any help is highly appreciated!

Thanks

========================================================================

2014-03-01 00:00:00 Launching analysis for 0b0b642bcf21d7ff6fb84297decf1b5d with LEAN Engine v2.3.0.2.1323
2014-03-02 17:05:00 Runtime Error: System.ArgumentException: This is a forward only indicator: EMA13(EURUSD_min) Input: 2014-03-02 17:01:00Z Previous: 2014-03-02 17:05:00Z
at QuantConnect.Indicators.IndicatorBase`1[T].Update (T input) [0x00082] in <ea99ae50fe1c4bcb9049e6352fc8c83f>:0
at QuantConnect.Algorithm.QCAlgorithm+<RegisterIndicator>c__AnonStorey9.<>m__0 (System.Object sender, QuantConnect.Data.IBaseData consolidated) [0x00026] in <c1b5007634d146d792a34e569af1a59b>:0
at QuantConnect.Data.Consolidators.DataConsolidator`1[TInput].OnDataConsolidated (QuantConnect.Data.IBaseData consolidated) [0x0000e] in <73342db9934d48e784d44ddf98f8f735>:0
at QuantConnect.Data.Consolidators.PeriodCountConsolidatorBase`2[T,TConsolidated].OnDataConsolidated (TConsolidated e) [0x00001] in <73342db9934d48e784d44ddf98f8f735>:0
at QuantConnect.Data.Consolidators.PeriodCountConsolidatorBase`2[T,TConsolidated].Scan (System.DateTime currentLocalTime) [0x000a4] in <73342db9934d48e784d44ddf98f8f735>:0
at QuantConnect.Lean.Engine.AlgorithmManager.Run (QuantConnect.Packets.AlgorithmNodePacket job, QuantConnect.Interfaces.IAlgorithm algorithm, QuantConnect.Lean.Engine.DataFeeds.IDataFeed feed, QuantConnect.Lean.Engine.TransactionHandlers.ITransactionHandler transactions, QuantConnect.Lean.Engine.Results.IResultHandler results, QuantConnect.Lean.Engine.RealTime.IRealTimeHandler realtime, QuantConnect.Interfaces.ICommandQueueHandler commands, System.Threading.CancellationToken token) [0x00e3f] in <c6fccdea8975472eb1f1f34828015e39>:0

 

 

 

Update Backtest








I don't want to speculate on possible causes, so could you please share the algorithm (use attach backtest feature below)?
 

1

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Hi,

I can select the project but I am unable to attach Backtest with error.

0

In the comment box in the forum, there is a link "Attach Backtest". Once you click in it, it will show two drop downs. In the first, we select the project: in you case, it is called "Basic Templace (C#)". Then the second drop down will be enabled and show the backtest name.
Please try again.

0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Update Backtest





0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed