
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
Analyze Broker Spreads with Pandas
Analyze Broker Spreads with Pandas | Trading with Python
In this video, the presenter uses pandas in Python to analyze broker spreads. Tick data exported from broker history using MetaTrader 5 is passed into a pandas dataframe, and spread and hourly-based data analyzed to plot changes in spreads over time. Spreads were found to be generally tight but could spike during news events or low liquidity periods, particularly around midnight broker time. The analysis advises traders to optimize their trading costs by considering the data presented for different symbols.
Code a Bollinger Band Trading Strategy in Python
Code a Bollinger Band Trading Strategy in Python
In this video, the presenter explains the Bollinger Bands trading strategy in Python where a simple moving average, a lower band, and an upper band are used to contain 95% of all prices within the bands. The strategy involves buying when the price reaches the lower Bollinger Band and selling when the price reaches the upper Bollinger Band. A stop loss is set to three standard deviations below the mean, while take profit is set to two standard deviations above. The presenter shows the implementation in Python using Pandas and MetaTrader5 platforms and provides test results, explaining each trade outcome. However, he advises against blindly deploying this strategy in trending markets and stresses the importance of analyzing market conditions.
Code a Simple Moving Average (SMA) Crossover Trading Strategy in Python
Code a Simple Moving Average (SMA) Crossover Trading Strategy in Python
In this YouTube video, the presenter explains how to code a simple moving average (SMA) crossover trading strategy in Python. The strategy uses the crossover of two SMA as a signal for buying and selling assets. The presenter demonstrates how to visualize the historical price data using Pandas and Plotly libraries, defines the fast and slow SMAs, finds crossovers, calculates the crossover column and plots the bullish crossovers. The video then goes on to show how to backtest the SMA crossover trading strategy using previously created classes, and discusses the results using a line chart of profit and loss over time. Overall, the video provides a step-by-step guide to creating and testing a simple and effective trading strategy using Python.
Code a Buy-Hold Trading Strategy for Stock Indices in Python
Code a Buy-Hold Trading Strategy for Stock Indices in Python
In this video, the presenter discusses how to write a buy-hold trading strategy for stock indices in Python using Jupyter Notebook code to write indicators, strategies, and backtests. The strategy is based on identifying 5%, 15%, or 35% drawdown and purchasing when a drawdown is reached, subsequently selling when reaching the previous all-time high. The speaker explained how to add and check positions using the get positions method which uses a list of positions and appends the position class for every new position. The exit strategy was also explained whereby every open position is closed when the drawdown approaches zero. Finally, the importance of high-quality trades and lengthy periods to permit price recovery is emphasized, and the presenter showcases the results of the backtest represented on a chart.
Code 10 Technical Trading Indicators with Python
Code 10 Technical Trading Indicators with Python
The video discusses ten technical trading indicators with Python, starting with the simple moving average (SMA), which is used to determine trends. The average true range (ATR) measures volatility, while the relative strength index (RSI) identifies overbought and oversold prices. Yesterday's high low and standard deviation can help identify ranging, breakout, and volatile markets. Bollinger Bands use a simple moving average (SMA) and standard deviation to indicate mean reversion or breakout strategies. MACD and SMA crossover indicate a change in trend by calculating fast and slow EMAs or SMAs. The moving average crossover combines fast and slow moving averages to identify potential trend reversals, while the stochastic oscillator considers the highest and lowest values of a period to identify overbought and oversold conditions.
How to code an RSI Trading Strategy in Python
How to code an RSI Trading Strategy in Python
The video provides an in-depth explanation on how to code and backtest an RSI trading strategy in Python. The strategy relies on buying when the RSI is oversold and selling when it's overbought, with the entry signals being when the RSI drops below 30, and when it exceeds 70, it's time to sell. The exit strategy involves using the average true range (ATR) indicator to set take profit and stop loss 280 pips away from the buying or selling price. The video covers the use of the MetaTrader5, Pandas, and Plotly libraries for historical data requests, indicator calculation, backtesting, and result visualization. It concludes by encouraging viewers to download the Jupiter notebook to implement the RSI trading strategy in Python.
Learn Pandas on Trade Examples
Learn Pandas on Trade Examples
The video teaches users how to apply various Pandas functions to analyze trade data in Python to answer analytical questions such as determining the longest and shortest trade durations, calculating the most profitable and losing months, identifying the most active months, analyzing buy and sell orders, and calculating the biggest absolute drawdown. Additionally, it covers calculating the win rate, reward to risk ratio, and profit factor, which measures the ratio between gross profit and loss. The speaker provides a CSV file and real examples to guide viewers through the analysis process and offers a Jupiter notebook for anyone who wants to practice pandas.
Manage Data in CSV and Databases (SQLite)
Manage Data in CSV and Databases (SQLite)
In the "Manage Data in CSV and Databases (SQLite)" video, the speaker demonstrates how to save and read data in a CSV file using pandas DataFrame and how to work with databases using SQLite3. Viewers are shown how the OHLC data is saved in a pandas DataFrame, saved as a CSV file, and then later read and converted into a pandas DataFrame. The speaker also shows viewers how to work with databases in Python using SQLite3, including creating a database or connecting to an existing one, saving data inside the database, and reading the data using simple queries. The speaker concludes the video by offering viewers access to the code used in the tutorial and expressing the hope that the tutorial was helpful.
MetaTrader 5 live trading with Python in 2021 (Template included)
MetaTrader 5 live trading with Python
The video "MetaTrader 5 live trading with Python in 2021 (Template included)" presents a helpful guide for traders aiming to customize their trading strategies and improve profitability using MetaTrader5 and Python. It presents a template that can be modified based on the trader's needs, highlighting the necessary code sections. The video also covers different functions like initializing functions, importing data, and making trade orders. Among the useful tools demonstrated is the resume function, which enables traders to monitor open positions even after shutting down the Python sheet. While emphasizing the need for a Windows device to use the MetaTrader 5 library, the speaker also suggests some options for Mac users.
Trailing stop loss: Strength of weakness?
Trailing stop loss: Strength of weakness?
Lucas from Control discusses the strengths and weaknesses of a trailing stop-loss strategy, which aims to reduce risk in trading by using continuous stop-loss or profit thresholds. One strength is that it allows traders to exploit trend variations and manage risk, but a weakness is that it may cause traders to miss out on potential profits. The speaker advises traders to consider asset volatility and use customized strategies accordingly. He also offers a course on how to use trailing stop-loss and other trading strategies.