What is Date what is BOTime. What are the parameters of the indicator and what are you passing in the Icustom.
WHRoeder:
What is Date what is BOTime. What are the parameters of the indicator and what are you passing in the Icustom.
What is Date what is BOTime. What are the parameters of the indicator and what are you passing in the Icustom.
Date is a datetime variable and BOTime is a string variable,
i use this to calculate the expiry date of pending orders, the value returned is correct.
These are the ext variables from the indicator, I made this indicator
based on the panca-eagle breakout indicator.
i copied them all to the EA.
extern int NumberOfDays = 50; extern string BoxEnd = "09:00:00"; extern string BoxBegin = "06:30:00"; extern int BreakOut_Offset = 10; extern color HLColor = LightGreen; extern color BreakOutColor = DarkViolet;And below is the iCustom function call
high = NormalizeDouble(iCustom(Symbol(), Period(), "lmyyyks", NumberOfDays, BoxEnd, BoxBegin, BreakOut_Offset, HLColor, BreakOutColor, 0,1), Digits); low = NormalizeDouble(iCustom(Symbol(), Period(), "lmyyyks", NumberOfDays, BoxEnd, BoxBegin, BreakOut_Offset, HLColor, BreakOutColor, 1,1), Digits);
Date is a datetime variable and BOTime is a string variable,
But what do they contain.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
the indicator alone runs properly,
however, when i call the custom indicator function in the EA and backtest it
an error occur for my indicator: "invalid integer number as parameter 1 for TimeToNumber function"
the following is the only structure in both my indicator and EA which the code TimeToStr is used
Thanks a lot
lmyyyks