


If Ap = aggregationPeriod.MIN then "RSI 1m" + Round(RSIp, 2) If Ap = aggregationPeriod.TWO_MIN then "RSI 2m :" + Round(RSIp, 2) If Ap = aggregationPeriod.THREE_MIN then "RSI 3m :" + Round(RSIp, 2) If Ap = aggregationPeriod.FOUR_MIN then "RSI 4m :" + Round(RSIp, 2) If Ap = aggregationPeriod.FIVE_MIN then "RSI 5m :" + Round(RSIp, 2) If Ap = aggregationPeriod.TEN_MIN then "RSI 10m :" + Round(RSIp, 2) If Ap = aggregationPeriod.FIFTEEN_MIN then "RSI 15m :" + Round(RSIp, 2) If Ap = aggregationPeriod.TWENTY_MIN then "RSI 20m : " + Round(RSIp, 2) If Ap = aggregationPeriod.THIRTY_MIN then "RSI 30m :" + Round(RSIp, 2) If Ap = aggregationPeriod.HOUR then "RSI 60m : " + Round(RSIp, 2) If Ap = aggregationPeriod.TWO_HOURS then "RSI 2H :" + Round(RSIp, 2) If Ap = aggregationPeriod.FOUR_HOURS then "RSI 4h : " + Round(RSIp, 2)

If Ap = aggregationPeriod.DAY then "RSI D : " + Round(RSIp, 2) If Ap = aggregationPeriod.TWO_DAYS then "RSI 2D : " + Round(RSIp, 2) If Ap = aggregationPeriod.THREE_DAYS then "RSI 3D : " + Round(RSIp, 2) If Ap = aggregationPeriod.FOUR_DAYS then "RSI 4D : " + Round(RSIp, 2) If Ap = aggregationPeriod.WEEK then "RSI W: " + Round(RSIp, 2) If Ap = aggregationPeriod.MONTH then "RSI M : " + Round(RSIp, 2) If Ap = aggregationPeriod.QUARTER then "RSI Q : " + Round(RSIp, 2) Here is the RSI_MTF_Label >ĭef RSIp = reference RSI(length, price = close(period = Ap )).RSI ĪddLabel(yes, if Ap = aggregationPeriod.YEAR then "RSI Y : " + Round(RSIp, 2) Perhaps not exactly what you wish but its as far as I am for now.
#Rsi Paint Indicator code#
I can load instances of this into my chart after renaming them and changing the settings to desired values like 5min, 1hr and day names and saving the aggregation for each either within the code or in the configuration of each then saving. I was messing around with this idea and have narrowed it down to this and find it useful. Thank you for any help, and sorry if this is the wrong area for this. Hopefully I have explained that correctly. So, like if RSI 100 is between 45 and 55 the bars would be gray, otherwise they should either be Dark/Light Green (the areas above RSI 100 day - 55 level) or Dark/Light Red (in the areas below RSI 100 day - 45 level). If RSI 14 less than 30 then paint bars the dark red If RSI 14 is greater than 70 then paint the bars dark green Full disclosure I would really like to add a second layer so I could use a 2nd RSI setting. If RSI 14 less than 30 then paint the bars green If RSI 14 is greater than 70 then paint the bars red I would like an upper indicator that paints the bars different colors based on the RSI settings. I'm not very good at coding and was hoping someone could help me code what should I hope be a pretty easy study. If RSI between 80 and 90 then CreateColor(50, 150, 50) else If RSI between 10.01 and 20 then CreateColor(150, 50, 50) else If RSI between 20.01 and 30 then CreateColor(200, 50, 50) else If RSI between 70.01 and 80 then CreateColor(90, 220, 90) else If RSI between 30.01 and 40 then CreateColor(225, 125, 125) else If RSI between 60.01 and 70 then Color.LIGHT_GREEN else If RSI between 40.01 and 50 then Color.PINK else If RSI between 50.01 and 60 then createcolor(175, 220, 175) else
