Need help with EA based on indicator
-
Because there are different conditions based on the same indicator. If the 3 are joined then we enter position.
-
@facto But what's the point ion using twice the exact same condition? You can get the same result with one block only instead.
-
@l-andorrà conditions are differents but with the same indicator that's why I use it 3 times. Is there another way to do it?
-
am having problem attaching my file to chat
-
About my project or another one?
-
@facto Then I'm afraid I don't fully understand. Are you maybe using three condition blocks just to illustrate the bot will need three different conditions to be met?
-
@l-andorrà yes the EA will open buy or sell position if the three conditions are met. But I don't know how to integrate this indicator and these conditions in my EA which is based on this indicator. Later I want to add another indicator to my strategy but I will make another topic if necessary.
-
In that case your logic in your first link was correct. If it doesn't work, the problem can be: a) the indicator is not correctly identified by fxDreema or b) your conditions are too restrictive to be met at the same time on the chart.
-
For block 2 in fact the condition should be on "KT" and not "SX" I was mistaken.
I was also thinking that maybe I had some mistakes because the syntax is not good. How to identify it correctly by fxdreema? -
Hi, someone could help please ? Thanks in advance
-
You can try the following. Use three blocks only to check if they work separately:
- No trade on top.
- One only 'indicator is visible' block in the middle.
- A 'buy/sell now' block.
Try all three indicator blocks separately. If they open trades separately, the problem is the combination of those as I suggested.
-
Hello, I tried but every time it doesn't work, I think there is an error in the syntax and variables but I don't have the MQ4 file so I go blind...
-
Then the problem is clearly on the indicator. They are not accepted by fxDreema. You should try to find a new one or hiring a programmer to modify it in a way that makes it compatible to fxDreema.
-
@l-andorrà thanks for your help.
Which block should I choose to open a buy or sell position only if all conditions are met on several defined timeframes please ?Here is my project :
https://fxdreema.com/shared/NyKKrQSkeThanks
-
What you did is correct. However, you need to be very careful when selecting the variable type for that 'Timeframe' constant. It needs to be of an 'ENUM' type.
-
I juste have to change type to ENUM, that's all ? And I have to use this variable aflter like here :

? -
I have no more errors in my code but I have no idea if the positions respect the conditions to be taken:
- all Ichimoku conditions are met,
- the positions are taken only if Ichimoku conditions are met on ALL the defined timeframes.
Could you please take a look at it ?
Link to project :
https://fxdreema.com/shared/6PSMEuorbThanks in advance
-
I guess your conditions are very restrictive. Are you sure all of them can happen on the chart at the same time? I recommend to try them one by one instead of all of three at the same time just to check if that is the problem.
-
Yes, this is possible, but you have to be reactive and the opportunity doesn't come along very often.
If at least 2 conditions are met on all the timeframes defined at the same time or within a few seconds, that would also be fine for me but I can't manage to set that up... -
Then you need to decide what scenarios are you ready to accept before moving on. Try One condition only and check how many open trades you get. Then combine that same condition to another one and look at how many are open now. Then add all of three. That way you will find which option is the one limiting your trades. That one can probably be the you need to remove.