Drawing with mouse button

To add comments, please log in or register
Roman Sharanov
652
Roman Sharanov  

Hi everyone, apologize for propably bad english.

Can anyone give me advise, where should I read about the interaction between chart and mouse.

Heres exactly what I need,for example: some kind of button on the chart. So when I click it, it's becomes possible to put 4 "dots" with mouse click, and after that these 4 dots are connecting together in to quadrangle.

Also, the coordinates (Time, Price) of the dots are used in some calculations, so I need them...Any suggestions?

Thx anyway

William Roeder
19647
William Roeder  
  1. Look at my GUI. It tracks the mouse and places the line there when b or s is pressed.
              Indicators: 'Money Manager Graphic Tool' indicator by 'takycard' Forum - Page 5

  2. Perhaps you should read the manual. What part of "CHARTEVENT_CLICK" is unclear?
              EventChartCustom - Working with Events - MQL4 Reference

  3. Why don't you just draw a rectangle?
nicholi shen
2391
nicholi shen  
RomanRott:

Hi everyone, apologize for propably bad english.

Can anyone give me advise, where should I read about the interaction between chart and mouse.

Heres exactly what I need,for example: some kind of button on the chart. So when I click it, it's becomes possible to put 4 "dots" with mouse click, and after that these 4 dots are connecting together in to quadrangle.

Also, the coordinates (Time, Price) of the dots are used in some calculations, so I need them...Any suggestions?

Thx anyway


...seemed like a fun little warm up exercise. 

Files:
Anthony Garot
3497
Anthony Garot  
nicholishen:

...seemed like a fun little warm up exercise. 

Neat indicator!

I tried to draw a face.

Files:
face.png 16 kb
nicholi shen
2391
nicholi shen  
Anthony Garot:

Neat indicator!

I tried to draw a face.

Haha, nice! 
Alain Verleyen
38855
Alain Verleyen  
whroeder1:
  1. ...
  2. ...
  3. Why don't you just draw a rectangle?
Because he wants a quadrangle or quadrilateral maybe ?
Roman Sharanov
652
Roman Sharanov  
nicholishen:

...seemed like a fun little warm up exercise. 


That's close to what I need, but I didnt understand anything in code =(

nicholi shen
2391
nicholi shen  
RomanRott:

That's close to what I need, but I didnt understand anything in code =(

Sorry :(
Taras Slobodyanik
37506
Taras Slobodyanik  

Recently, this topic has been on the Russian-speaking forum.

https://www.mql5.com/ru/forum/221877/page4#comment_6172615

Рисовать кривую на графике
Рисовать кривую на графике
  • 2017.12.07
  • www.mql5.com
На графике можно рисовать только прямую линию. С помощью какого индикатора можно нарисовать кривую...
William Roeder
19647
William Roeder  
RomanRott: That's close to what I need, but I didnt understand anything in code =(
You have only four choices: We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using SRC) and the nature of your problem.
          No free help
          urgent help.
To add comments, please log in or register