How to make EA open trade only when two conditions are met.
-
I created this bot. this is what I want to set;
after the the two conditions are met, from the last condition that was met, count from 1 to 30 candles, and in between this counts, if price crosses the ema from below, a buy order should be opened. If price didn't cross the ema after 30 candles, it should start checking for all the conditions again starting from the first onelink to the bot https://fxdreema.com/shared/P9Zw0clEb
-
All blocks need connected and in a row to buy/sell block
-
@jstap how do I count the 30 candles from the last condition that was met?
-
When the condition is met set variable to 0, then once per bar add 1, and check this in a condition
-
@jstap sorry sir, I still don’t get it. Can you help by showing how it’s done in the builder? Maybe providing a link to any project showing what you just explained
-
Like this: https://fxdreema.com/shared/A1HLYP5Dd
-
@jstap I made this ea base on macd divergence and the divergence btw two candles. But when i test the EA it only opens a position when the macd condition is met. It totally ignores the conditions for the divergence in candles ( fractal candles buy and sell area)
please help. Here's the link https://fxdreema.com/shared/3xBdm4tjd