Show your code
#property copyright "2005-2014, MetaQuotes Software Corp."
#property link "http://www.mql4.com"
#resource "\\Indicators\\Market\\Trend Channels.ex4"
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
void OnTick(void)
{
double value;
value = iCustom(NULL, 0, "\\Indicators\\Market\\Trend Channels.ex4",MODE_MAIN,0);
Alert("value: " + value);
//---
}
I use default parameter.
MQL4: automated forex trading, strategy tester and custom indicators with MetaTrader
- www.mql4.com
MQL4: automated forex trading, strategy tester and custom indicators with MetaTrader
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
Hi all, I am a beginner here and new to EA.
I have a third party indicator and would like to make auto trading based on the signal. However, I am not sure how to get the value in EA.
From doc, I know there is function called iCustom to get indicator value but I always get 0 from the return.
https://docs.mql4.com/indicators/icustom