Forum: NinjaTrader
May 22nd, 2012, 02:58 AM
|
Replies: 6
Views: 4,972
protected override void OnBarUpdate()
...
protected override void OnBarUpdate()
// At the start of a new session
if (Bars.FirstBarOfSession)
{
// Store the strategy's prior cumulated realized profit and number of...
|
Forum: NinjaTrader
May 21st, 2012, 02:44 PM
|
Replies: 6
Views: 4,972
Ok you did not mention in your op it was for...
Ok you did not mention in your op it was for backtesting concern, if the data range is consistent what I do in this case is import the data into an excel file and filter the information separately...
|
Forum: NinjaTrader
May 21st, 2012, 02:00 PM
|
Replies: 6
Views: 4,972
try this:...
try this: Performance.RealtimeTrades.TradesPerformance.Currency.CumProfit
** if you stop your strategy and restart it the same day the daily cumprofit will restart from zero.
|