Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 787
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
Found a strange glitch when drawing on the MT5 chart: arrows instead of low candles are placed in arbitrary places, as if shifted to the chart
Found a strange glitch when drawing on the MT5 chart: arrows instead of low candles are placed in arbitrary places, as if shifted to the chart
1. The indicator ALREADY has a low array. It must be applied.
2. There is no need to run the visualization at maximum speed.
3. The code is terribly glitchy - because on every tick there is a pass through ALL BARs.
1. The indicator ALREADY has a low array. Apply it.
2. There is no need to run the visualisation at maximum speed.
3. The code is terribly glitchy - because on every tick there is a pass through ALL BARs.
1. The indicator ALREADY has a low array. Apply it.
2. There is no need to run the visualisation at maximum speed.
3. The code is terribly glitchy - because on every tick there is a pass through ALL the bars.
I didn't post the code here, but wrote the simplest one to simplify the parse.
Tell me more about what's wrong, about maximum speed is not clear.
Vitaly, initialization doesn't work for some reason. I tried writingPlotIndexSetDouble(0,PLOT_EMPTY_VALUE,0); it doesn't work either :(
I didn't post the code here, but wrote the simplest one to simplify the parse.
Tell me more about what's wrong, the maximum speed is unclear.
Start correcting it one step at a time. For example, fix it first:
The indicator already has a low array. You need to apply it.
iLow works as series true, Buf_0 is false, low[] is also false. I.e. the 0th element in your case gets rates_total-1 (mirrored)
You need to flip one of them, for example:
Found a strange glitch when drawing on the MT5 chart: arrows instead of low candles are placed in arbitrary places, as if shifted to the chart
Knowing the riddle about apples at Pinocchio's will definitely help with this problem. I do not remember it in detail, we will wait for someone to retell it without errors.
iLow works as series true, Buf_0 is false, low[] is also false. I.e. the 0th element in your case gets rates_total-1 (mirrored)
You need to flip one of them, for example:
This is an indicator! There are already arrays in OnCalculate.
Why should you cram iXXXX functions into an indicator?
This is an indicator! OnCalculate ALREADY has arrays
Why would you put iXXXXXX functions into an indicator?
How should I know? The questioner used iLow(), it means he needs it. Maybe it is easier to perceive, maybe he plans to address another symbol or timeframe through an input variable (I don't remember, is there a copyrates in fours?)
Added: the question on the five was asked in the quaternary thread. I overlooked it, I repent. But, the answer is still the same.