
Explore python basics, pandas data analysis, and forex fundamentals; build a trading strategy and implement MT5-based algorithmic trading with multi-processing for live trading.
Install Python and the PyCharm community edition, add Python to the system path, and customize the installation. Create a new project and prepare for Python basics.
Master the Python print function to display hello world, print variables, and combine text with data using format and f-strings with curly braces.
Learn how to declare variables, follow naming rules, and work with Python's basic data types—strings, integers, floats, and booleans—plus type conversion and multi-variable assignment.
Explore Python operators, including arithmetic (add, subtract, multiply, divide, modulus, exponent), comparison (==, !=, >, <, >=, <=), boolean (and, or, not), and assignment (=, +=, -=, *=, /=) with examples.
Learn to define Python functions with def, pass arguments, and return results. See how functions divide problems into smaller, reusable blocks and produce outputs like sums and means.
Explore the difference between global and local variables in Python, learn how the global keyword allows access and modification from inside functions, and see scope rules in action.
Learn how to use Python lists for storing multiple values with square bracket syntax, index and slice items, and modify lists with append, insert, remove, pop, and extend.
Learn to create Python dictionaries with curly braces and key-value pairs, access values by key, view keys and values, and remove entries with pop.
Explore how if-else statements control Python code by evaluating true or false conditions and executing corresponding blocks, with simple print examples.
Explore while loops in Python, learning syntax, conditions, and indentation, then control flow with break and continue to end or skip iterations, including handling division by zero.
Learn how to use Python for loops to run code blocks a set number of times, iterate over lists and ranges, and access dictionary keys and values.
Learn how to define classes and create objects in Python, using properties and methods to model real-world items. Explore the constructor, the self keyword, and instance methods with car examples.
Explore pandas, a Python data analysis library, and its series for indexing, printing, and element selection. Create a series from a list, assign custom indexes, and import pandas as shown.
Learn pandas data frames as 2d tables with rows and columns, import pandas, create a data frame from a dictionary, and select specific values by column and row.
Learn how to select a column as a pandas series or dataframe, and how to choose rows using dot notation, single and double brackets, and the loc method in Python.
Learn to select rows in a data frame by conditions, using boolean indexing with square brackets and df.loc to filter by age and marks, and print the corresponding names.
Learn to write and read dataframe columns using square bracket indexing, iterate columns such as name and age with for loops, and print column values.
Learn to install MetaTrader 5, enable algorithmic trading via expert advisors, and set up a zero-commission demo account with a $5,000 initial deposit.
Identify base and quote currencies and distinguish major, minor (cross), and exotic forex pairs. Learn to add custom pairs like GBP USD and USDC.
Learn how the bid, ask, and spread determine forex prices, with buying at the ask and selling at the bid.
Learn essential forex terminology, including pips, lots, margin, and leverage, with practical examples of how price moves and position sizes affect trading in forex algorithmic trading with Python.
Calculate the margin for a 0.01 lot of euros in a buy order by price times 100,000 with 100x leverage, then assess profit or loss.
Demonstrate margin calculation for a 0.01 lot of USD/JPY at 100x leverage, and compute profit and loss by comparing current and previous values and price differences.
Compute eur/usd profit per one lot (100,000 units) by subtracting the previous value from the current value, yielding 10 USD per lot, and convert pip moves to dollar value.
Explore forex order types in metatrader: market orders, executed instantly at the broker price, and pending orders—stop and limit orders placed above or below the current price.
Explore dollar cost averaging through a step-by-step pineapple example, showing how spreading purchases over changing prices affects cost and profit, and apply this theory to forex trading.
Demonstrates a buy strategy for forex trading, placing larger buys at 1%, 3%, and 7% price levels from the current price to set the average price for selling above it.
Implement a tiered selling strategy with increasing lot sizes at 1%, 3%, and 7% price moves, then buy below the average price at each level to profit from reversals.
Builds a DCA bot strategy by setting a buy direction, targeting 2% profit, and placing market orders as safety orders at 1% and 2% pullbacks to close when target hits.
Explains how to calculate deviation between current and initial price using a formula with leverage, includes buy and sell directions and coding a deviation function.
Build a dollar-cost averaging forex trading bot in Python, using safety orders, escalating volumes, price deviation levels, and a while loop to reach a profit target.
Install the Metatrader python library from Python packages, import it, then initialize and login with server, account number, and password to connect to a trading account.
Explore placing buy limit and sell limit orders using Python by passing symbol, volume, and price in a dictionary, with practical examples for currency pairs like GBP USD.
Place market orders in a forex trading bot by specifying symbol and volume, setting order direction, and executing a 0.05 lot market order for GBPUSD using the market order function.
Discover how to retrieve current position details using the score gait method in the file library, including open price, volume, profits, and current price, with Python, pandas, and symbol filtering.
Create a dataframe-based function to calculate total profit and volume for forex pairs, convert values to float, test with gbp usd, and display profit and volume for a dca bot.
Explore filtering forex orders by type in a dataframe to separate buy (0) and sell (1) orders, and implement functions to calculate buy and sell profits.
Learn to calculate forex margin with a Python function that uses type, symbol, volume, and open price, and sum margins across positions.
Create a function to calculate percentage profit by dividing total profit by total margin (buy margin plus sale margin) and multiplying by 100, then return the percentage profit.
Close all forex positions with a position-parameter function in a Python DCA bot. The example closes €2 USD and 3 GBP USD positions, leaving all positions closed.
Assemble the trading bot part 1 by defining a direction, computing current price deviation from the initial open price, and returning a leveraged, directional deviation using the last position.
Define symbol and volume, set the profit target, and configure the number of safety orders; place market orders, monitor open positions, and loop until the profit target is reached.
Test the forex algorithmic trading bot by executing a euro USD buy order, running the code, observing simulated trades from an initial balance near 4,999.94, and closing the orders.
Create a Python class for a DCA bot with an __init__ constructor, self properties (symbol, volume, profit target, safety orders, direction) and a drum method for loop execution.
Import the class, create a GBP USD object with 0 USD, 0.01 lots, 2% profit target, four safety orders, and buy direction; then run objects using thread and start them.
Select currency pairs with strong trends and analyze time frames to spot uptrends and downtrends. Place safety orders, run the bot, and review profit and win-loss statistics.
Explore forex algorithmic trading with python and build a dca bot through clear, practical instructions.
There are 8 main sections in this course
Basics of Python
Data Analysis with Pandas Library in Python
Basics of Forex
Building the DCA Strategy Plan
Algorithmic Trading with mt5 Library
Building the Trading Bot
Multiprocessing ( Trading Multiple Currency Pairs Simultaneously )
Live Trading
Basics of Python -
This section is for absolute beginners in python. We are discussing about following topics.
Installing Python and Setting up IDE
Print Function and F Strings
Variables and Basic Data Types in Python
Operators in Python
Python Functions
Global and Local Variables in Python
Working with Lists
Working with Dictionaries
If Else Statements in Python
While Loops, Break and Continue Statements
For Loops
Classes and Objects in Python
Data Analysis with Pandas Library in Python
Pandas is a Python library created for data analysis. We are using this library to do essential forex calculations.
We are discussing about,
Pandas Series
Pandas Data Frames
Selecting Specific Rows and Columns in a Dataframe
Selecting Rows in a Data Frame by Conditions
Iterating Colums in a Dataframe
Basics of Forex
We will discuss terminology in forex and do essential calculations.
Installing MetaTrader and Setting Up a Correct Broker Account
Types of Currency Pairs in Forex
Bid, Ask and Spread
Lots, Pips , Leverage and Margin
Essential Calculations
Types of Orders in Forex
Building the DCA Strategy Plan
In this section, we will be designing blue print of our trading bot
Algorithmic Trading with mt5 Library
We are creating functions of our trading bot(Functions for Opening and Closing Different Types of Orders with Python
Getting Current Position Details,
Basic Calculations ( Profit/Loss , Margin , Total Volume ))
Building the Trading Bot
We are putting all the functions together and assembling the bot
Multiprocessing
We are putting all the functions together and assembling the bot
Live Trading
We are waiting for suitable market conditions and correct currency pairs.
Then we do live trading