Posts

Showing posts from May, 2021

Force Index On Python

Image
  The  force index  ( FI ) is an indicator used in technical analysis  to illustrate how strong the actual buying or selling pressure is. High positive values mean there is a strong rising trend, and low values signify a strong downward trend. The FI is calculated by multiplying the difference between the last and previous closing prices by the volume of the commodity, yielding a momentum scaled by the volume. The strength of the force is determined by a larger price change or by a larger volume. The Formula for the Force Index Is: \begin{aligned} &\text{FI}\left(1\right)=\left(\text{CCP }-\text{ PCP}\right)*\text{VFI}\left(13\right)=\\ &\text{13-Period EMA of FI}\left(1\right)\\ &\textbf{where:}\\ &\text{FI = Force index}\\ &\text{CCP = Current close price}\\ &\text{PCP = Prior close price}\\ &\text{VFI = Volume force index}\\ &\text{EMA = Exponential moving average}\\ \end{aligned} ​ FI ( 1 ) = ( CCP  −  PCP ) ∗ VFI ( 1 3...