Multi time frame candle
- This topic has 7 replies, 2 voices, and was last updated 2 weeks ago by .
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
Similar topics:
Forums › ProRealTime English forum › ProBuilder support › Multi time frame candle
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:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
timeframe(1h) // 1-hour data liveHigh = high liveLow = low liveOpen = open liveClose = close if liveClose > liveOpen then r = 255 g = 255 b = 255 else r = 255 g = 0 b = 0 endif drawcandle(liveOpen, liveHigh, liveLow, liveClose) coloured(r, g, b) return |
This code draws the live candle with color adjustments based on whether it’s bullish or bearish. You can modify it to fit your needs.
Maybe you are looking for this: https://www.prorealcode.com/topic/vela-de-1-hora-y-dentro-las-5-de-15-minutos/
Hi 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
Find exclusive trading pro-tools on