- ago
It would be nice to have a way within a strategy to override the default slippage setting and set it commensurate with the instrument(s) it trades.
1
802
Solved
3 Replies

Reply

Bookmark

Sort
Glitch8
 ( 12.10% )
- ago
#1
It's already possible, example ...

CODE:
public override void Initialize(BarHistory bars) {          BacktestSettings.IsSlippageEnabled = true;          BacktestSettings.SlippagePercentStocks = 0.05;          source = bars.Close;          pct = 1.00;          pct = (100.0 - pct) / 100.0;          multSource = source * pct;          StartIndex = 20; }
1
Best Answer
Cone8
 ( 6.32% )
- ago
#2
I'll get those properties documented in the QuickRef for Build 23.
1
- ago
#3
Awesome!
0

Reply

Bookmark

Sort