What is your problem? Errorcode? ..?
Sorry but my crystal ball has a crack. :(
Buf1=iClose("EURUSD",0,i); Buf2=iClose("GBPUSD",0,i); Buf_0[i]=Buf1/Buf2; // Value of 0 buffer on i bar Buf_1[i]=iClose("GBPUSD",0,i); // Value of 1st buffer on i bar(EUR/USD) / (GBP/USD) = EUR/GBP. Are you expecting the GBP/USD to be close?
Thanks for answer,
Why indicator can't run with Buf_0[i]=Buf1/Buf2;
When I try degug the MT4 close!
ndbd79: Why indicator can't run with Buf_0[i]=Buf1/Buf2;
When I try degug the MT4 close! |
|
|
|
I want to ask : why I can't divide double/double!
My code did puplic.
Screenshot mt4 indicator. It's empty!
It can divide double by double, but it can't divide "double / ZERO". The reason you are getting a ZERO for the divisor, is because your indicator is a multi-currency indicator and you must certify that the data is available at the time it runs and there is a delay for the terminal to get the other data.
There are many complications when coding a multiple currency indicator, so please read the following thread completely for more information (that is EVERY post from beginning to the end, don't skip any posts).
PS! Please note that dividing "EURUSD" by "GBPUSD" is the same as "EURGBP". So just read the symbol "EURGBP" directly instead of dividing the two symbols!
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi all,
I have a problem with code:
Indicator can't load!
Help me!
Thanks!