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
You need to check the dimensionality of the array, it's most likely that a non-existent "cell" (or an existing but differently numbered cell) has been accessed there...
Arrays are indexed starting from 0, so when an array index is accessed without taking this feature into account, it often goes out of range...
Thanks, I've fixed that. But now in the tester the graph is a straight line, no error log and no entry:
2010.07.06 15:15:38 Core 1 Disconnected
2010.07.06 15:15:38 Core 1 Log file "C:\Program Files\MetaTrader 5\Tester\Agent-127.0.0.1-3000\logs\20100706.log" written
2010.07.06 15:15:38 Core 1 GBPUSD,M5: 107944 ticks (552 bars) generated within 97266 ms (total bars in history 108713)
2010.07.06 15:15:38 Core 1 OnTester result 0
Where do I look next.
Here is the answer to your application
Try slightly modified versions, everything matches
....
I've never seen one of these before
Why static? Is there a pitfall?Why static? Is there a pitfall?
I can't find where I got it from, but I must have copied it from someone's expert.
I don't know any pitfalls - static can be removed
I can't find where I got it from, but I must have copied it from someone's expert.
Don't know any stones - static can be removed
Thank you I have corrected that. But now in the tester the graph is a straight line, no error log and no entry:
2010.07.06 15:15:38 Core 1 Disconnected
2010.07.06.06 15:15:38 Core 1 Log file "C:\Program Files\MetaTrader 5\Tester\Agent-127.0.0.1-3000\logs\20100706.log" written
2010.07.06 15:15:38 Core 1 GBPUSD,M5: 107944 ticks (552 bars) generated within 97266 ms (total bars in history 108713)
2010.07.06 15:15:38 Core 1 OnTester result 0
Where do I look next.
Interesting:
Ну откуда я знаю что там и как, в вашем коде. Прогоните через дебагер (F5 в Эдиторе) и посмотрите, что и как там творится...
This is where I found the error:
Expression Close[] Epression coul not be evaluated
writes
Originally it was like this:
This is where I found the error:
Expression Close[] Epression coul not be evaluated
writes
Initially it was like this:
1. Look at the help for the CopyClose() function.
The function returns the amount of data copied into the array, not the closing price.
2. Are you looking at Close[] value in vtoche?
To developers, this question is as old as a mammoth - Is there an analogue of AccountFreeMarginMode() function that exists in MQL4 somewhere in MQL5? Or its result is not needed at all now?