Time limit from last trade
-
Hi, I'm looking for a way to prevent the EA from making another trade if there was one before.
Now for an example: My EA is working on the H1 time frame and checking the conditions every round hour. Im trying to avoid opening a position after position.
lets say there was one trade at 09:00 and closed at 09:40. now I want the EA to NOT open a new trade at 10:00.
I guess I'm looking for a "cooling period" of at least an hour between trades...Thanks a lot !
-
The next question would be cyclical or not? If not, then you have to manually control each trade.
-
-
@shack11 do you want a cooling period after every trade the bot initializes? If you do, that's cyclical....like a cycle.
If its just for any trade, as you wish, then that is when you have to watch your trades and do it your self. -
@len-1 Thanks.
Yeah I want it to be cyclical then, after every trade that the bot initializes...Is there a way to do it ? cheers.
-
@shack11 This is the easiest 'cooling' period structure:
https://fxdreema.com/shared/uQiDJkvyc
You need to create a boolean variable (see block 3). Then you need to add a 'condition' block as per block 3 on top of your launching tree. Immediately after it you change the caondition into 'false' so that no new trades will be open while the coolin period is active.
-
@l-andorrà
Im not sure I got this, Is the "small tree" you did for me suppose to be connected to the my whole tree ? or it should be separated and I need to create another block to add to the top of my tree ? Thanks -
@shack11 Firstly let me say that I created that tree on the wrong tab. Please move it to the 'on Tick' tab. It should be separated from any other tree and the ID number on top of it should be higuer that the previous tres, especially the one launching the trades.
-

That's what I'm getting if I add your tree to the same tab as my tree. Yours has higher ID numbers ...
Should I add another block to "introduce" the boolean "active again" ?
-
@shack11 Can you please share your project?
-
-
@shack11 Copy block 16646 and connect it immediately below you 'No trade' block.
-
@l-andorrà
Still the same:

-
@shack11 Did you create that variable? Can you please show your variable list?