Download MetaTrader 5
To add comments, please log in or register
Do you know that MQL5 has event handling?
MetaQuotes Software Corp.
Moderator
177150
MetaQuotes Software Corp. 2009.09.10 06:39 

Horizontal Grid Lines on Chart:

The GRID10 indicator will draw a grid on a chart using grid lines positioned and separated at a convenient power of ten. The grid is constructed appropriate to the range of the symbol being plotted on the chart.

Author: Ron

slacktrader
388
slacktrader 2009.09.10 10:05  

Nice feature, should be implemented in terminal...

But the indicator is also OK. Much better as fixed grid.

MQL4 Comments
16309
MQL4 Comments 2009.09.10 11:33  

Useful thing

Zenoni
82
Zenoni 2009.09.10 14:30  
MQL4 Comments
16309
MQL4 Comments 2009.09.14 05:05  

Very nice. If you add grid lines at the 1/4 levels between it may be even more useful since the herd mentality play at those levels.

Ron
18
Ron 2009.09.19 23:14  

Hi and thank you all for your constructive comments.

I would agree that an auto-aligning grid feature would be a welcome addition to the terminal, maybe it will be in the future.

There is a very simple code mod to get the grid lines to appear at 1/4 step levels too; At the bottom of the code, near the end of the loop where the grid is constructed, change this line:

         gridPos += gridRes;

and divide the grid resolution by 4:

         gridPos += gridRes / 4.0;

Or, to get a line every 1/2 step, divide by 2.

MQL4 Comments
16309
MQL4 Comments 2011.05.24 17:23  

Thank you very much for this indicator, it was not excactly what i was looking for, but this really helps me!

kate682
147
kate682 2015.01.29 23:36  

Thank you very much for this, its perfect for me and so neat & tidy, combined with mt4's fixed scaling, I've found it invaluable.

Kate 

/
To add comments, please log in or register