Hide currently active candle
Forums › ProRealTime English forum › ProBuilder support › Hide currently active candle
- This topic has 11 replies, 3 voices, and was last updated 11 months ago by robertogozzi.
Tagged: drawcandle
-
-
03/03/2019 at 11:52 AM #92745
Is there a way to hide the currently active candle? I only want to see completed candle formations so for instance on a 30 minute chart I don’t care for where price is at or what the currently forming candle looks like. The most current price is too distracting so I only want to act on the completed structure and not randomly flapping distraction at the end of the chart.
Thanks.
03/03/2019 at 12:23 PM #92746Body Candle12345678910111213141516// Body Candle | Indicator// 09/02/2019 (Release 1.0)// Swapping @ www.forexswap.fr// Sharing ProRealTime knowledge (alt+16)// --- property setting//Alpha = 255 (body transparency)// --- endif open > close thenDrawCandle(high,open,close,low) coloured(250,0,0,alpha) bordercolor(0,0,0) // Candle RedelseDrawCandle(high,open,close,low) coloured(0,250,0,alpha) bordercolor(0,0,0) // Candle GreenendifreturnHello Grantx
Yes, here is a code that answers your request
03/03/2019 at 12:36 PM #92749Setting Alpha to 0, the 4th (optional) colour parameter called fade or transparency, will make objects invisible.
You can use it also for background colours.
03/03/2019 at 12:41 PM #92750You also need to add
1DEFPARAM DrawOnLastBarOnly=trueto make previous candles visible.
11/13/2023 at 5:26 PM #223661Hi Roberto
This code for making current candle completely invisible does not seem to work. I have a dark background. Would you be able to post a full code that can achieve this. Only current candle invisible, rest of the candles show
thanks
PJ
11/13/2023 at 5:55 PM #223667This was intended for the current candle only.
To apply it to the whole chart, simply remove the line DEFPARAM DrawOnLastBarOnly=true.
11/13/2023 at 6:47 PM #223673removing the line DEFPARAM DrawOnLastBarOnly=true. fades the entire chart – border colour still. But I want the current candle to be invisible and to show all closed candles.
When i hide price, everything is gone. When i dont, nothing happens. Could you please try in your end. Just the current bar needs to go rest can remain
11/13/2023 at 10:18 PM #22367911/14/2023 at 6:58 AM #22368211/14/2023 at 7:09 AM #22368311/14/2023 at 10:21 AM #22368811/15/2023 at 5:05 PM #223740This code:
123DEFPARAM DrawOnLastBarOnly = trueDrawCandle(high,high,low,low) coloured(0,0,0,255)returnwill make your chart as #3 (in my pic).
-
AuthorPosts
Find exclusive trading pro-tools on