Just need a little help with calculating the RSI value at a specific interval/ bar period?

 

Hey,

So I've written a pinbar EA which works fine, however I'm now trying to get it to take RSI into account when making trades...

I basically want RSI(specific bar interval int) to return the RSI value at that bar based on Close Prices.

I've been struggling with this a great deal as I'm having a bit of trouble getting my  head around Buffers etc. I've taken a look at other scripts which calculate RSI however continue to have trouble getting my head around how to get a calculation from it. 


Could anyone provide an example of the simplest way possible to get this data?


Many thanks,
Adam G

Documentation on MQL5: Standard Constants, Enumerations and Structures / Indicator Constants / Price Constants
  • www.mql5.com
Standard Constants, Enumerations and Structures / Indicator Constants / Price Constants - Documentation on MQL5