How do I calculate the time between 2 trades?
-
Hello. How can I do this; If the time between 2 trades in the same direction is less than 10 seconds, the second opened trade should be closed immediately. So how do I calculate the time between 2 trades?
-
please help me, thank you
-
get the time in seconds, check this above opening a trade.
-
@jstap How can I do this? Can you explain a little more?
-
When you open a trade save the time into a variable, above placing a trade check time now is >by chosen seconds
-
Can you show me how to do this on the fxdreema page?
-
Like this https://fxdreema.com/shared/tgu3vrrac
-
@jstap Thank you, but I still haven't figured out how to use this in the way I want. Because, as I said, if there are 2 trades open and the time between these trades is less than 10 seconds, for example, one of the trades should be closed immediately, but if the time between these 2 trades is more than 10 seconds, no intervention should be made... This is what I want.
-
-
The principle is the same, record the time at each trade creation, then you can check this to do as you want.
-
@jstap not really the same, but if the solution works for you, its great!
-
The principle is, you have 2 times, do something with these times that achieve what you need.
-
@jstap Is that '+300' an arbitrary period in seconds?
-
Yes, it is seconds, so you would use a required number. (or a constant)
-
@jstap Got it, thanks.
-
@bk7 Thank you very much for your interest. If you don't mind, can you send the fxdreema code page for this?
