Bashar wrote:
Dear Amine , how can I make IF statement says that if the duration between open time and close time for previous trade is a certain duration ( in seconds or minuets ) then an action will take place.
Hello
Here the example is attached.
First the strategy checks if any market position is created if not, the strategy open Buy.
Than on each tick it checks -- if difference between saved Buy position close time and creation time is bigger for 4 hours - if Yes, the strategy opens Sell market position. And allow to open Buy possition.