Add a new buffer to this custom indicator and pass those values to this buffer. Your EA then will be able to read that indicator buffer. If adding a new buffer is too much for this purpose, you can use GlobalVariableSet() and GlobalVariableGet() functions.
Documentation on MQL5: Global Variables of the Terminal / GlobalVariableGet
- www.mql5.com
Global Variables of the Terminal / GlobalVariableGet - Documentation on MQL5
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
Hello,
iam writing an EA and i use a custom indicator, that custom indicator script includes another file
#include <SignMod.mqh>
In that file is a function, called: int getSignal(int cVal);
Normally the indicator calls the function and works with return value from getSignal().
How can i use this return value in my EA script, because OrderSend does not work in indicators, correct?