- ago
How can I access Settings Benchmark symbol from Strategy code programmatically?
Thanks !
0
505
Solved
6 Replies

Reply

Bookmark

Sort
MIH8
- ago
#1


https://www.wealth-lab.com/Support/ApiReference/Backtester
0
Glitch8
 ( 10.94% )
- ago
#2
CODE:
public override void Initialize(BarHistory bars) {          string bm = Backtester.Strategy.Benchmark;          DrawHeaderText("Benchmark is " + bm); }
0
Best Answer
- ago
#3
Thanks !
0
MIH8
- ago
#4
Oh, did the documentation changed overnight?
Sorry flanda, it looks like something has overlapped here, i did not want to give you wrong information.
0
Cone8
 ( 24.99% )
- ago
#5
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.
0
- ago
#6
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?
0

Reply

Bookmark

Sort