How can I access Settings Benchmark symbol from Strategy code programmatically?
Thanks !
Thanks !
Rename
CODE:
public override void Initialize(BarHistory bars) { string bm = Backtester.Strategy.Benchmark; DrawHeaderText("Benchmark is " + bm); }
Thanks !
Oh, did the documentation changed overnight?
Sorry flanda, it looks like something has overlapped here, i did not want to give you wrong information.
Sorry flanda, it looks like something has overlapped here, i did not want to give you wrong information.
The doc you cited is correct. BenchmarkSymbol is no longer available in BacktestSettings. (I think it's safe to remove that entry now to avoid confusion.)
However, Benchmark is missing from the Backtest.Strategy properties in the QuickRef, so I'll add that.
However, Benchmark is missing from the Backtest.Strategy properties in the QuickRef, so I'll add that.
adding to the conversation. on #2 benchmark symbol is available for single strategies, however not when run within a meta-strategy. is there a way to access the benchmark symbol from a meta-strategy?
Your Response
Post
Edit Post
Login is required