When using the Import Utility I get an error as per first pic saying "Ninja Script archive File may contain duplicate method..." etc.
When I do it manually and try and compile it I get an errors in the red line of code. see pic 2.
{
if (ChartControl != null
&& Bars != null
&& Bars.Count > 0
&& Bars.MarketData != null
&& Bars.MarketData.Connection.PriceStatus == Cbi.ConnectionStatus.Connected
&& (Bars.MarketData.Connection.Options.Provider != Cbi.Provider.OpenTick || !(Bars.MarketData.Connection.Options as Cbi.OpenTickOptions).UseDelayedData)
&& Bars.Session.InSession(Now, Bars.Period.Id, true))
return true;
return false;
}

Comment