(Another) Round number indicator

 

I came across this indicator from FF.

The problem is that it draws horizontal lines for every 100 pips. Can someone modify this so it draws lines at half the distance too?

Ex: for a linespace of 0.25, the indi plots lines at 1.315, 1.305 and so on. What i'd like the indi to do is to plot lines between these levels, ex: plot lines at 1.31 (besides 1.315 and 1.305).

Thanks.

Files:
roundnr.mq4  3 kb
 
jw1981:
I came across this indicator from FF.

The problem is that it draws horizontal lines for every 100 pips. Can someone modify this so it draws lines at half the distance too?

Ex: for a linespace of 0.25, the indi plots lines at 1.315, 1.305 and so on. What i'd like the indi to do is to plot lines between these levels, ex: plot lines at 1.31 (besides 1.315 and 1.305).

Thanks.

jw1981

take a look at the one posted here : https://www.mql5.com/en/forum/181296/page8

 
mladen:
jw1981 take a look at the one posted here : https://www.mql5.com/en/forum/181296/page8

Thanks for pointing me to the other indi. However, i wanted some modifications. Ex: In the indi I posted, I like the way the horizontal lines are plotted (with price highlighted on the right side of the chart). Is there a way to do this with the Price grid indicator? (instead of having price to be displayed as label within the chart space)??

I think there's some variable to be changed? I'm comparing both the indicators now to see how the hor. lines are being plotted.

 

Oh I got it. Had to change OBJ_TREND to OBJ_HLINE (when the IF case fails against the drawing of zones).

Cheers mate!!!