Forums › ProRealTime English forum › ProBuilder support › Hourly Average plotted in Higher timeframe › Reply To: Hourly Average plotted in Higher timeframe
05/17/2019 at 4:05 AM
#98667
I woud like to plot the 1 hour average as it is in the 1 hour graph.
I found in another post another solution for the RSI that I do not know if it can be changed to apply to the simple average, thanks for your help.
RSI short timeframe to higher timeframe
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
//higher timeframe minutes count //HigherTFminutes = 60 //current timeframe minutes count //CurrentTFminutes = 5 //RSI period to display //RSIperiod = 14 if hour<>hour[1] then c = close endif currentRSI = RSI[RSIperiod](close) factor = ROUND(HigherTFminutes/CurrentTFminutes) MTFRSI = RSI[RSIperiod*factor](c) RETURN currentRSI as "current TF RSI", MTFRSI as "higher TF RSI" |