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
minor corrections
Hi William,
I am having problems with this code.
I have made the minor corrections, It just keeps returning false. Never returns true. Am I doing something wrong?
Yes, expecting an answer! We can't see your broken code. There are no mind readers here and our crystal balls are cracked.;-)
Thank you for your reply, If we had the crystal ball we would not be trading :-)
I just copied and pasted the code from this form, but only returns Failed: 0
2019.05.14 20:27:19.063 TestIndicator USDJPY,M30: iTime(USDJPY,30) Failed: 0
Which does not make sense. If the Fail code is 0 then there is no error, I thought.
Here is the code, I hope you can see something I am doing wrong.
Yes, expecting an answer! We can't see your broken code. There are no mind readers here and our crystal balls are cracked.
Did you find anything wrong with the code?
Why are you using current? That will always be correct. It's purpose is to get other symbols/TFs.
2019.05.14 20:27:19.063 TestIndicator USDJPY,M30: iTime(USDJPY,30) Failed: 0
Which does not make sense. If the Fail code is 0 then there is no error, I thought.
Why are you using current? That will always be correct. It's purpose is to get other symbols/TFs.
Hello,
I have a problem strongly related with this thread. I want to read iHigh and iLow from D1 timeframe being on H1.
During testing my EA I added to chart my indicator. Indicator contain code posted belowe.
When I try to read iHigh(NULL,PERIOD_D1,0) I have always the same value and the same amount of bars using this iBars(NULL,PERIOD_D1).
What can be still wrong?
I wonder how many EA have looked really well in Backtesting, only to generate incorrect trades on live/demo... How many custom MTF indicators out there are useless? Completely incorrect data is far more of a problem that repainting ever was!
The fact that ERR 4066 will fail silent on subsequent attempts is a coding nightmare.
From Williams Post 155707:
* Note: you _only_ get 4066 once. Subsequent calls (\::ArrayCopyRates and * apparently \::ArrayCopySeries) silently succeed but the data is bogus * until the download completes. These calls should have been synchronous, * but then they couldn't be used in indicators.
Thanks to William & Alain for these efforts, starting back in post 155707. Your detail and efforts are massively appreciated.
Looking at the error does not help.
if(_LastError == 0 && other != 0){Print(other); return true;}
This will display past times for some pairs.