
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
alexjou, I looked at the help and found:
"The extern memory class defines an external variable. The extern modifier is specified before the data type. Extern variables define the input parameters of a program, they are accessible from the program properties window. Arrays cannot act as external variables. "
Here is all code of custom indicator.
As external variables of the EA I set
In the tester, this pair works. What may be the error here?I'll tell you this: I just responded first, others came to see the answer and did not add anything. So do not think that everyone here is so angry and do not want to share knowledge.
alexjou !
Did I understand you correctly??????????
In a multi-currency EA when calling the iCustom indicator for a specific symbol, it is better to provide the following in the indicator itself
extern string SymbolName = "USDJPY"; // default symbol
This is besides setting in the Expert Advisor :
iCustom("USDJPY", 60, ... for this pair!
But if I call this custom indicator for one more pair with other external parameters, it means that for this other pair I must enter a copy of the custom indicator with another name and set the symbol of another pair there too!
But then it really is easier to calculate iMAOnArray inside the Expert Advisor by yourself without any custom indukes!
Thank you for the explanations! I'll get right on it...
klerk, I'm having trouble with my email at the weekends.
Here's my email address for the advisor.
rid200549@ya.ru
klerk, please confirm here or in the mail if you have received my message.
And another question for the experts (sorry if it's too silly):
In multicurrency Expert Advisor -
And in the trailing curves of each pair, do you also have to enter and substitute these values?
or can it be left as it is?And in the trailing pairs, do these values need to be entered and replaced as well?