Is it possible, to get data from function() in an include file from a indicator???
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
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?