Forums ProRealTime English forum ProOrder support MTF – one trade per bar Reply To: MTF – one trade per bar

#95908

On which TF, 10-minute or 1-second?

On 1-second TF it is impossible to acrivate more than one order each bar, since strategies are executed when a bar closes, so another trade could only be opened the next bar, not the same one.

On a 10-minute TF you should add, at the very beginning of that code (provided UPDATEONCLOSE is used):

Next, at the very beginning of the code on your 1-second TF, add:

Then add TradeON to your conditions to enter a trade and clear it to avoid further trading until the next 10-minute bar:

edited on May 5th, 2021:

lines

do not work properly and should be replaced by this single line:

 

 

 

 

 

 

1 user thanked author for this post.