ht h trader

ht h trader
Download ALL MT5 experts (1593)
YouTube Video Thumbnail



Similar MetaTrader Tools

ht h trader

Info

The ht h trader is a Expert Advisor for MetaTrader 5 that hedge the hedgetrader was developed to hedge the normal hedge(eurusd hedged with usdchf). pairs-trading, at times, has heavy dd.

Usage

This tool is typically used for automated trading on major forex pairs and gold.

Platform

This Expert Advisor works exclusively on MetaTrader 5 (both build 600+ and newer versions).

Setup

Place the downloaded file in MQL5/Experts folder via File ? Open Data Folder in MetaTrader 5.


How to Install and Use ht h trader

1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.

2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.

3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.

4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.

Frequently Asked Questions

Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.

Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.

Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.

What this tool does

hedge the hedgetrader was developed to hedge the normal hedge(eurusd hedged with usdchf).

Typical Use Case

This Expert Advisor excels in automated trading and technical analysis on MetaTrader 5.

Compatible Platform & Setup

This Expert Advisor works on MetaTrader 5. Place the file in the MQL5/Experts folder and restart the terminal.

Description & Settings

Related: Professional Automatic Trailing Stop Utility for MetaTrader 5 - another powerful expert for MetaTrader 5 traders.


Also recommended: Professional Margin Requirement Calculator for MetaTrader 5 - similar expert with strong performance on MetaTrader 5.

hedge the hedge
trader was developed to hedge the normal hedge(eurusd hedged with usdchf). pairs-trading, at times, has heavy dd. this trading strategy tries to
hedge the hedge
to reduce the heavy drawdown that is experienced by traders.
hth
trader, hedges
eurusd with usdchf
, and
gbpusd with audusd
, creating
hedge the hedg
e
strategy. the strategy trades (4) positions per day. the dd is also limited since the hedged positions are only allowed to stay live for the length of one day. when the new day starts, when the on the current broker is greater than zero, the ea enters. the ea waits until the is 23 to close the current positions. the ea restarts, when the new day starts.

when the deviation of previous day for eurusd is positive, the ea enters with long eurusd, long usdchf, short gbpusd and long audusd. in this case, eurusd is hedged with usdchf, eurusd is hedged with gbpusd, usdchf is hedged with audusd, and gbpusd is hedged with audusd.

when the deviation of previous day for eurud is negative, the ea enters with the short eurusd, short usdchf, long gbpusd and short audusd.

there is strong correlation between eurusd/usdchf ratio and gbpusd/audusd ratio, hence it is possible to
hedge the hedge
.
new function: emergency trading
if 'enable_emergency_trading' is set to 'true', this ea waits for the loss to reach 'emergency_loss' pip value, to enter into new trades. the new trades are going to be the positive profited positions. for example, if you have eurusd in loss, usdchf in loss, gbpusd in profit and audusd in profit, when 'emergency_loss' is reached, the ea will open a clone of the gpbusd position and the audusd position, since they are positive in profit. this function is setup to have a single execution per day, if 'emergency_loss' pip value is reached, only execute 'emergency_trading' function once, then restart the next day. this function cannot be turned off, unless the code is deleted.
ea options:

trade | enables trading, if set to true

c1 | 1st currency

c2 | 2nd currency

c3 | 3rd currency

c4 | 4th currency

show_profit | enables tracking of profit/loss of all trades executed by this ea

enable_profit | enable profit monitoring, to close all positions

enable_loss | enable loss monitoring, to close all positions

enable_emergecy_trading | enables to enter new trades when profit reaches emergency_loss pip value

profit | pip value

loss | pip value

magicnumber1 | number to track c1

magicnumber2 | number to track c2

magicnumber3 | number to track c3

magicnumber4 | number to track c4

e_magicnumber | number to track emergency trades

lot | order lots

You may also like: KCI N-Matrix Engine: Advanced Trading Framework for MetaTrader 5 - excellent alternative for expert users on MetaTrader 5.

Source Code

#property copyright "robotfx"
#property link "https://robotfx.org"
#property version   "1.001"
#include <trade\positioninfo.mqh>
#include <trade\trade.mqh>
#include <trade\symbolinfo.mqh>  
cpositioninfo  m_position;                   // trade position object
ctrade         m_trade;                      // trading object
csymbolinfo    m_symbol;                     // symbol info object
input bool trade=true;

.......

Leave your opinion, ask a question, share some knowledge

Limitations & Risk Warning

  • This tool is provided for educational and testing purposes only.
  • Past performance does not guarantee future results.
  • Trading involves substantial risk of loss. Use on a demo account first.
  • Results may vary depending on market conditions, broker, and settings.
  • We recommend thorough backtesting and forward testing before using with real funds.
© ROBOTFX Free educational tools by RobotFX. Use entirely at your own risk; we are not liable for any financial losses incurred.