Profile Picture

nBar error from Symbol Ranking Trading System

Posted By geddie212 Last Year
Message
Posted Sunday July 10 2016
I downloaded the following trading system:

http://www.rightedgesystems.com/TradingSystemsDetails.aspx?id=f445d8ec-7e2c-46d4-9c97-e6deceb340b4

For some reason I get the following error, it seems to only do this when I one symbol starts at a different date (e.g. when one symbol starts at 01/01/2000 and another one starts at 01/01/2013, but if they're both the same date then it does the simulation):
http://www.rightedgesystems.com/forums/uploads/images/65874e85-8ef8-4430-b3f2-dacc.jpg
Posted Thursday August 04 2016
Thanks for pointing this out.  To fix this, change line 74 from this:

if (SystemData.InLeadBars || double.IsNaN(_rsi.Current))


To this:

if (SystemData.InLeadBars || _rsi.Count == 0 || double.IsNaN(_rsi.Current))


Thanks,
Daniel


Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems