Position #1 - Long at 1.20
Position #2 - Long at 1.19
I've found some code here: http://ninjatrader.com/support/forum...ead.php?t=7499
which has:
if (Position.MarketPosition == MarketPosition.Long && ...
This code seems to identify a single Long position. My question again is; How could I differentiate between multiple Long (or Short) positions? I was thinking about creating my own "Trade" object, Example:
public class Trade {
public int BarNum { get; set; }
public string OrderType { get; set; }
public double FillPrice { get; set; }
}
and tracking it using List<Trade> but then I came across IPosition. After looking at the NT Documentation, IPosition doesn't quite do what I need. Any ideas on how to accomplish this?
Thank You!
Comment