If autotrading is initiated intrabar, is there any way to programmatically delay the execution of the first trade so that it will not fire off until after that first bar has completed forming? The signal/strategy is set to fire off trades intrabar (wih IOG on), which is the desired behavior and acceptable processing at the beginning of the first new bar after autotrading is turned on. It is not acceptable to start trading intrabar on the bar that is forming when autotrading is initiated. The bars on the chart are built as tick bars.
Any ideas would be greatly appreciated. Many thanks!
Delay Autotrading Startup Until After Complete Bar Formed
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Delay Autotrading Startup Until After Complete Bar Forme
Look up the keyword:If autotrading is initiated intrabar, is there any way to programmatically delay the execution of the first trade so that it will not fire off until after that first bar has completed forming? The signal/strategy is set to fire off trades intrabar (wih IOG on), which is the desired behavior and acceptable processing at the beginning of the first new bar after autotrading is turned on. It is not acceptable to start trading intrabar on the bar that is forming when autotrading is initiated. The bars on the chart are built as tick bars.
Any ideas would be greatly appreciated. Many thanks!
BarNumber