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.
TIMEFRAME(5mn, UPDATEONCLOSE)
if open > close then
DRAWCANDLE(open, high, low, close) coloured (255,0,0)
else
DRAWCANDLE(open, high, low, close) coloured (0,255,0)
endif
TIMEFRAME(DEFAULT)
TIMEFRAME(10mn, UPDATEONCLOSE)
if open > close then
DRAWCANDLE(open, high, low, close) coloured (255,0,0)
else
DRAWCANDLE(open, high, low, close) coloured (0,255,0)
endif
TIMEFRAME(DEFAULT)
TIMEFRAME(15mn, UPDATEONCLOSE)
if open > close then
DRAWCANDLE(open, high, low, close) coloured (255,0,0)
else
DRAWCANDLE(open, high, low, close) coloured (0,255,0)
endif
TIMEFRAME(DEFAULT)
TIMEFRAME(30mn, UPDATEONCLOSE)
if open > close then
DRAWCANDLE(open, high, low, close) coloured (255,0,0)
else
DRAWCANDLE(open, high, low, close) coloured (0,255,0)
endif
TIMEFRAME(DEFAULT)
TIMEFRAME(1h, UPDATEONCLOSE)
if open > close then
DRAWCANDLE(open, high, low, close) coloured (255,0,0)
else
DRAWCANDLE(open, high, low, close) coloured (0,255,0)
endif
TIMEFRAME(DEFAULT)
RETURN
Attached 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