It's hard for me to follow your thoughts - I don't understand at all what you are doing that you don't like? What is not working for you?
Remember - this is a technical forum: Your task is to describe the task in detail so that everyone can reproduce it.
Therefore, I insist that the example consists of a single file with very short logic.
Understand: no one wants to poke around in a thousand lines of code.
I understand, apologies. I was trying to say that the indicators on the chart do not match my logic.
There were a number of things that went wrong, so I went back to basics but there is something I still cannot get right. I fixed a number of things myself but I'll just paste the very short code below which I'm struggling with.
Describing an example what I want to do but what does not appear to be happening:
Indicators X,Y,Z all looking for different things.
I want to wait for indicator X to be true before I check for Indicator Y and Z to be true. X, Y and Z may not happen at the same time
If X, Y and Z are not true within/equal to 5 bars, reset everything. If X, Y and Z are true within/equal to 5 bars, this generates a buy.
Start looking for X to be true again and try the procedure above again.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
It's hard for me to follow your thoughts - I don't understand at all what you are doing that you don't like? What is not working for you?
Remember - this is a technical forum: Your task is to describe the task in detail so that everyone can reproduce it.
Start with the basics: first learn how to receive indicator signals - an example is here.
Code 'iCustom AMA smoothed RSI (fl) value on chart.mq5'