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'm a bit dull here. There is an indicator that outputs MA of different instruments in one window.
Here are its external parameters (1st instr. =0th buffer, 2nd instr. =1st buffer):
How do I write the challenge in the EA? Is this the right way?
I put these values in the comment window (to be more exact - their difference) and found out that in my visual chart the comment values do not coincide with the values of indicator I drew in the visual chart. It is the same, though the parameters are the same.
I cannot understand why it is so. They are by more than one order of magnitude different...
All parameters in icustome should be the same :-) otherwise you call 2 different indicators.
In your case:
forex-k вы не моглибы ещё написать индюк по кореляциям такойже как для EURO и SWISS FRANC, но только для фьючей AUSTRALIAN DOLLAR и NEW ZEALAND DOLLAR, хорошая кореляция и далико от друг дружка не уходят
why write it - it's a versatile tool, you just need to prescribe the right tools in the settings and that's it
Все параметры в icustome должны быть одинаковые :-) а то тыж 2 разных индикатора вызываешь.
В твоем случае:
I guess so :
double Complex_1_1=iCustom( NULL,0, "C_Com",Symbol_1,Symbol_2,N1,N2,MA_per,0,1);
double Complex_2_1=iCustom( NULL,0, "C_Com",Symbol_1,Symbol_2,N1,N2,MA_per,1,1);
It doesn't work either. After all, the variables Symbol_1,Symbol_2 are set in the parameters of the indicator and advisor - as an extern string, and this kind of iCustom probably can't be set....
I'm afraid there's no way around it at all...
There is no any information about restrictions. And I kind of did it once. What does it say?
It doesn't write anything. It returns zeros.
And here is how
double Complex_1_1=iCustom( NULL,0, "C_Com",N1,N2,MA_per,0,1);
double Complex_2_1=iCustom( NULL,0, "C_Com",N1,N2,MA_per,1,1);
works. But the numbers in Comment(Complex_1_1,"\n",Complex_2_1,"\r\n");
are not the same as the indyuk itself on the visual chart by a factor of ten.