MYF Candles Dashboard
Forums › ProRealTime English forum › ProRealTime platform support › MYF Candles Dashboard
- This topic has 6 replies, 4 voices, and was last updated 8 months ago by ashehzi.
-
-
03/15/2024 at 11:37 PM #229871
Hi,
I am trying to achieve the following:
- Main chart time frame is 1 minute
- I want to add an indicator (e.g. named MTF Candles Dashboard) as “New Panel” and it should be able to display
- last 3 5 mn candles
- last 3 15mn candles
- last 3 30mn candles
- last 3 1h candles
If I e.g. do the following code as an example, it surely is wrong I know.
Needs modification - shared as an idea1234567891011121314151617181920212223242526272829303132333435363738394041424344454647TIMEFRAME(5mn, UPDATEONCLOSE)if open > close thenDRAWCANDLE(open, high, low, close) coloured (255,0,0)elseDRAWCANDLE(open, high, low, close) coloured (0,255,0)endifTIMEFRAME(DEFAULT)TIMEFRAME(10mn, UPDATEONCLOSE)if open > close thenDRAWCANDLE(open, high, low, close) coloured (255,0,0)elseDRAWCANDLE(open, high, low, close) coloured (0,255,0)endifTIMEFRAME(DEFAULT)TIMEFRAME(15mn, UPDATEONCLOSE)if open > close thenDRAWCANDLE(open, high, low, close) coloured (255,0,0)elseDRAWCANDLE(open, high, low, close) coloured (0,255,0)endifTIMEFRAME(DEFAULT)TIMEFRAME(30mn, UPDATEONCLOSE)if open > close thenDRAWCANDLE(open, high, low, close) coloured (255,0,0)elseDRAWCANDLE(open, high, low, close) coloured (0,255,0)endifTIMEFRAME(DEFAULT)TIMEFRAME(1h, UPDATEONCLOSE)if open > close thenDRAWCANDLE(open, high, low, close) coloured (255,0,0)elseDRAWCANDLE(open, high, low, close) coloured (0,255,0)endifTIMEFRAME(DEFAULT)RETURNAttached picture is wrong indeed as it is not what is intended. I need to start modifying it. Please don’t tell me that it is only possible through drawRectange and drawSegment.
Thanks
Ash
03/16/2024 at 5:01 AM #229873Can you show how and where they should be plotted?
03/16/2024 at 1:45 PM #229892The whole yellow area in the attachment is just one indicator. I want to make 4 or 5 portions in it like
- last 3 5min candles
- last 3 10min candles
- last 3 15min candles
- last 3 30min candles
We can customise the interval which should not an issue but what is the simple way to construct last 3 candles of multiple timeframes within same one indicator as shown in the attachment.
03/16/2024 at 1:53 PM #22989603/16/2024 at 5:27 PM #22989903/16/2024 at 5:44 PM #229901Hi Razz
Yes , did it this morning after seeing #don’t_walk’s post. Been learning the programming side, but keep hitting various limitations.
Over time, looking at other problems, sometimes help identify problems and shed some light on various things and work around solutions.
This , in this form relies on the use of array’s and anchor’ed graphic’s, introduced in version 11.
See what you think, appears stable, only works on 1 minute time frame chart.
Import the code from below
Regards druby
03/16/2024 at 8:05 PM #229907 -
AuthorPosts
Find exclusive trading pro-tools on