Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 18:26:39 +0000



Post From: Auto trading with a trailing stop

[2020-05-14 21:53:53]
Matt NL - Posts: 91
So I've figured out how to add targets/stops using sc.UseGUIAttachedOrderSetting = true;
However, when I'm backtesting all my target limit orders are immediately filled at the current (live time) price, not the price at the time of backtesting.

How can we prevent the current (real-time/live) price being used for market orders or target limit orders when backtesting?

Thanks
Matt