EA based on MACD lines and RSI levels
-
Hello, I would like to create a strategy that takes long or short positions based on the crossing of the MACD lines upwards and downwards and RSI level but my strategy only takes one trade on the entire backtest and I don't know why. Could you please help me ?
I would also like to be able to configure the RSI to only open positions between levels 30 to 80
Here is the project : https://fxdreema.com/shared/2X3qXeiJb
Thanks for your help
-
Some hints:
- You can remove those 'AND' blocks. They are redundant.
- Connect block 7 to block 1's orange output dot, not the yellow one.
- You are requesting the bot fond for both conditions ho happen at the exact same time. This is why you get so few trades.
-
Hello,
Thank you for your reply. So I understand the 1 and 2 but not the 3. Could you clarify please?I forgot to mention it but I'd like the default setting on my strategy MACD to be 21, 42, 21 et not the standard 12, 26, 9. How to implement that please?
Regards
-
@facto When you are connecting one block to the next one, you are making the bot to execute those conditions one immediately after the other. If they need to be executed in different moments in time, they need to be executed in separate block trees, not in the same one as they are now.
If you need to use different setting on your indicators you can manually type the new values on the appropriate condition block or create some constants to use them as input parameters as is explained here.