Delay Autotrading Startup Until After Complete Bar Formed

Questions about MultiCharts and user contributed studies.
eegroup
Posts: 78
Joined: 04 Aug 2008
Has thanked: 11 times
Been thanked: 9 times

Delay Autotrading Startup Until After Complete Bar Formed

Postby eegroup » 31 May 2016

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!

User avatar
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

Postby TJ » 31 May 2016

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!
Look up the keyword:

BarNumber


Return to “MultiCharts”