Can I take data from my EA and use it in an Indicator?
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.
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