PDA

View Full Version : profit/loss for each symbol in multi-symbol strategy?


Folls
10-22-2007, 05:35 PM
Hi,

I am running a strategy with multiple symbols. Is it possible to get cumulative profit/loss for each individual symbol?

I tried:
Performance[0].AllTrades.Performance.Currency.CumProfit.ToString ();

However, Performance is not indexable. Is there another way?

Thanks,

Folls

woodside
10-22-2007, 07:28 PM
You tried using the BarsInProgress instead of an index?

Like:


if (BarsInProgress == 0)
{
//performance for first symbol
Performance.AllTrades.Performance.Currency.CumProf it.ToString ();
}
if (BarsInProgress == 1)
{
//performance for second symbol
Performance.AllTrades.Performance.Currency.CumProf it.ToString ();
}

NinjaTrader_Josh
10-23-2007, 01:06 AM
I believe the "Performance.AllTrades.Performance.Currency.CumProf it" only keeps track of profits generated on a strategy level instead of an instrument level.

Are you doing trades on multiple instruments simultaneously? I believe in NinjaTrader 6 it will only let you execute trades on the primary instrument.