
Develop a semi artificial intelligence trading bot with Python, covering Python basics, pandas data analysis, forex fundamentals, MetaTrader integration, and live trading.
Install Python and set up PyCharm, then create a new Python project in the IDE to begin coding for forex news trading.
Practice the print function to display text and variables, including hello world, name, and age. Compare format-based and f-string approaches using curly braces to interpolate variables.
Explore the difference between local and global variables in Python and how the global keyword enables access and modification from inside a function.
Master python list basics including creation, indexing and slicing, using positive and negative indices. Learn to modify lists with append, insert, remove, pop, and extend to combine lists.
Learn to work with dictionaries, ordered key-value collections, by creating pairs, accessing keys and values, adding new pairs, and removing entries with pop in Python.
Explore using Python if statements to run code when conditions are true, with a print example. Use else statements to handle false conditions and print the result.
Master while loops by understanding the syntax, condition, and indentation; learn break and continue statements to end or skip iterations and explore examples showing condition-based termination.
Master Python for loops to run code blocks a specific number of times, iterate lists and dictionaries, use range, and print items in PyCharm.
Master Python classes and objects by building a car class with color, brand, and model properties, using constructor __init__ and self, plus methods like get_values, drive, and stop.
Learn to use the pandas library for data analysis in Python by creating and indexing 1D series, printing values, and using custom indexes.
Master pandas basics by selecting specific columns and rows in a data frame, using dot notation, single brackets, double brackets, and the .loc method to print series and data frames.
Demonstrate iterating dataframe columns with a for loop, showing how to access and print each column, such as the name and age columns, via df['column_name'].
Explore forex currency pairs: major pairs with the USD, cross currency pairs, and exotic pairs with emerging economies, plus adding custom currencies in Metatrader.
Explore how the bid, ask, and spread shape buy and sell prices, showing buying above the current price (ask) and selling below it (bid) on the eurusd chart.
Calculate margin and profit or loss for a 0.01 lot euro/USD buy order using the ask and bid prices, where one lot equals 100,000 euros, with 100x leverage.
Compute euro USD profit by pip movement with a 100,000 lot size, showing current and previous values, the difference, and profits for 1, 0.1, and 0.01 lots for future calculations.
Explore forex order types, including market execution and pending orders such as stop and limit orders, demonstrated in Metatrader with current price examples.
Copy and adapt a Python function to place a list of sell stop orders below the current market price, preparing code to execute multiple orders.
Place take profit and stop loss levels in a forex trade, modify the order accordingly, run the test, and observe the tp and sl before closing the order.
Place a sale stop order at a chosen level, set the take profit and stop loss accordingly, review the order, and close it.
Create functions to place orders automatically by defining a gap and profit in pips, and calculate buy stop, sell stop, stop loss, and take profit from bid and ask.
Build a trailing stop loss in Python for forex trades by calculating the new stop using the current price, initial distance, and the active position type (buy or sell).
Experience live testing of a forex news trading bot, observe order placement, trailing stop loss in action, and how the strategy reacts to highly volatile markets during major events.
Modify a forex trading bot to place orders at news event release (part 1) by importing time and datetime, creating timestamps, and triggering orders when current timestamp >= set timestamp.
Test a modified forex trading bot that places orders at one past 48 minutes, preserves microseconds, runs, and confirms the bot is working as expected during the news event.
Master forex news trading by using an economic calendar to track high impact euro/USD events, set the correct time zone, and trade only euro/USD to avoid high spreads.
Live trading the news event triggers take profit, delivering $20 profit after commissions and $17 net profit.
update the forex data Excel sheet by noting the entry price and initial spike, calculating the six pips difference, and marking high spread in red with negative stop-loss values.
Forex news trading is a popular trading strategy that involves taking advantage of market volatility resulting from major news releases. News releases can have a significant impact on the foreign exchange market, causing rapid price movements that present traders with lucrative trading opportunities.
In forex news trading, traders use economic news releases, such as employment data, GDP, interest rate announcements, and other key economic indicators, as a trigger for their trades. The idea is to enter the market as soon as possible after the release of the news to take advantage of the market volatility and profit from the price movement.
The ability to react quickly is crucial in news trading. Therefore, we are developing a trading bot that can automate the process of news trading.Following each trade, we are recording the data from the corresponding news event. We are then utilizing this data in future trades to fine-tune the bot. As a result, the bot will progressively improve its accuracy over time.
Course content -
Basics of Python
Data Analysis with Pandas Library in Python
Basics of Forex
Connecting MetaTrader with Python and Building the Functions of the Trading Bot
Assembling the Trading Bot
Live News Trading – Example 1
Live News Trading – Example 2
Live News Trading – Example 3
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
Connecting MetaTrader with Python and Building the Functions of Trading Bot
Placing Buy Stop and Sell Stop Orders Automatically
Building Trailing Stop loss and Take Profit
Assembling the Trading Bot
We Will Put All the Functions Together and Assemble the Trading Bot
Live Trading
Configuring Economic Calendar and Selecting Suitable News Events for Trading
Selecting Suitable Currency Pairs
Adjusting the Settings of the Bot According to the Past News Data
Live Trading the News Event
Updating the News Data After Each Trade
In this course, you'll discover techniques that are practical and unique. You won't find these techniques anywhere else, as they are based on my own experiences. By the end of the course, you'll have the ability to enhance these techniques and create even more powerful trading bots. Additionally, you'll receive 24/7 support. If you have any questions, simply post them in the Q&A section, and we'll respond within 24 hours.