- Volume is unreliable, you can miss ticks. Bars is unreliable (max bars on chart) always use time.
- Your indicator
extern string TimeFrame = "Current time frame"; extern double Phase = 0; extern int mode = 1;
The FIRST parameter is a STRING. Your iCustomdouble Adaptive1H_1_0 = iCustom (NULL, 60, "adaptive Gann High-Low activator jma Heiken Ashi arrows-1_2.0", 60, 0.0, 1, 4, 5, false, 1.0, false, true, true, false, false, true, "", false, White, 9, "", 0,1);
first parameter (after indicator name) is 60, not a string. Detailed explanation of iCustom - MQL4 forum - The indicator file name downloaded is "adaptive n Gann m High-Low s activator k jma o Heiken b Ashi arrows-1_2.0.mq4" (without the spaces.) That doesn't match name in the iCustom. Verify your actual file name.
- What are Function return values ? How do I use them ? - MQL4 forum
if (OrderProfit()==3000*Point)
OrderProfit is in account currency (Dollars) 3000*point is 0.3 or 0.03 Apples never equals oranges.
Doubles rarely compare equal - https://www.mql5.com/en/forum/137301 https://www.mql5.com/en/forum/136997/page2#593570 https://www.mql5.com/en/articles/1561
I changed 60 to string but this indicator in iCustom still returns different values than placed on chart. Is it a problem with my EA or indicator?
GreenPoint: in iCustom still returns different values than placed on chart. Is it a problem with my EA or indicator?
Are you comparing the iCustom values with the values of the indicator on the H1 chart?
Hi William,
Yes, you are correct I'm comparing the iCustom values with the values of the indicator on the H1 chart.
The idea of usage this indicator is to open order after first candle closed below or above line.
I have saved attachments that shows when trade should be opened and when EA opens.
Thanks
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,
I have created EA that should be trading based on the below rules. However something is wrong and I don’t know what.
1. Buy - Candle Close (2 shift) < Adaptive Gann High-Low activator && Candle Close (1 shift) > Adaptive Gann High-Low activator
2. Sell - Candle Close (2 shift) > Adaptive Gann High-Low activator && Candle Close (1 shift) < Adaptive Gann High-Low activator
Please be aware that Candle Close/Open is on M15 and Indicator is on H1.
Thanks in advance.