总的来说,iRSI()函数是一个方便的工具,可用于计算RSI指标值。通过使用iRSI()函数,您可以轻松地在MQL4中编写自动化交易策略,并利用RSI指标来确定市场的买入和卖出信号。请记住,iRSI()函数仅适用于MQL4,并且只能提供有限的技术分析功能。
[in] Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago). Returned value Numerical value of the Relative Strength Index indicator. Example: if(iRSI(NULL,0,14,PRICE_CLOSE,0)>iRSI(NULL,0,14,PRICE_CLOSE,1))return(0); ...
Calculates the Relative Strength Index indicator and returns its value. doubleiRSI( stringsymbol,// symbol inttimeframe,// timeframe intperiod,// period intapplied_price,// applied price intshift// shift ); Parameters symbol [in] Symbol name on the data of which the indicator will be calcula...