RSI condition to close trade
-
Hello Dreemas
I cant figure it out so please help me. The idea is very simple. The Rsi value need to reach 90 or higher first. after that if the value dorps to 70 or lower its close the trade

I tried this way but i doesnt seems very logic

thank you in advance
-
@william-1 said in RSI condition to close trade:
Hello Dreemas
I cant figure it out so please help me. The idea is very simple. The Rsi value need to reach 90 or higher first. after that if the value dorps to 70 or lower its close the trade

I tried this way but i doesnt seems very logic

thank you in advance
Logically all youve done said, ok...RSI X> 20, once it does that, it checks for RSI X<70, then it closes trades.
Will you open a trade? How often do you want to be able to open one? -
@william-1 Use a flag under your conditions, so when RSI X> 90 the flag is set to true, then when RSI X< 70 set flag back to false. above the close block check if flag = true so when RSI X< 70 trades are closed.
-
@tipsywisdom its use when its trade
-
@jstap thank for the tip for using flags
-
@william-1 Your welcome, if you want this in a comment so you can see what's happening use a bool variable.
-
@jstap I tried using flag but it wont trade. cloud you please look at it what i do wrong?

-
@william-1 what time frame are you gonna use aand run on? because you can also do a sequence of conditions for each candle ID. thats how i create divergence conditions
-
@william-1 Put a shared link here so what is happening can be assessed.
-
@jstap thank you for taking time. My project is this: https://fxdreema.com/shared/yLTmWs3Yc
-
@youngtreptrader. I do not understand it. Could you show a example what you mean?
-
@william-1 This https://fxdreema.com/shared/miLtEu1Td should show you how to connect blocks to do things you need, is using a variable so you can see what is happening in a comment.
-
@jstap Im kinda confuse cause I though I should use flag and the comment doesnt say much. Could you explain in words? ( im a noob)
-
@william-1 The bool variable is doing the same as flags but, it allows the result to be viewed in a comment. It just allows you to see if things are working as expected.