I'd like to code an alert to be fired when price bar crosses an existing into the chart indicator, ie MA added through menu Insert -> Indicators -> Trend -> Moving Average and is visible into the Indicator List (Ctrl+I)
Thus added MS is visible on chart but how could I found its current value throu the script.
I know I could calculate it in the script, but I'd like to use the existing value because for some reasons user might change MA values (price, per, etc). in this case the script have to be re-compiled if MA is calculated in the code.
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.
I'd like to code an alert to be fired when price bar crosses an existing into the chart indicator, ie MA added through menu Insert -> Indicators -> Trend -> Moving Average and is visible into the Indicator List (Ctrl+I)
Thus added MS is visible on chart but how could I found its current value throu the script.
I know I could calculate it in the script, but I'd like to use the existing value because for some reasons user might change MA values (price, per, etc). in this case the script have to be re-compiled if MA is calculated in the code.
I hope the question is clear enough. Thank you
Ivo