Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 953

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
What's wrong with me? How can I make only open orders be considered? This code also captures partially closed orders, which I do not need
I have anOBJ_RECTANGLE object linked by price and time, not by coordinates.
И? That's correct. When you compress the timeline, the rectangle is also compressed. Is it logical? Are you struggling with logic?
Keep track of the shift in the graph.
И? That's right. When you shrink the timeline, the rectangle shrinks too. Is that logical? Are you struggling with logic?
Track the shift in the graph.
Please tell me which way to dig.
Please tell me which way to go.
You've quoted from my post exactly what I told you to do.
There are several types of objects that you can use for your purposes. What you are using now is definitely not the right one.
That leaves several options. And all of them are here, you just have to read and ask what you don't understand:
Please tell me which way to go.
The objects I have shown above and this:
The objects I showed above, and this:
I don't see an object to solve my problem, do you? Unless OBJ_TEXT supports a frame!?
I don't see an object to solve my problem, do you? Unless OBJ_TEXT if it supports the frame!?
Rectangle_label is what I need.
But I tried to translate Time, Price with ChartTimePriceToXY into coordinates. I was able to draw in the right place, but again, when scrolling the chart, it stands in place, which doesn't work for me.
It's the same story with BitMap, because it's attached by coordinates, which means all BitMaps will stand in place when scrolling the chart, it doesn't suit me.
Then overall question, is it possible to implement my idea I described above?
Rectangle_label is what I need.
But I tried to translate Time, Price with ChartTimePriceToXY into coordinates. I was able to draw in the right place, but again, when scrolling the chart, it stands in place, which doesn't work for me.
It's the same story with BitMap, because it's attached by coordinates, which means all BitMaps will stand in place when scrolling the chart, it doesn't suit me.
Then overall question, is it possible to implement my idea that I described above?
Yes.
I gave you the help link for OnChartEvent()
Hi all, I have a problem with lstrcpyW () on MT5,
lstrcpyW () defined in winbase.mqh:string lstrcpyW(ushort &string1[],const string string2);
this code copies string to clipboard, how do I change it to make it work