Thanks for the effort and reply. But unfortunately it didn't work. So I tried the hard way, I went for defining variables and formulas to capture the time and it did paid off after 8 hours reading searching and trying :))))
Best posts made by ZhAhZ
-
RE: Opening new trades with a time delay from current trade if conditions are metposted in Questions & Answers
-
Controlling the opening time of new trades while a trade is open (dodging "No position" block)posted in Tutorials by Users
Hey guys,
I had quite a hard time triggering my signals again while a trade was currently open, mainly because of "No position" block. The issue was that by using "No position" block I was missing all the other signals if I had a trade open. And not using it caused to open hundreds of new trades in a second!
Now, however, I have overcome this issue with a time formula and I believe I should share it as a thank you to all others who support in this forum free of charge.
You basically can adjust the period during which you don't want your signal trigger any trade (bypassing that hundreds trades in a second) and then after that your EA can freely search for new signals while your previous trade is still open.This looked easy in the beginning but since the way time works in the code, causes a lot of complications. I don't wanna go into that discussion now. So you can use the below link for your projects and only need to input the constant Delay-seconds based on your preferences. Just remember, regardless of timeframe you are trading in, the delay must be input in seconds. So if you just opened a new trade and you want no new trade during the next 3 candles in a 15 Min timeframe, simply put 2700 (= 60 * 15 * 3).
https://fxdreema.com/shared/RUqysmxQ
Good luck
-
RE: How to check if the last 30 candles are closed above moving average?posted in Questions & Answers
Thanks a lot guys, this forum is very supportive. Really appreciate that.
I didn't had the time to check your solutions, was busy developing a new idea which actually worked out and is very simple. The only drawback is that it won't work on the first X candle. Other than that pretty strait forward and easy, please check it, could be very useful for many different indicators:
-
RE: Triple exponential average oscillator cross over 0 not working at allposted in Questions & Answers
@jstap I think I just delete and install my MT5 again. I can't think of anything else....
Anyway thanks a loooot guys.
Latest posts made by ZhAhZ
-
RE: Controlling the opening time of new trades while a trade is open (dodging "No position" block)posted in Tutorials by Users
@tipsywisdom I believe once per bar may cause to lose the best entry position.
-
Controlling the opening time of new trades while a trade is open (dodging "No position" block)posted in Tutorials by Users
Hey guys,
I had quite a hard time triggering my signals again while a trade was currently open, mainly because of "No position" block. The issue was that by using "No position" block I was missing all the other signals if I had a trade open. And not using it caused to open hundreds of new trades in a second!
Now, however, I have overcome this issue with a time formula and I believe I should share it as a thank you to all others who support in this forum free of charge.
You basically can adjust the period during which you don't want your signal trigger any trade (bypassing that hundreds trades in a second) and then after that your EA can freely search for new signals while your previous trade is still open.This looked easy in the beginning but since the way time works in the code, causes a lot of complications. I don't wanna go into that discussion now. So you can use the below link for your projects and only need to input the constant Delay-seconds based on your preferences. Just remember, regardless of timeframe you are trading in, the delay must be input in seconds. So if you just opened a new trade and you want no new trade during the next 3 candles in a 15 Min timeframe, simply put 2700 (= 60 * 15 * 3).
https://fxdreema.com/shared/RUqysmxQ
Good luck
-
RE: Triple exponential average oscillator cross over 0 not working at allposted in Questions & Answers
@jstap I think I just delete and install my MT5 again. I can't think of anything else....
Anyway thanks a loooot guys. -
RE: Triple exponential average oscillator cross over 0 not working at allposted in Questions & Answers
@jstap there you go:
https://fxdreema.com/shared/mXNWafTib
By the way I really apricate your time guys, thanks for support
-
RE: Triple exponential average oscillator cross over 0 not working at allposted in Questions & Answers
@ambrogio @jstap guys, guys, I may not know how to solve the issue but I am also not that armature :))))
Of course I redefined the variable and also tried with SL and TP tp make sure nothing is hidden also checked trade history and journal but it just doesn't work. In addition tried different time frame, different time period and different currency but nope.Could be there something in the website as decimal count for calculations? this is my last guess that maybe calculation are done only to 3 decimal or less and that's why it never detect above or below 0
I can only think of something to be turned OFF or ON somewhere in setting of something!
-
RE: Triple exponential average oscillator cross over 0 not working at allposted in Questions & Answers
@jstap Just tested ambrogio project on a different broker terminal and same results, no trade:)))))))))
does it also works on your MT5?
-
RE: Triple exponential average oscillator cross over 0 not working at allposted in Questions & Answers
@jstap I did copy your project in a new project with no extra blocks and sent you the picture. I am frustrated at this moment, I even tried a simple MA cross over to make sure my MT5 is working properly and did worked with no issue. Also tried all the possible conditions for triggering the trade but it only works if I set it = 0. Any other case would just do nothing...
@ambrogio I have no idea then why it does not work for me cause I also exactly copy paste your project into a new file and tested.
-
RE: Triple exponential average oscillator cross over 0 not working at allposted in Questions & Answers
@ambrogio I tried this version too, but no trade is triggered.
-
RE: Triple exponential average oscillator cross over 0 not working at allposted in Questions & Answers
@jstap I tried your code and from the beginning to the end of the period (1 month, M1) the comment was like below picture. No change at all no matter the oscillator crossed above or below zero.

-
RE: Triple exponential average oscillator cross over 0 not working at allposted in Questions & Answers
@jstap I just did and the value is constantly 0.0, no change despite the fact that you can see the Oscillator moves above and below the 0.