iCustom Indicator parameters iCustom(NULL, 0, "MASi_MACDHist_TType", 12, 26, 9, 1, Not bool 1, Not bool string completely missing 1, not bool 1, : 1, : 0, : 0, : 1, : 1, : 1, not bool 9, 1);
input int FastEMA = 12; // Fast EMA Period input int SlowEMA = 26; // Slow EMA Period input int SignalEMA = 9; // Signal SMA Period input bool ON_MACD = true; // MACD line input bool ON_SIGNAL = true; // Signal line input string SECTION1 = "===== Divergence parameters =====" input bool ON_DIVER_HIST = true; // MACD Histogram divergence indicator input bool ON_DIVER_LINE = true; // MACD Line divergence indicator input bool ON_CLASSIC = true; // Search classical input bool ON_HIDDEN = false; // Search hidden input bool ON_EXPAND = false; // Search extended input bool ON_TREND_LINES = true; // Show trend lines input bool ON_DIVER_SYMBOL = true; // Show divergence indicator input bool ON_ALERT = true; // Show alerts
You should encapsulate your iCustom calls to make your code self-documenting.
Detailed explanation of iCustom - MQL4 programming forum 2017.05.23
iAlligator signal gone wrong - MQL4 programming forum #4.2 2017.06.15
take candle color hekin ashi - MQL4 and MetaTrader 4 #8-9 or #1 2018.02.21- AEne: Problem is whenever I go ahead and try to use the strategy tester to see some logic functioning, it just locks. It doesnt create any bars, nothing. Do you guys see any obvious problems?
We can't "see any obvious problems" because you haven't posted all your code.
How To Ask Questions The Smart Way. 2004
Be precise and informative about your problem -
Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your code for you?
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 guys,
I'm trying to code a simple EA to pick up a type of divergence from a custom indicator and need some help (new to mql4 programming, engineer in real life, so most likely just need some code snippets, as I'm most likely doing something wrong).
I'm using the iCustom function on the indi. Posting the declaration page underneath:
Then inside the EA I go ahead and use this :
Problem is whenever I go ahead and try to use the strategy tester to see some logic functioning, it just locks. It doesnt create any bars, nothing. Do you guys see any obvious problems?