Hello Friends I am trying to create a lower indicator that can show me stacked rows of multi timeframe below is the code I tried but instead of coming as a row they are getting stacked on top of each other can any one help please. Appreciate your time and effort
This looks perfect for the 3 and 15 min rows, but when I added the 1 hour and 4 hour ones nothing is visible
plot hour4 = if IsNaN(close) then double.NaN else 1;
hour4.setPaintingStrategy(PaintingStrategy.POINTS);
hour4.setlineweight(5);
hour4.AssignValueColor(if LInEMA4Hour > VMA4hour then color.green else color.Magenta);
hour4.HideBubble() ;
hour4.HideTitle() ;
plot hour1 = if IsNaN(close) then double.NaN else 2;
hour1.setPaintingStrategy(PaintingStrategy.POINTS);
hour1.setlineweight(5);
hour1.AssignValueColor(if LInEMA1Hour > VMA1hour then color.green else color.red);
hour1.HideBubble() ;
hour1.HideTitle() ;
plot Min15X = if IsNaN(close) then double.NaN else 3;
Min15X.setPaintingStrategy(PaintingStrategy.POINTS);
Min15x.setlineweight(5);
Min15X.AssignValueColor(if LInEMA15Min > VMA15Min then color.green else color.red);
Min15X.HideBubble() ;
Min15X.HideTitle() ;
plot Min3X = if IsNaN(close) then double.NaN else 4;
Min3X.setPaintingStrategy(PaintingStrategy.POINTS);
Min3x.setlineweight(5);
Min3X.AssignValueColor(if LInEMA3Min > VMA3Min then color.green else color.red);
Min3X.HideBubble() ;
Min3X.HideTitle() ;
This looks perfect for the 3 and 15 min rows, but when I added the 1 hour and 4 hour ones nothing is visible
plot hour4 = if IsNaN(close) then double.NaN else 1;
hour4.setPaintingStrategy(PaintingStrategy.POINTS);
hour4.setlineweight(5);
hour4.AssignValueColor(if LInEMA4Hour > VMA4hour then color.green else color.Magenta);
hour4.HideBubble() ;
hour4.HideTitle() ;
plot hour1 = if IsNaN(close) then double.NaN else 2;
hour1.setPaintingStrategy(PaintingStrategy.POINTS);
hour1.setlineweight(5);
hour1.AssignValueColor(if LInEMA1Hour > VMA1hour then color.green else color.red);
hour1.HideBubble() ;
hour1.HideTitle() ;
plot Min15X = if IsNaN(close) then double.NaN else 3;
Min15X.setPaintingStrategy(PaintingStrategy.POINTS);
Min15x.setlineweight(5);
Min15X.AssignValueColor(if LInEMA15Min > VMA15Min then color.green else color.red);
Min15X.HideBubble() ;
Min15X.HideTitle() ;
plot Min3X = if IsNaN(close) then double.NaN else 4;
Min3X.setPaintingStrategy(PaintingStrategy.POINTS);
Min3x.setlineweight(5);
Min3X.AssignValueColor(if LInEMA3Min > VMA3Min then color.green else color.red);
Min3X.HideBubble() ;
Min3X.HideTitle() ;
Attachments
Last edited by a moderator: