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 12:36
Templates MetaTrader 5 live trading using Python - part 1: import broker's data
Templates MetaTrader 5 live trading using Python - part 1: import broker's data
In this video, Lucas demonstrates how to use Python and MetaTrader 5 to import a broker's data by extracting candle data and transforming it into a readable data frame format. He notes that the MetaTrader 5 platform only works on Windows devices and not on Mac systems without additional applications. He creates a function called "get_rate" that allows for easy automation by changing its parameters, and by using the set index function, he sets the time column as the index of the data frame, allowing historical data to be imported to Python.
Forum on trading, automated trading systems and testing trading strategies
Python in algorithmic trading
MetaQuotes, 2023.04.13 12:37
Templates MetaTrader 5 live trading using Python - part 2: Place order on MetaTrader 5 using Python
Templates MetaTrader 5 live trading using Python - part 2: Place order on MetaTrader 5 using Python
Lucas from explains the process of sending orders on MetaTrader 5 using Python. This involves initializing the symbol and deviation in pip, choosing the filling mode, creating a request to be sent to MetaTrader 5, specifying the action wanted, and executing the orders. He emphasizes the importance of extracting all necessary information like position ID into variables, as they would not be available after the Python sheet is shut down. The video also details the process involved in closing an open position for which a similar but reverse code of buying and selling orders needs to be applied while using the bid price instead of the ask price.
Forum on trading, automated trading systems and testing trading strategies
Python in algorithmic trading
MetaQuotes, 2023.04.13 12:38
Templates MetaTrader 5 live trading using Python - part 3: Money management with MetaTrader 5/Python
Templates MetaTrader 5 live trading using Python - part 3: Money management with MetaTrader 5 / Python
Lucas demonstrates how to use MetaTrader5 and Python to create a money management function that places a take profit and stop loss order in a request. The function considers risk management to determine optimal values for stop loss and take profit. He shows how to use a function called "tradeSize" to adjust risk for a long position in EUR/USD and determine the best volume based on account capital and leverage. Lucas emphasizes the importance of being careful in adjusting the volume of orders to maintain appropriate risk exposure.
Forum on trading, automated trading systems and testing trading strategies
Python in algorithmic trading
MetaQuotes, 2023.04.13 12:39
Templates MetaTrader 5 live trading using Python - part 4: Trading signal creation
Templates MetaTrader 5 live trading using Python - part 4: Trading signal creation
The YouTuber demonstrated the creation of a trading signal using MetaTrader 5 and Python by initializing the connection between the two platforms, creating a class "mt5" that is used to put the strategy into live trading, and importing data using the "get rates" function. They then went on to create a basic 30 and 60-day SMA signal using the rolling function and based the buy and sell conditions on the fast-moving average being above or below the slow-moving average. This process showcased a simple way to create a trading signal for live trading using MetaTrader 5 and Python.
Forum on trading, automated trading systems and testing trading strategies
Python in algorithmic trading
MetaQuotes, 2023.04.13 12:39
Templates MetaTrader 5 live trading using Python - part 5: Live trading template (MetaTrader 5/Python)
Templates MetaTrader 5 live trading using Python - part 5: Live trading template (MetaTrader5/Python)
The "Templates MetaTrader 5 live trading using Python - part 5:Live trading template (MetaTrader5/Python)" video demonstrates how to use the live trading template to execute a trading strategy. Users can select a specific time to run the algorithm and choose a symbol list with a default strategy of a random signal. Orders can be placed using the template, and users can change the random signal. The video cautions that stop loss and take profit percentages do not account for the spread and advises using a time slip of one second to avoid processing multiple signals within the same second. Viewers are invited to like and subscribe to the channel and join the Discord community.
Forum on trading, automated trading systems and testing trading strategies
Python in algorithmic trading
MetaQuotes, 2023.04.13 12:40
Templates MetaTrader 5 live trading using Python - part 6: Machine learning (MetaTrader 5/Python)
Templates MetaTrader 5 live trading using Python - part 6: Machine learning (MetaTrader5/Python)
Lucas shows how to put a trading strategy based on machine learning in live trading. The process involves importing libraries, using feature engineering to transform open, high, low, close, and volume data to understand the relationship between features to create a machine learning algorithm, standardizing data, converting data using principal component analysis (PCA), fitting and predicting variations, and ultimately deciding whether to buy or sell assets. He also provides an hour-based time condition and day condition to choose the best time to trade. The code works during market hours and signals when to buy or sell assets.
Forum on trading, automated trading systems and testing trading strategies
Python in algorithmic trading
MetaQuotes, 2023.04.13 14:38
Build Your Own MetaTrader 5 Trading Bot : Part 1
Get the code at GitHub: https://github.com/jimtin/algorithmic_trading_bot
Build Your Own MetaTrader 5 Trading Bot
The video tutorial discusses the components needed and requirements to build an automated trading bot using MetaTrader 5, including Windows 10, Python 3.10, an IDE like PyCharm or Visual Studio Code, a MetaTrader 5 download, and a trading account. The presenter emphasizes the importance of a settings.json file for storing sensitive information and demonstrates creating an example settings file using the Json and OS libraries. He also emphasizes code commenting and advises against opening too many file handles at once. The video concludes by showing how to import sensitive information and error handling before promising to demonstrate connecting to MetaTrader in the next episode.Forum on trading, automated trading systems and testing trading strategies
Python in algorithmic trading
MetaQuotes, 2023.04.13 14:41
Build Your Own MetaTrader 5 Trading Bot - Part 2
Get the code at GitHub: https://github.com/jimtin/algorithmic_trading_bot
Build Your Own MetaTrader 5 Trading Bot - Pt 2
This video continues the process of building an automated trading bot using MetaTrader 5, focusing on error handling and refactoring the code to simplify its appearance. The instructor emphasizes the importance of utilizing a practice account to avoid any unnecessary financial losses and walks viewers through the process of initializing and logging into MetaTrader 5 while commenting on the code and defining parameters. They demonstrate using try and except statements to handle any errors that may arise and show how to print out exceptions to the screen to troubleshoot issues in the future. Additionally, they create a separate function called "start_up" to simplify the code and handle the startup process more efficiently. Finally, they import the new function into main.py and print out the outcome on the screen.
Forum on trading, automated trading systems and testing trading strategies
Python in algorithmic trading
MetaQuotes, 2023.04.13 14:46
Build Your Own MetaTrader 5 Trading Bot - Get 50,000 Candlesticks
Get the code at GitHub: https://github.com/jimtin/algorithmic_trading_bot
Build Your Own MetaTrader 5 Trading Bot - Get 50,000 Candlesticks
The video provides a step-by-step guide to build a MetaTrader5 automated trading bot. The crucial first step is to make sure that you have completed the MetaTrader Connect episode and installed the python pandas library. The tutorial shows how to initialize the symbol and expand the startup function to include initializing symbols. It demonstrates how to retrieve up to 50,000 candlesticks using the 'get candlesticks' function, which requires symbol, timeframe, and candlestick number inputs. The video emphasizes ensuring that all necessary columns are present in the candlestick chart data and shows how to retrieve the tick volume data. The creator promises to demonstrate how to calculate an EMA indicator in the next episode.
Forum on trading, automated trading systems and testing trading strategies
Python in algorithmic trading
MetaQuotes, 2023.04.13 14:48
Build Your Own MetaTrader 5 Python Trading Bot: EMA Indicator
Get the code at GitHub: https://github.com/jimtin/algorithmic_trading_bot
Build Your Own MetaTrader 5 Python Trading Bot: EMA Indicator
This section of the video demonstrates how to create a function for calculating exponential moving average (EMA) indicator in Python. The video provides step-by-step instructions for creating the function, which calculates the average value of previous trades with a multiplier applied to the most recent trade, and how to add a column for the EMA to each row of the data frame. The video also emphasizes the importance of commenting functions and using a pseudo-library to make the code reusable and conform to the "don't repeat yourself" principle. The video concludes by demonstrating how to calculate different types of EMAs that will be used in the upcoming EMA crossover strategy.