How to allow 2 conditions at the same time?
-
lets say I have 2 conditions but I dont know which one will happen 1st. And the 2nd condition needs the 1st to pass before activation, so I thought putting the connection block "AND" will allow EA to check both conditions at the same time......I dont know if it works that way though, does anyone have suggestions?
-
The "AND" function does do that (read the description)
-
@tashab You need to use variables to get what you want. When the first condition has happened, then a boolean variable can be 'true' for example. The you require this condition as 'conditioning' the second one later.
-
Hello, I have almost the same problem
In my bot, I need to apply 2 conditions
Normally, both conditions would happen at the same time to pass the block.
But I need a situation where the second condition happens several candles later and not the same candle that activated the first condition.
for example,
After the stock crosses the block from 20 upwards, then whenever and not exactly in the same candlestick of the first condition, the second condition occurs, it crosses the block (maybe two or three or four candles after the first condition, the second condition occurs). fall)
Normally, both conditions are simultaneous, with what block or method can I create a time interval or candle interval between the first and second conditions, -
My previous reply above is still valid for your case too.