
Build the exhausted price expert advisor by calculating midnight to 10 a.m. highs and lows, doubling the range to buy and sell limits with cost averaging and trailing stops.
Configure an exhausted price expert advisor by creating general inputs (symbol, traded time frame, magic number, maximum slippage) and implementing initialization, deinitialization, and OnTick logic.
Create exhausted price lines on the main chart with a draw_lines function, returning true when drawn, and manage color, style, width, and new day detection using price data.
Compute the overbought and oversold levels from the session high and low, calculate the range, and draw exhaustion lines while setting a daily start time in MQL5.
Count trades and pending orders in an advanced MQL5 expert advisor using the trait class, position info, and order info, filtering by symbol, magic number, and comments.
Learn to calculate dynamic position sizes from account balance using a risk inputs group, volume increase and edit, and a volume ratio to maintain consistent compounding.
Enter pending orders at oversold and overbought levels using buy and sell pending orders, with comments and two functions that manage and delete existing pending orders.
Explore how to add trailing stops in an advanced MQL5 expert advisor, including setting 10-pip entry triggers, trailing at 25 pips, cost averaging logic, and dynamic stop loss adjustments.
Learn to compute the next entry price for cost averaging trades by building a double-valued function that handles both buy and sell positions and applies a multiplier.
Calculate the next entry volume for cost averaging by examining open positions, tracking current lot sizes, and adjusting the next lot within lot steps.
Master entering cost averaging trades in MQL5 by configuring buy and sell limit orders, lot sizing, and trade comments, and by using boolean functions to detect when pending orders trigger.
Test and finalize a MQL5 expert advisor by integrating trailing stops, cost averaging, session-based entries, and pending orders, then manage resets on new days and ticks.
Test the exhausted price expert advisor with a $3,000 account in visual mode, validating buy and sell limits, trailing stop behavior, and potential big profits.
In this course, I am going to teach you how to take advantage of a concept in trading based on lack of infinite capital from market participants that explains why price retraces and reverses after a build up of momentum in one direction. This concept is known as price exhaustion. As the name implies, at price exhaustion levels, we expect price to reverse or retrace after a build up of momentum in one direction for the day. This gives us an edge to know where we would ideally want to buy or sell ahead of time, allowing us to be better placed market participants.
In this course, trade management will be key in helping us capitalize on our pin point entries, we are going to use a trailing stoploss and cost averaging. However the trailing stoploss is designed for both single entry trades and cost averaging trades, helping us earn the capability of milking the market out of all the juice it has in a single direction. Helping us earn huge wins in the market. Cost averaging will also be implemented in a way that the distance between trades expands after every 3 trades, ensuring that we enter fewer trades per given trade distance helping us avoid loss of margin.
To demonstrate the exhausted price theory for trade signal generation, am going to use a mean reversion strategy in the form of the exhausted price expert advisor. So in this course, am going to teach you how to code an exhausted price mean reversion system that uses a trailing stop in cost averaging. So I shall first guide you through the logic of the strategy we are going to develop. Then we shall focus on developing the entry logic of the EA. After that, we shall develop the risk management part of the EA, then finally we shall focus on how we shall close our trades using the trade management technique proposed in this course. I'll walk you through the entire logic of the code, ensuring you understand each step of the coding process.
If you're still familiarizing yourself with MQL5, don't worry. As long as you understand the basics, this course is perfect for you. I'll patiently guide you through every step, ensuring you grasp the concepts behind each line of code. By the end of this course, you'll have gained the skills necessary to code similar trading models based on the exhausted price theory.
So, hit the enroll button now and join me on this exciting journey of coding an exhausted price based trading strategy using the MQL5 algorithmic trading language!