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

Reply

Bookmark

Sort
MIH7
- ago
#1


https://www.wealth-lab.com/Support/ApiReference/Backtester
0
Glitch7
 ( 38.84% )
- 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
MIH7
- 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
Cone7
 ( 30.93% )
- 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

Reply

Bookmark

Sort