거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
Experts

Breakout Martin Gale Expert Advisor for MT5 - MetaTrader 5용 expert

조회수:
12667
평가:
(11)
게시됨:
2023.09.26 12:00
\MQL5\Include\
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

The "Martin Gale Breakout" strategy is an Expert Advisor (EA) designed for trading in the Forex market. This EA combines a breakout trading approach with elements of the Martin Gale money management system to optimize trading performance.

Input Parameters:

  • TakeProfPoints: This parameter allows you to set the Take Profit level in points for each trade.

  • BalancePercentageAvailable: Specify the percentage of your account balance that will be used for trading.

  • TP_Percentage_of_Balance: It determines the percentage of your account balance to be used as Take Profit for each trade.

  • SL_Percentage_of_Balance: This sets the percentage of your balance to be allocated as the Stop Loss for trades.

  • Start_The_Recovery: This parameter plays a crucial role in the recovery process, controlling when and how recovery measures are activated.

  • TP_Points_Multiplier: A multiplier for Take Profit points, allowing for flexible profit-taking strategies.

  • MagicNumber: An identifier unique to this EA, ensuring it can manage its own trades independently.

Strategy Highlights:

  1. Breakout Trading: The EA specializes in identifying breakout opportunities in the market, where price movements breach key levels.

  2. Dynamic Lot Sizing: Lot sizes are dynamically adjusted based on your account balance and risk preferences, following the Martin Gale money management principles.

  3. Loss Recovery: The EA includes a powerful recovery mechanism designed to recover losses by adaptively modifying trade parameters when necessary.

The main function that is used in this EA is the CalcLotWithTP() function which has 3 input parameters: Takeprofit, Startprice, Endprice. It calculates the volume needed for the trade so that it achieves the profit goal when it enters a trade at the Startprice and exits at the Endprice.

Everything in the code is commented, so that the understanding of it is made easier.

I've made a youtube video about it:

 

Backtest results with ideal parameters

Input values



    Check for Market Open Hours Check for Market Open Hours

    This Include File checks for Market Open Hours. An EA to test it is also included.

    ATR - Average True Range - code for beginners by William210 ATR - Average True Range - code for beginners by William210

    ATR - Average True Range - beginner tutorial to learn how to code in MQL5

    ATR Trailing Stop with 1 Buffer only ATR Trailing Stop with 1 Buffer only

    This is an edit of the Mod_ATR_Trailing_Stop by MQL5 user @Scriptor found here https://www.mql5.com/en/code/20423 . MT5 indicator .mql5 and .ex5 files, report any bugs, I'll fix.

    Double Bolling Band Signal Double Bolling Band Signal

    Let follow previous EA by this link https://www.mql5.com/en/code/46630