Am I right to understand that I should declare static array ofMqlRates type with one item and then call functionCopyRates by third option (from those, which are listed in documentation), specifying parametersstart_time andstop_time equal to opening time of needed bar?
Do I understand correctly, that it's enough to declare static array ofMqlRates type with one item and then call functionCopyRates by the third option (from those listed in documentation), specifying parametersstart_time andstop_time equal to opening time of required bar?
The second option: time and number of bars (1 bar). You have the bar time. And you only need to copy one bar.
I would like to ask for help increating an indicator, and if at all it is possible to create one that would do the following:
- After the price crosses a vertical level, it would colour part of the background a different colour. The width of the oras is equal to the candle's width and the height dependson the horizontal levels set earlier. -
I would like to ask for help increating an indicator, and if it is at all possible to create one that would do the following:
- After the price crosses a vertical level, it would colour part of the background a different colour. The width of the oras is equal to the candle's width and the height dependson the horizontal levels set earlier. -
I am attaching a picture with an example.
Thanks in advance.
Need help with what exactly? Write for you? Then freelance help you. If you write yourself, but you can't do it - put out what you have - we'll see/think/advise you.
Artyom Trishkin: What do you need help with? Write for you? Then freelancing is your best bet. If you write yourself, but do not work - lay out what you have - see / think / advise.
I'm just getting into the Mql4 area
And as a newbie, my first and most important question is: "Is it possible to implement what I described earlier into the program? ".
It seems to me, as a beginner, that this task is simple, but it's not a fact.
I've seen in CodeBase that a lot of free indicators were posted.
Therefore, if the answer to the first question is "YES", then the second question: "Does somebody knows an indicator, that meets my requirement"?
Well, if not, then tell me where to start when writing this indicator. I am familiar with Mql4 theory but nevertheless I'm still not sure where to start.
And as a newbie, my first and most important question is: "Is it possible to implement what I described earlier into the program? ".
It seems to me, as a beginner, that this task is simple, but it's not a fact.
I've seen in CodeBase that a lot of free indicators were posted.
Therefore, if the answer to the first question is "YES", then the second question: "Does somebody knows an indicator, that meets my requirement"?
Well, if not, then tell me where to start when writing this indicator. I am familiar with Mql4 theory but in spite of that, I still can't make it move and I don't know where to start.
I don't know where to start.
It is quite doable. Look for indicators that draw objects, load them into MetaEditor and F1 to help.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
CopyRates().
Alexey, thank you very much!
Am I right to understand that I should declare static array ofMqlRates type with one item and then call functionCopyRates by third option (from those, which are listed in documentation), specifying parametersstart_time andstop_time equal to opening time of needed bar?
Alexey, thank you very much!
Do I understand correctly, that it's enough to declare static array ofMqlRates type with one item and then call functionCopyRates by the third option (from those listed in documentation), specifying parametersstart_time andstop_time equal to opening time of required bar?
I would like to ask for help increating an indicator, and if at all it is possible to create one that would do the following:
- After the price crosses a vertical level, it would colour part of the background a different colour.
The width of the oras is equal to the candle's width and the height dependson the horizontal levels set earlier. -
I am attaching a picture with an example.
Thanks in advance.
*fromvertical levels*- from horizontal levels
You can edit a post, it's better than adding a new one.
I would like to ask for help increating an indicator, and if it is at all possible to create one that would do the following:
- After the price crosses a vertical level, it would colour part of the background a different colour.
The width of the oras is equal to the candle's width and the height dependson the horizontal levels set earlier. -
I am attaching a picture with an example.
Thanks in advance.
What do you need help with? Write for you? Then freelancing is your best bet. If you write yourself, but do not work - lay out what you have - see / think / advise.
It's quite doable. Look for indicators that draw objects, load them into the metaeditor and F1 to help.