WAIT TO PASS
-
Hey , Hope you all doing great !
I would like to know how to use the wait to pass option when you right click on a condition box. In simple terms I want a condition to happen only if the 1st condition is meet or has happened.
EXAMPLE: I want a trade to take place after the price has crossed Above the middle line of a Bollinger band but this trade should only happen if the moving average has already crossed above the middle line of a Bollinger band .
Thank you
-
@thedisliked You could just use candle ID 1, this would be the cross happened on the previous candle
-
@jstap this would not be looking at the the 1st indicator, whether the moving average had already crossed or not .
I hope you get i mean.
-
And please how can i specify the number of candles or range on the number of candles . so lets say the first criteria of the EA is meet and the 2nd criteria should happen within the specific number of bars other wise it should be ignored .
Thank you
-
@thedisliked You can get all of that with variables controlling when those events happened. Can you please share the link to your project?
-
@thedisliked Candle id references time something happened regardless of window, in HERE there is some examples on how to achieve this.
-

Basically this the EA, and all I need is for the trade to enter once the moving average has crossed below the upper Bollinger band. And in addition to that i would like to specify a number of bars or time if the moving average has not crossed in that specified time is should look for a new trade. I hope This makes sense .
Thank you
-
@thedisliked Then you need three separate block trees and not one as per your example. One to check when the crossing happend and then activate a true/false variable. Then a second one counting bars with a second variable and finally a third one launching the trade that should include both previous variables.
-
please can you send me an example of the variables to use. just the separate tree block in my case without any values that would be great.
Here is the link to my project( https://fxdreema.com/shared/sVI6QvM2)I Want the trade to only enter after the moving average has crossed.
cause am not familiar with other types of blocks and how to use them . Thank you
-
@thedisliked You had nearly done it, candle ID1 means cross happened on the previous candle

-
Thanks for the positive feedback , But in regards to the number of candles ( lets say if the moving average does not cross the Bollinger band in 1-15 candles after the price has crossed then the trade should not happen) i cant find what block to use in this regards . Thanks
-
@thedisliked This is when things start to get complicated, you could have something like candle is above BB, under MA crosses BB. Otherwise you need to use variables to record when a cross happens, reset this variable once no longer valid so, when the next cross happens it works like a trigger so trade activates, then likely reset the variable so conditions can happen again.
-
@jstap Thanks for explaining unfortunately am lost. what block or block tree should I use for it to determine the number of candles before it ignores a trade.
-
@thedisliked In HERE is a few options that will likely help.