One open/One bar

 

Hello


I would make this:

In expert advisor,when I open an Orders,then close this in One bar,do not open new orders in this bar,wait for the next bar.

(One open/One bar)


Thanks

Sorry for my English.

 
That depends on trading strategy and chart. (H1 bar has 12 x M5 bars). Depends what you choose. You can have 1, 2, ... 20 trades on D1 chart, or higher, and 1 trade on M15 or M30 as reference.
 

Thanks,

i have a queston,I would select the last Orders and i would see this orders open time,

What is this function in OrderSelect()?


Thanks

 
That means it is selected (active) and you can operate with the selected, if it is not selected "nowhere can be passed command" OR even in worse case, you can get wrong data from some of the previous selected Order (if any).
You have to select the wanted Order with OrderSelect( ...parameters... ); Than to do something what you want with data in that order, close or modify the order.