If, then, conditions for 2 indicators
-
Hello Everyone,
I am seeking assistance with configuring an Expert Advisor (EA) that utilizes two indicators: the MACD and the Stochastic. My objective is to set up the EA so that it opens a trade only when the following conditions are met:
- The MACD indicator crosses first.
then it waits - Subsequently, the Stochastic indicator crosses after.
I would greatly appreciate any help with arranging this setup, as I am currently unsure how to implement it.
I have attached a shared link to the project below.Thank you in advance for your support.
- The MACD indicator crosses first.
-
That is the builder page not your project: project page - projects - create a shared link - open in web - copy address bar and past here
You will need to setup a true/false flag so when MACD has done the first cross, the EA can correctly react to the stoc, you will need to set the flag back to false, and check when needed.
-
@jstap So sorry my mistake, i copied the wrong link
Here it is
https://fxdreema.com/shared/I9nyIZitb -
@jstap Im not that familiar with this. Do you mind helping me please. It would mean a lot
-
This won't do exactly what you wan't but it will show you how to use: https://fxdreema.com/shared/LSnVQO5ve
-
@jstap ok let me have a look. Thank you brother.
-
@Money-Fest
Hello, just change the symbol (X> for a > in stochastic) and it will start to work, although you still need a lot of work to make that structure a little more precise
-
@VHV-Profit-Masters Thanks for your input. I'll do so brother
-
@Money-Fest No need, my dear brother, I hope it helps you...