2 conditions which don't work
-
Hello all,
Hope you are well! And your trading well!
I have a problem and I don't understand why it doesn't work.
Imagien the first condition is MACD (Base line x> Signal line on the last candle) and during a time between 1 and 20 candles, RSI as below 30, so I would like to open a buy order. But it doesn't. Look below!
Thanks for your help.
BAG

-
@bagheria you are seeking for 2 crosses to happen at the exact same time. It would work better if you had the first condition as above or below instead of cross. The 2nd condition of cross, will be initiation of the trade.
-
Hi,
Thank you. As this? The main goal is to say RSI crossed below 30 almost one time during the last 20 candles

-
@bagheria that logic says, if MACD main is over MACD signal, then every time the RSI value crosses below 30 over the last 20 candles, it will buy.
It will trade many times. You may want to limit it to once per bar, and I would do that just before 'buy now.' You could also start the tree with, If No position
Now if you wanted to say...if MACD main is over MACD signal, then for the next 20 candles I want to wait for the RSI to cross below 30, if it doesn't then reset the MACD signal....that's different.
-
In reality, I would like to tell that if MACD main is over MACD signal and for the past 20 candles almost one candle was below 30 (RSI) so you can buy
-
@bagheria try no position solution and once per bar, see which you like
-
Thanks a lot. We will see tomorrow!
-
oh wait, you already have once per bar. that may be enough.
-
Hi,
It works perfectly! Thank you so much!!