I use the indicator for calculations traded on bid / ask.
In the indicator there is a method
protected override void OnMarketData(MarketDataEventArgs e) { if (e.MarketDataType != MarketDataType.Last) return; if (e.Price > e.Ask) { Ask[0] += vol; } if (e.Price < e.Bid) { Bid[0] += revers ? vol : -1 * vol; } }
How do I use the data of this indicator in the strategy?
Can there be an example of such an implementation?
Thanks in advance.
I ask you to post the post to the strategy branch nt8
Comment