
Explore the Harriet hedging strategy in a multi-timeframe framework, using higher highs and higher lows to confirm trends on 5-minute and hourly charts, with hedging, trailing stops, and strategy tester.
Develop the Harriet momentum hedging expert advisor in MetaTrader, define general inputs (magic number, slippage, symbol, two timeframes), implement on init, on deinit, on tick, and test visually.
Learn to customize expert advisor chart by using chart set functions to switch to candlesticks, set background to black, foreground to white, adjust candlestick colors, stop levels, and hide volumes.
Develop an expert advisor that uses price action by storing higher and lower time frame candlestick highs, lows, opens, and closes in arrays and copies latest values on each tick.
Identify trends using higher lows and lower highs on hourly and 5-minute bars, implement boolean functions for higher low and lower high, and generate buy or sell signals.
Visualize and verify trading signals in test mode by drawing dynamic trend objects on MT5 charts, using a configurable name, period, and color to highlight first buy signals.
Add input parameters to regulate path sizes in a momentum hedging setup, defining higher and lower time frame minimum distances in pips and computing price values from symbol point.
Implement a new bar detection to control function calls, avoiding tick-by-tick processing by comparing higher and lower time frames and triggering actions only on new bars for efficiency.
Prepare expert advisor by including trade class, creating a CTrade object, and configuring take profit 30, stop loss 5, and auto lot risk with balance increase 3000 and volume 0.01.
Explore automated market entries in MQL5 by computing dynamic lot sizes from account balance, capping to symbol volume limits, and executing buy and sell trades with take profit targets.
Code the Harriet momentum hedging strategy in MQL5 by counting buy and sell trades, resetting booleans, and implementing trailing take profit from two buys’ average entry prices for hedged growth.
Compute the average buy and average sale prices across open positions, then implement trailing take profit and trailing stop for buy and sell trades with proper filtering.
Test the trailing take profit function by updating only when two or more buy or sell positions exist, using the average entry price to align profits.
Add a trailing stop loss for both buy and sell trades, triggered after ten pips and driven by a trailing mechanism that updates stop loss with the last closed candle.
debug the expert advisor by inspecting buy and sell functions, correcting take profit and trailing stop logic, and verify how stop loss and take profit drive profits during tests.
Test the Harriet momentum hedging strategy over four years with the strategy tester, noting a 28% drawdown and about 79% profit, and focus on minimal loss closures.
Conclude by inviting students to brainstorm innovative enhancements to the Hurriyet momentum hedging strategy in Mql5, aiming to increase profits while reducing drawdown without optimization, and to trade safely.
While short-term predictability exists to some extent, long-term market prediction remains a complex task for most trading systems based on technical analysis. This inherent unpredictability poses significant problems for trading systems, particularly those based on traditional methods with fixed stop loss trade management. Over time, these systems can become ineffective as market conditions evolve.
To address this issue and enable continuous profitability in the markets, it is crucial to adapt our approach and prioritize how we exit losing trades with minimal losses. This may involve delaying exits and focusing on locking in profits when our market direction predictions are correct. By implementing such a strategy, traders can navigate changing market conditions while still achieving growth and persistence in their trading accounts.
In this course, I am excited to introduce you to the Harriet trading strategy. The Harriet strategy is a robust hedging approach designed to capitalize on strong momentum conditions in the market. It employs creative, yet simple and ingenious methods of trade management to maximize profits when correct about market direction and minimize losses when incorrect. By adopting this strategy, traders can steadily grow their accounts over time, irrespective of the dynamic market environment.
The primary objective of this course is to raise awareness about trade management techniques that help reduce the impact of losses and enhance the chances of account growth, regardless of unforeseen market structures. This fosters a reliable trading edge that can withstand the test of time without the need for extensive parameter optimization, which often leads to overfitting, inconsistency, and low reliability in future markets.
It is important to note that this course is intended for educational purposes only and does not constitute investment advice. While the Harriet trading strategy offers valuable insights and techniques, it is not a guaranteed path to instant wealth. Nonetheless, experienced strategy developers and algorithmic traders can find value in exploring new ideas and approaches to gain an edge in the market. These concepts can be applied to their own trading strategies to effectively manage the impact of losing trades.
I invite you to join me in this course and delve deeper into the Harriet trading strategy. By enrolling, you will unlock a world of ingenious trade management creativity and discover how to navigate the markets with greater resilience. Click the enroll button now and embark on a journey towards new heights of trading success.