You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Forum on trading, automated trading systems and testing trading strategies
Python in algorithmic trading
MetaQuotes, 2023.04.13 14:56
Build Your Own MetaTrader 5 Python Trading Bot: EMA Cross Strategy
Get the code at GitHub: https://github.com/jimtin/algorithmic_trading_bot
Build Your Own MetaTrader 5 Python Trading Bot: EMA Cross Strategy
In this video tutorial, the presenter explains and implements the EMA cross strategy to build a trading bot to place trades automatically. The strategy involves using two EMAs, EMA 50 and EMA 200, and generates buy or sell signals when EMA 50 crosses over or below EMA 200, respectively. He also discusses stop loss, entry price, and take profit for each trade and how to create a separate function to design a library. The presenter updates the EMA cross strategy function to integrate with the get_data function created in a previous episode, and the indicators function returns all the necessary information to the calling function. The code is simplified by extracting the timeframe, making it easier to manage and maintain for algorithmic traders.
Forum on trading, automated trading systems and testing trading strategies
Python in algorithmic trading
MetaQuotes, 2023.04.13 14:58
Build Your Own MetaTrader 5 Python Trading Bot: EMA Cross Detector
Get the code at GitHub: https://github.com/jimtin/algorithmic_trading_bot
Build Your Own MetaTrader 5 Python Trading Bot: EMA Cross Detector
The video tutorial teaches how to create an EMA cross detector using Python, discussing the process of creating two different EMAs and identifying potential trends in the market, and walking through how to construct the EMA crossover detector function. The function creates two new columns, position and pre-position, and checks whether a cross event has occurred to create a column that sets True if a crossover has occurred; it also demonstrates how to use the EMA cross detector in main.py by extracting only the rows that have a true crossover event. The tutorial also hints at the next episode where it will demonstrate how to calculate a personal EMA cross strategy.
Forum on trading, automated trading systems and testing trading strategies
Python in algorithmic trading
MetaQuotes, 2023.04.13 15:01
Build Your Own MetaTrader 5 Python Trading Bot: Lot Size Calculator
Get the code at GitHub: https://github.com/jimtin/algorithmic_trading_bot
Build Your Own MetaTrader 5 Python Trading Bot: Lot Size Calculator
This video discusses how to build a lot size calculator function for a trading bot on Metatrader5 using Python. The function requires knowledge of the balance being risked, risk amount, stop-loss price, entry price, and the symbol being traded, and differs for Forex trading. The speaker emphasizes the importance of rounding values to prevent Metatrader5 from rejecting the calculation and shows how to add a different currency to the function. They also discuss adding in the exchange rate, making the code more robust by adding a catch-all else statement, and providing a standard calculation for pip size and pip value. The next part of the series will focus on safely and efficiently placing orders on Metatrader5.
Forum on trading, automated trading systems and testing trading strategies
Python in algorithmic trading
MetaQuotes, 2023.04.13 15:06
Build Your Own MetaTrader Python Trading Bot: Never Miss A Candlestick
Get the code at GitHub: https://github.com/jimtin/algorithmic_trading_bot
Build Your Own MetaTrader Python Trading Bot: Never Miss A Candlestick
This video tutorial demonstrates how to build a Python trading bot in MetaTrader 5 that will never miss a Candlestick. The code initiates MetaTrader 5, captures current and previous times, and utilizes a while loop to retrieve a single candle and compare to the previous candle to identify new candlesticks. The video emphasizes the importance of correcting spacing in the code, implementing a sleep function to prevent crashing, and utilizing a separate function to simplify the main function. The instructor also provides guidance on how to handle errors in the code and use print statements for clear testing.
Forum on trading, automated trading systems and testing trading strategies
Python in algorithmic trading
MetaQuotes, 2023.04.13 15:13
Build Your Own MACD Crossover Strategy with MetaTrader 5 and Python
Get the code at GitHub: https://github.com/jimtin/algorithmic_trading_bot
Build Your Own MACD Crossover Strategy with MetaTrader 5 and Python
This video provides a comprehensive guide on how to create a MACD crossover strategy using Python and MetaTrader 5. The process involves obtaining OHLC data, calculating indicators, generating signals, and developing a function for crossovers that can be used with different technical indicators. The presenter emphasizes the importance of backtesting before using the strategy in live trading and provides code and resources for quick implementation. The video also covers calculating values for sell signals, updating data frame values, and filtering results for easier backtesting. Overall, the video is a great resource for traders interested in developing and implementing a MACD crossover strategy.
Forum on trading, automated trading systems and testing trading strategies
Python in algorithmic trading
MetaQuotes, 2023.04.13 16:46
Building a web application using Python and Metatrader 5 with Streamlit
Building a web application using Python and Metatrader 5 with Streamlit
This video demonstrates how to create a real-time chart using Python, Streamlit, and Metatrader 5 that displays currency exchange rates and offers zoom and timeframe options. The presenter uses Pandas for importing data frames and Plotly to plot data, adding functions to calculate moving averages and Relative Strength Index. The video includes threading to handle zooming and keyboard shortcuts for interactivity. The presenter concludes the video by explaining the code's different functions and adding functionality to draw objects on charts, sharing the code in the app's description. The tutorial offers beginners a simple introduction to building real-time financial charts.
line of code. The speaker then demonstrates the on press key function which shrinks or grows the chart when the user presses the minus or plus key. The code includes multiple functions and placeholders to keep the application simple and easy to navigate.
Forum on trading, automated trading systems and testing trading strategies
Python in algorithmic trading
MetaQuotes, 2023.04.13 16:54
How to import stock price data from MetaTrader 5 into Python?
How to import stock price data from MetaTrader 5 into Python?
In this YouTube video, different methods to import stock price data from MetaTrader 5 into Python are explained. The methods include importing necessary libraries, setting the desired time frame and time zone, defining a function called "get data," manipulating the resulting data frame, using the tqtndm package, creating a rates frame, and utilizing two data frames to retrieve prices and date/time information. The speaker suggests putting the loops into a function to make the code cleaner, and using these methods, users can easily import data for numerous symbols without much difficulty.
Forum on trading, automated trading systems and testing trading strategies
Python in algorithmic trading
MetaQuotes, 2023.04.13 17:12
How to create Algorithmic Trading Strategies with Python - Step by Step Process
How to create Algorithmic Trading Strategies with Python - Step by Step Process
The video provides a step-by-step guide on how to create algorithmic trading strategies using Python. The first step involves defining the rules for the system, eliminating emotions from trading, and conducting backtesting to optimize profitability. The presenter then demonstrates how to create a trading strategy using a hypothesis and technical indicators such as moving average crossovers. The strategy is then coded, and backtesting is conducted repeatedly to ensure optimization. The second section focuses on coding the algorithmic framework and creating a signal function that determines whether to buy or sell based on a comparison of simple moving averages. The third section discusses how to process live market data using functions, while the fourth describes how to deploy the strategy on WPS. The presenter concludes by advising beginners to keep their trading strategies simple and clear.
Forum on trading, automated trading systems and testing trading strategies
Python in algorithmic trading
MetaQuotes, 2023.04.18 09:34
Connect Python to MetaTrader 5
Connect Python to MetaTrader 5
In this YouTube video, the creator provides a tutorial on how to use Python to connect to the MetaTrader 5 trading platform. They explain step-by-step how to install the necessary libraries, import the required packages, and retrieve data from the platform. The video also includes an example of how to retrieve daily bars and analyze the data using the Pandas library. By looping through the bars and comparing the close and open prices, the creator determines the number of bullish and bearish bars, providing insights into market trends and statistical patterns. This method can be useful for further analysis and decision-making in trading.
Forum on trading, automated trading systems and testing trading strategies
Python in algorithmic trading
MetaQuotes, 2023.04.18 10:27
MetaTrader 5 Depth of Market with Python
Realtime MetaTrader 5 DOM (orderbook) plot with Python, Pandas, PyQtGraph and RabbitMQ
This video demonstrates the use of Python, Pandas, PyQtGraph and RabbitMQ in order to display realtime orderbook (DOM).