I made some research, i know there is copyclose, but i don't know how to use it, and there is no free manual out there.
i tried it but i didn't understood the examples, so how can i set:
close [ i ] for MT5? i only need that, i'll copy open, time, low, high, but i just need you to show me this, please
Migrating from MQL4 to MQL5
3. Predefined Variables
MQL4 MQL5 Description double Close[]
double Close[]; int count; // number of elements to copy ArraySetAsSeries(Close,true); CopyClose(_Symbol,_Period,0,count,Close);Close
Series array that contains close prices for each bar of the current chart.
CopyClose, ArraySetAsSeries
ok, but what star_pos mean? what count mean? i tried to put CopyClose (NULL,5,0,0,i) and it didn't worked. That is the problem, they don't explain what all those pieces mean
However, why are you using OnTimer() when the close[] values are already available to you in the OnCalculate() even handler (and in a similar way to MT4)?
i need it to update based on time, not incoming ticks, so could you show me how to code close [ i ] on mt5? just show me the code, and i'll try to understand
Why do you need to use a Timer. If there are no new ticks, there is nothing new to output!
Besides, I have already shown you, with 4 lines of basic code. If you don't understand it, then you need to learn the basics first.
The documentation already answers those questions. I repeat, if you don't understand it then you need to learn the basics first:
English | Português |
---|---|
Parameters
| Parâmetros
|
I can code for mql4 but no mql5, because THERE IS NO BOOK OUT THERE, and it's easy if you study programming in college, but i didn't, i just need 1 example of Close [ 1 ] code, simple, i don't want you to code for me, but show me some examples, that's the purpose of this forum
i think both of you guy are not here for helping anyone, but just to make an appearance to get some jobs on freelance, i don't need that, because i'm a real trader
You don't understand, once again. Fernando and I helped and will continue to help a lot of people (seems you can't even see that).
It's about you. I am trying to disgust you to just come here, as I am tired to read all your stupidities. I hope it's clear enough, you are not welcome.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I made some research, i know there is copyclose, but i don't know how to use it, and there is no free manual out there.