I am getting this error when running my strategy. It complies fine and the strategy runs fine, but when an order is placed I get this error:
Failed to execute DB job 'StrategyUpdateJob' There was an error reflecting typeTrader.StochScalpV3_1. There was an error reflecting property SessionEnd. Member of type Int32 hides base class member StrategyBase.SessionEnd of type System.DateTime. Use XmlElementAttribute or XmlAttribueAttributr to specify a new name.
Here is how I use the variable sessionEnd:
As a parameter:
[Description("Session End Time (format HHMMSS)")]
[Category("Parameters")]
public int SessionEnd
{
get { return sessionEnd; }
set { sessionEnd = value; }
}
private void checkTradingHours()
{
currentTime = ToTime(Time[0]);
if (currentTime <= sessionStart || currentTime >= sessionEnd )
withinTradingHours = false;
else withinTradingHours = true;
}

Comment