When backtesting in strategy analyzer, I want to make sure that both - limit and market buy orders are filled at Ask prices, while limit Sell and Market Sell orders are filled only at Bid prices.
Can you please confirm if it is possible?
Considering only Long entries:
The way I am trying to approach it is to:
1 - In addition to primary series, to add 1 tick bid, 1 tick ask and 1 tick last series for the same instrument as primary instrument.
2 - Once a primary series shows long signal - then to submit limit order against index of "Ask" series (with some offset). Will that guarantee in historical backtest, that order will be filled only when "Ask" price reaches given price?
3. Submit Target limit order against "Bid" series, submit stop order also against "Bid" series. Same question - will that guarantee that order will be filled only when "Bid" series reaches that price, and will be filled at that price (I prefer exact bid/ask instead of last series)?
I don't like "Slippage" concept because it seems that it basically randomly does the slippage (does approximation).
Thanks!
Comment