After closing trade no trade on same day
-
I'm new to fxdreema and looking for a solution in my EA that ensures that after closing a trade NO new trade is entered for that day. I already looked into the Q&A for some proposed solutions like "for each closing trade", but none of them seem to work.
-
Hi
I don't understand your point
is it open only one trade per day if yes in this case your need to change from day to per tick -
No, it is not just one trade per day. The trade can be open for some days, but when the trade is closed on a certain day then there should be no other trade entered for that same day.
-
ok
did you start with NO TRADE ?
-
Yes, I start the EA with "No Trade"
-
Could you please share your project in order to understand your problem ?
-
Below my project. In the NO TRADE block I have conditions wrt Ichimoku indicators.
In the IF TRADE block you can see the indicator on when the trades are closed. Trades can be open for many days. What I would like to add here is a check that whenever a trade is closed on day X, no new trade should be opened for that day X.

-
You can try this (not tested):

Please note that I specify a 1 on the 'For each closed trade' block. That means only the last closed trade will be considered. Than you can specifiy how much time you want the variable at the bottom should be active. That variabke need to be used on top of your launching trades trees.
-
@l-andorrà Isn't it easier to set flags? Such as as bool flag to true if trade is closed and on each new daily candle set the bool frlag to true?
-
Thanks for the proposed solutions! I ultimately used setting and checking a boolean flag, which works perfectly!
-
@trader-philipps said in After closing trade no trade on same day:
@l-andorrà Isn't it easier to set flags? Such as as bool flag to true if trade is closed and on each new daily candle set the bool frlag to true?
I meant that after trade is closed set the bool flag to false and set to true on next daily candle.
-
Yes, probably flags should be easier to manage in this case.
-
Hi @BHovens and @trader-philipps,
-
Were you referring to this one?

-
If it's not such a hassle, could you kindly provide an example of how you used it?
-
Did you connect it to "Check age" block?
-

-
-
Hi!
I´m making a simple robot with SAR. The conditions are:
-When SAR < Candle = buyWhen SAR > Candle = sell
But the problem is that when the transaction closes (TP, SL or Manually), another trade opens again. I want to open ONCE for each condition. I want that when closed wait for a new different condition (the opposite condition).How can I do?
Thanks.
-
Please stop spamming old threads with your request.