Please help me
-
Hello friends
I ask my question with a simple example, suppose:
I want MA5 when MA20 crosses up (ma5 ×> ma20)
And then RSI crossed the number 30 upwards (RSI ×> 30)
Long position is activated for me.I can never know how long it will take for these two conditions to be established because I don't know the future of the market, maybe it will take as long as one candle, maybe two candles, maybe five candles, maybe ten candles
When I create blocks and bets, it asks for my candle ID. What should I do so that Candle ID is not mentioned and whenever the second condition is established, regardless of the time interval between the second condition and the first condition, Buy is activated.
-
Then you definitely need to use bool variables. When the first condition happens then variable A is true. Later, when condition 2 happens variable B is also true. Only when variables A and B are true, then a buy is open and both variables are moved to false again.
-
@l-andorrà said in Please help me:
Then you definitely need to use bool variables. When the first condition happens then variable A is true. Later, when condition 2 happens variable B is also true. Only when variables A and B are true, then a buy is open and both variables are moved to false again.
Thank you, problem solved with your help and guidance. Thank you for being there

-
isee you happy i hope my proplem fix it to i will add
2 like this
this my post https://fxdreema.com/forum/topic/17413/i-want-to-draw-a-line-at-the-top-and-bottom-with-a-difference-of-20-points/6 I've tried in every way