That sounds to me the best way to go. I know how to distinguish between the values of two different shifts in an indicator, but how do I do that with a variable based on the previous tick/bar?
Please be patient with this beginner programmer!
Actually, it may be better to use the BuySignal variable in a different way.
In this example, conditions are right for a signal when the RSI is below the 30 level and above it the next. A signal will be sent and then BuySignal set to false.
Another signal will not be sent until the RSI moves below the 30 level and above it again. Of course, in ranging periods this could be possible alternating bars.
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.
That sounds to me the best way to go. I know how to distinguish between the values of two different shifts in an indicator, but how do I do that with a variable based on the previous tick/bar?
Please be patient with this beginner programmer!
Actually, it may be better to use the BuySignal variable in a different way.
In this example, conditions are right for a signal when the RSI is below the 30 level and above it the next. A signal will be sent and then BuySignal set to false.
Another signal will not be sent until the RSI moves below the 30 level and above it again. Of course, in ranging periods this could be possible alternating bars.
I want to thank all of you for taking some time to give me assistance with this problem.
It is highly appreciated.