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
Made the SL and TP move with buttons as conceived in the previous post. It works fine. I think it's better and more convenient than moving SL and TP by dragging additional objects like lines, arrows, etc. The step of movement can be changed the same way with buttons.
The current state of the left mouse button can now be monitored by theCHARTEVENT_MOUSE_MOVE event (parameter sparam).
Well, then do the same for cyclical order retrieval. The one that is active is selected to be changed. You can mark the selected one with some icon.
If there is more than one order in the market, then it is better to try dragging and dropping as it is done on a real chart. I just don't know yet how to associate cursor coordinates in pixels with points. I'll have to read the documentation. If you know where to read it, tell me, so I don't have to search for it.
https://docs.mql4.com/ru/chart_operations/chartxytotimeprice
,
https://docs.mql4.com/ru/chart_operations/chartxytotimeprice
Thank you, that's it.
Thank you, that's it.
If there are several orders in the market, then it would be better to try and do a drag and drop, like on a real chart. I just do not know yet how to associate cursor coordinates in pixels with points. I'll have to read the documentation. If you know where to read it, please give me a hint so I don't have to search for it.
Well, it's already been suggested...
In general, of course, you should not only look at mouse buttons, but also the Ctrl key. Then only when the Ctrl key is held will you be able to drag stops, otherwise there should be no reaction (just in case you might accidentally hit a line - you can't drag it behind the cursor).
Well, then do the same for cyclical order retrieval. The one that is active is selected to be changed. You can mark the selected one with some icon.
Bragging? )
Either show the code or close the thread.