CalculateRSI()
 that returns the RSI value given price data.
Function
Function - A callable block of code designed to perform a specific task, with input parameters and usually a return value. Functions help modularize code. In EAs and cBots, functions might compute indicator values, open trades, or log messages. For example, you might write a function