Nathamus
03-14-2007, 08:55 AM
Hello Ninjas!
I would like to plot some account information in a subplot under my chart while running a strategy on that chart. These information help to observe the over all development of a running strategy and are useful for back testing purpose, because they can help to identify "difficult" situations.
When I create a new indicator, obviously the following code does not work:
Plot_Quantity.Set(Position.Quantity);
There is no Position.Quantity in the scope of this indicator (it belongs to the strategy I guess) and I get a message which says that a Object Reference is needed. How can this be provided?
When I create anther indicator using
Plot_CumProfit.Set(Performance.AllTrades.Performan ce.Currency.CumProfit);
I get a message telling me the NinjaTrader.Strategy.Performance does not contain a definition for AllTrades (it may sound different because I translated this to English).
Can somebody tell me what to do? Can I create an additionalsubplot (overlay = false) inside a strategy?
thx
Nathamus
I would like to plot some account information in a subplot under my chart while running a strategy on that chart. These information help to observe the over all development of a running strategy and are useful for back testing purpose, because they can help to identify "difficult" situations.
When I create a new indicator, obviously the following code does not work:
Plot_Quantity.Set(Position.Quantity);
There is no Position.Quantity in the scope of this indicator (it belongs to the strategy I guess) and I get a message which says that a Object Reference is needed. How can this be provided?
When I create anther indicator using
Plot_CumProfit.Set(Performance.AllTrades.Performan ce.Currency.CumProfit);
I get a message telling me the NinjaTrader.Strategy.Performance does not contain a definition for AllTrades (it may sound different because I translated this to English).
Can somebody tell me what to do? Can I create an additionalsubplot (overlay = false) inside a strategy?
thx
Nathamus