Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1581
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
ChartIndicatorAdd()
Thank you. It is only here that the EA displays the indicator which is not directly in the chart. I have a question about how to display the calculations of the EA itself.
Thank you. Only here, the EA displays the indicator not directly in the chart. I have a question how to display the calculations of the EA itself.
ObjectSetString - entering data
ObjectGetString - getting data
As an example, I have
Thank you. Only here, the EA displays the indicator not directly in the chart. I have a question on how to display the calculations of the EA itself.
Take a canvas (CCanvas) and draw. Translation of time and price to chart coordinates, using ChartTimePriceToXY.
On which timeframe?
М1
Greetings, I can't figure out why the SELECT_BY_TICKET selection does not work in this design, unlike SELECT_BY_POS.
thank you. But my question is not about that. It's about how to draw data from arrays, like from indicator buffers, if it' s possible.
ChartTimePriceToXY and you're done. Draw either points or lines or other primitives, or display arrows (Windings font) based on coordinates you get. CCanvashas all the methodsfor that. Just create a canvas that covers the whole screen and you can draw as you want. But at the same time you have to constantly redraw Kanvas in OnChartEvent(id: CHARTEVENT_CHART_CHANGE). All in all, you need to learn how to work with CCanvas first. But if you're new to programming, and you're too lazy to learn it all, then Freelance is your help.
Greetings! I can't understand why in this design the SELECT_BY_TICKET selection does not work, unlike SELECT_BY_POS.
BecauseSELECT_BY_TICKET select s the order by its ticket. And you select them in order (SELECT_BY_POS).To select orders by ticket, report the tickets to the OrderSelect function, not the indexes.
With CCanvas you can draw anything you want. Copy the time(with CopyTime) and array data (so that the cell in time array clearly matches the cell in your data array). Convert it into pixels with ChartTimePriceToXY and you're done. Draw either points or lines or other primitives, or display arrows (Windings font) based on coordinates you get. CCanvashas all the methodsfor that. Just create a canvas that covers the whole screen and you can draw as you want. But at the same time, the canvas has to be constantly redrawn in OnChartEvent(id: CHARTEVENT_CHART_CHANGE). All in all, you need to learn how to work with CCanvas first. But if you're new to programming, and you're too lazy to learn it all, then Freelance is your help.
thanks