Technical Indicators for the Pandasβ Dataframes
Documentation: https://pandastechindicators.readthedocs.io/en/latest/
pip install -U jgtapy
>>> import pandas as pd
>>> from jgtapy import Indicators
>>> df = pd.read_csv('EURUSD60.csv')
>>> i= Indicators(df)
>>> i.accelerator_oscillator(column_name='AC'
>>> i.fractals(column_name_high='fb', column_name_low='fs')
>>> i.fractals3(column_name_high='fb3', column_name_low='fs3')
>>> i.fractals5(column_name_high='fb5', column_name_low='fs5')
>>> ... 8,13,21,34,55,89
>>> i.sma()
>>> df = i.df
>>> df.tail()
Date Time Open High Low Close Volume AC sma
3723 2019.09.20 16:00 1.10022 1.10105 1.10010 1.10070 2888 -0.001155 1.101296
3724 2019.09.20 17:00 1.10068 1.10193 1.10054 1.10184 6116 -0.000820 1.101158
3725 2019.09.20 18:00 1.10186 1.10194 1.10095 1.10144 3757 -0.000400 1.101056
3726 2019.09.20 19:00 1.10146 1.10215 1.10121 1.10188 3069 0.000022 1.101216
3727 2019.09.20 20:00 1.10184 1.10215 1.10147 1.10167 1224 0.000388 1.101506
For detailed documentation on the Alligator, Awesome Oscillator (AO), Accelerator Oscillator (AC), Fractals, and Market Facilitation Index (MFI) indicators, including descriptions and usage examples, please refer to the INDICATORS.md file.
The Alligator indicator is a combination of three smoothed moving averages with different periods and shifts. It is used to identify trends and their direction. The three lines are called the Jaw, Teeth, and Lips. The implementation can be found in the alligator method in jgtapy/indicators.py.
The Awesome Oscillator is a momentum indicator that compares the 5-period simple moving average (SMA) with the 34-period SMA. It helps to identify market momentum. The implementation can be found in the awesome_oscillator method in jgtapy/indicators.py.
The Accelerator Oscillator measures the acceleration or deceleration of the current market driving force. It is derived from the Awesome Oscillator by subtracting a 5-period SMA of the AO from the AO itself. The implementation can be found in the accelerator_oscillator method in jgtapy/indicators.py.
Fractals are used to identify potential reversal points in the market. They consist of a series of at least five bars, with the highest high in the middle and two lower highs on each side for a bullish fractal, or the lowest low in the middle and two higher lows on each side for a bearish fractal. The implementation can be found in the fractals method and its variations in jgtapy/indicators.py.
The Market Facilitation Index measures the efficiency of price movement by comparing the range of price movement to the volume. It helps to identify potential market trends and reversals. The implementation can be found in the bw_mfi method in jgtapy/indicators.py.