Start tradding after x daily bars

 

Hi there,


I really need your help with a sample code routine that allows me (perhaps there will be more than one routine):

- Start trading after a specific number of bars when opens a new day. When a new trading session opens, it must wait for a specific number of bars before open new trades.

- Do not open new trades at specific time. For instance, only open trades until 6PM GMT after that, does not allow new positions.


I need this code in order to try to identify when new market is flat or trending.


Please, since I am new to mql programming, if possible send me detailed code samples.


Thank you very much


Regards


Paulo

Reason: