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

Reply

Bookmark

Sort
MIH8
- ago
#1


https://www.wealth-lab.com/Support/ApiReference/Backtester
0
Glitch8
 ( 13.30% )
- 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
 ( 7.27% )
- 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