How to draw a DOT/Diamond/Line in the middle of a candle?
Forums › ProRealTime English forum › ProBuilder support › How to draw a DOT/Diamond/Line in the middle of a candle?
- This topic has 7 replies, 3 voices, and was last updated 7 years ago by rsi500.
-
-
08/15/2017 at 11:52 AM #4319908/15/2017 at 3:28 PM #43204
Should be something like this – untested:
123456789101112131415// if you only need for example the last 50 bars dotted, uncomment next line//DEFPARAM CalculateOnLastBars=50// the dot valuedotval=(high-low)/2// the red, green, blue values of RGB colourR=0G=0B=255// printing// instead of keyboards dot you can use "•" or "●"DRAWTEXT(".",barindex,dotval,Standard,Bold,12) coloured(R,G,B)RETURN08/15/2017 at 4:20 PM #43211Hi AVT, thank you very much for your code. It plots dots!
But unfortunately not at the middle of a candle.
it plots dots 🙂 below the price chart in a new “window”
and for some reasons not for every candle.
Anyone an idea how to get the dots up to the price chart “into” the candles?
PS: i replaced Line 13 “standart” by “serif” because of a syntax error message.
08/15/2017 at 4:35 PM #4321308/15/2017 at 9:20 PM #43223Sorry, my fault: the dotval in above is just calculating the middle of the candle range. One step more needed: substract the middle from candles high. So we would use this (tested now 🙂 )
dot in candles middle123456789101112131415161718// if you only need for example the last 50 bars dotted, uncomment next line//DEFPARAM CalculateOnLastBars=50// middle of candle rangemiddle=(high-low)/2// dot valuedotval=high-middle// the red, green, blue values of RGB colourR=0G=0B=255// printing// instead of keyboards dot you can use "•" or "●"DRAWTEXT("+",barindex,dotval,Dialog,Bold,12) coloured(R,G,B)RETURNto get it into your candles chart, use the gripper in that window and then add indicator.
Hope that’s ok now for you
08/15/2017 at 10:18 PM #4322508/16/2017 at 10:54 AM #4325108/17/2017 at 10:11 AM #43330 -
AuthorPosts
Find exclusive trading pro-tools on