Yes use this https://www.mql5.com/en/docs/globals
To write in the expert and read in the indicator.
Documentation on MQL5: Global Variables of the Terminal
- www.mql5.com
Global variables are kept in the client terminal for 4 weeks since the last access, then they will be deleted automatically. An access to a global variable is not only setting of a new value, but reading of the global variable value, as well.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
My EA has two prices stored in two double variables. I want to plot those two prices as horizontal lines and then plot a histogram in between them. I can only plot a histogram between two buffers in an indicator. The values exist only inside the EA.
How can I get the values from me EA into the Indicator to plot the histogram?
Thank you
Ray