I would like to write an Indicator to display various things that can only accessed from within a strategy.
e.g.
Position.Quantity,
Performance.AllTrades.Performance.Currency.CumProf it,
Position.GetProfitLoss(Close[0], PerformanceUnit.Currency),
Performance.AllTrades.Performance.Currency.DrawDow n,
etc.
This values can be saved into a dataseries
protected override void Initialize() {
myPosSize = new DataSeries(this);
DataSeries myPosSize = new DataSeries(this);
*...something else* }
Can this dataseries be passed to an indicator as input? How can I update / set a value in or through the OnBarUpdate() of the underlying strategy?
Thanks for your help,
Nathamus
Comment