iForce Indicator
Calculates the Force Index indicator and returns its value.
Function Signature
double iForce(
string symbol, // Symbol name
int timeframe, // Timeframe
int period, // Averaging period
int ma_method, // Averaging method
int applied_price, // Applied price
int shift // Shift
);
Parameters
string - Symbol name. NULL indicates the current symbol.int - Timeframe. Use ENUM_TIMEFRAMES values. 0 indicates the current chart timeframe.int - Averaging period for calculation.int - Moving Average method. Use ENUM_MA_METHOD values.int - Applied price. Use ENUM_APPLIED_PRICE values.int - Index of the value taken from the indicator buffer (shift relative to the current bar).Return Value
double - Numerical value of the Force Index indicator.Example
double val = iForce(NULL, 0, 13, MODE_SMA, PRICE_CLOSE, 0);
Related Indicators
Platform Support
Constants Used
ENUM_TIMEFRAMESENUM_MA_METHODENUM_APPLIED_PRICENavigation
Downloads
MetaTrader 5 Downloads
Legal & Policy
Previous
arrow_back
Ienvelopesonarray