Login Page - Create Account

Support Board


Date/Time: Thu, 23 Jan 2025 15:22:47 +0000



Post From: Backtesting Limit Order Offset

[2018-11-19 15:12:14]
User489862 - Posts: 14
Hi,

I am currently using the Spreadsheet System for Trading study to help back test a strategy using market replay.

Trades are triggered when a bar closes with and the alert condition is true.

However, let's say for a buy signal is triggered because a green candle closes with the alert condition, the buy limit order is placed +1 above the green candle. Vice versa for a sell signal, the sell limit order is placed -1 below a red candle for a sell trade.

I would like to get in at a better price (i.e. wait for a slight pullback so how do I set the automated trade to occur a few ticks below for a long trade and a few ticks above for a sell trade?

Thanks