I have recently upgraded to the latest beta because i was having some connectivity issues these seem to be fixed now

but when i try to compile my strategy I get an error in the code saying
Type\@BarsTypes.cs 'NinjaTrader.Data.Session.IsBeginOrEndSet' is a 'property' but is used like a 'method' CS0118 - click for info 200 23
i think this is because before i had a section of code to try and control daily risk parameters like so
if (Bars.FirstBarOfSession)
{
// Store the strategy's prior cumulated realized profit and number of trades
priorTradesCumProfit = Performance.AllTrades.TradesPerformance.Currency.C umProfit;
numberOfTrades=0;
}
if (priorTradesCumProfit - Performance.AllTrades.TradesPerformance.Currency.C umProfit > 500)
return;
elseif(priorTradesCumProfit - Performance.AllTrades.TradesPerformance.Currency.C umProfit < 500)
{
some help would be greatly appreciated
Thanks in advance
Comment