wait after closing trade
-
Hi all,
i need a waiting logic after closing trade. For example: i am checking last 2 bar and after these bar i opened a trade. after this trade (if it has closed) i have to wait minimum 2 bar for new trade. Could you help me? regards.
-
@turelforex said in wait after closing trade:
try out the delay block
-
@fabien-s Well the trade can be closed at any time during the current candle. In the delay block you can just specify seconds. Hence one would need to calculate the seconds from now (when trade was closed) to the desired candle open time in the future. Right?
-
This setup puts a 2-bar wedge between trades:

-
@roar Hi. i put these block at the begining but it does not take any trade. than i put these at the end of blocks(just after sell buy block) but this time it does not worked. do you have any idea? https://fxdreema.com/shared/eMXEUQpte
-
@turelforex My solution is actually BS.. It checks for open time, not close time.
Here's some solutions for the delay:
https://fxdreema.com/forum/search?term=delay&in=titlesposts&sortBy=relevance&sortDirection=&showAs=posts -
@roar i think here is solution. it works

-
If I understand it correctly, once the sell pending ordered has been launched it will be active for 3 days. Is that correct?
-
@l-andorrà oh you are right. i made a mistake.
i will try other options.
actually my aim is to control the last closed trade or canceled pending order. than wait 2-3 bar (days) for new trade. -
@turelforex What about this approach? Untested but from my mind could be an approach.
I assume you have your entries conditions somewhere after 1 block ..
On the on trade tabe do the following:

On the on Timer tab do this ...

Not sure if on Timer tab is necessary.
Let me know if that works!
-
@trader-philipps Ups, after 144 should also go the turn off block for your entry conditions. Sorry I forgot that on my screenshot.
-
@trader-philipps thanks, i will try and inform you. regards
-
@trader-philipps sorry philips, i could not find "trade closed" and "order deleted" blocks. are there real name of blocks?
-
@turelforex said in wait after closing trade:
@trader-philipps sorry philips, i could not find "trade closed" and "order deleted" blocks. are there real name of blocks?
ok i found.
-
@trader-philipps it is OK. worked. But i have to run on demo platform. regards.
-
@trader-philipps it did not work for me, i tried many times. but i checked past Q&A and i found this (2017) : https://fxdreema.com/shared/KQXDpp3ad
worked perfect. but i could not find again who built this.
sorry for him/her but many many thanks for this. Regards. -
@turelforex It seems to be a design by mister stroker:
@stroker said in Every "n"bars issue.:
https://fxdreema.com/shared/KQXDpp3ad
Wow! It works!
Thanks again!
-