Trend Analyzer is a Python script designed to analyze market trends in financial time series data, specifically using the MetaTrader 5 platform. It calculates linear regression, residuals, and standard deviation to provide insights into market trends and their strength.
- Fetches historical market data from MetaTrader 5.
- Performs linear regression analysis on the closing prices.
- Calculates residuals and standard deviation to assess the fit of the linear regression model.
- Visualizes trends, linear regression lines, and residuals for better understanding.
- Python 3.x
- MetaTrader 5 platform
-
Clone the repository:
git clone https://github.com/zuhairabid/Market-Trend-Analyzer.git
-
Install the required dependencies:
pip install -r requirements.txt
-
Open MetaTrader 5 and ensure the MetaTrader 5 API is enabled.
-
Run the script:
python main.py
-
Instruction to use functions is given with the respective functions.
This project is licensed under the MIT License
Special thanks to the MetaTrader5 platform. Inspiration from financial analysis and trend-following strategies.