Multi time frame candle
Forums › ProRealTime English forum › ProBuilder support › Multi time frame candle
- This topic has 7 replies, 2 voices, and was last updated 2 months ago by robert123.
-
-
09/04/2024 at 1:34 PM #23707609/04/2024 at 6:01 PM #237099
Hi Robert,
Here’s an example of how to create a multi-timeframe candle chart in real-time without waiting for the candle to close. The code accesses the 1-hour candle data and draws it live on the chart:
12345678910111213141516171819timeframe(1h) // 1-hour dataliveHigh = highliveLow = lowliveOpen = openliveClose = closeif liveClose > liveOpen thenr = 255g = 255b = 255elser = 255g = 0b = 0endifdrawcandle(liveOpen, liveHigh, liveLow, liveClose) coloured(r, g, b)returnThis code draws the live candle with color adjustments based on whether it’s bullish or bearish. You can modify it to fit your needs.
09/04/2024 at 8:51 PM #23710609/05/2024 at 8:24 AM #23711209/05/2024 at 9:22 AM #23711509/05/2024 at 9:50 AM #237120Maybe you are looking for this: https://www.prorealcode.com/topic/vela-de-1-hora-y-dentro-las-5-de-15-minutos/
09/05/2024 at 10:27 AM #23712609/05/2024 at 11:15 AM #237131Hi Ivan,
This is the code I meant(bottom of page), however, it doesn’t update the current bar, is there any way of getting it to do so? https://www.prorealcode.com/topic/show-5-minute-candlestick-in-1-minute-chart/page/2/
R
-
AuthorPosts
Find exclusive trading pro-tools on