Drawing lines on the price levels ?
-
i am looking for a way to draw horizontal lines on the price levels
meaning 50 lines above the current price and then 50 line below the current price , i can do that but what i cant figure out is what if i want to draw lines only on the levels that are divisible by 10 ?
meaning levels like these : let say current price is 0.86225 now how do i make it place the lines above that price at 0.86230 ------ 0.86240 ------ 0.86250 ------ 0.86260 ------ 0.86270 ------ 0.86280 ------ 0.86290 ------ 0.86300 ...... .... ... .. .
and then the lines below the current price at: 0.86220 ------ 0.86210 ------ 0.86200 ------ 0.86190 0.86180 ------ 0.86170 ------ 0.86160 ------ 0.86150 ------ 0.86140 ....... ..... .... ... .. . -
someone please help
-
@zackry If I understand it correctly you already know how to draw lines. What you are asking for is how to calculate those price levels, right?
-
@l-andorrà yes correct , what i wanna do is make sort of a grid by placing horizontal lines every one pip but on the round numbers (last two digits)
-
@zackry Sounds interesting. Not sure if a grid like that is possible without some custom code, though.
-
@l-andorrà yeah sure a little bit of custom code is always dope
and i have added some code according to my understanding (only MathCeil(); function )
here is what i have done so far :
https://fxdreema.com/shared/XBrXfjEIcand by the looks of it , its working fine to some extent , the only issue with this ea is that it misses some of the levels after placing lines on few levels , so let say it places lines on 3 levels then it will skip the 4th level and place line at 5th level then it will repeat the same after few levels again
-
anybody around?? desperately waiting for help

-
@zackry Are miro and roar on holidays maybe?

-
@l-andorrà Looks like they are

-
@zackry maybe have you solved?