거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
조회수:
21651
평가:
(9)
게시됨:
2008.10.30 07:17
업데이트됨:
2016.11.22 07:32
HTH.mq4 (12.97 KB) 조회
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Description:

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 hedge 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 Hour() on the current broker is greater than zero, the EA enters. The EA waits until the Hour() 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.

if(enable_emergency_trading==true && totalprofit<=-emergency_loss){doubleorders();}



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
Trend ManagerNT Trend ManagerNT

Indicator TrendManagerNT.

NewTrend_v1 NewTrend_v1

Indicator NewTrend_v1.

Indicator of STOPLEVEL. Indicator of STOPLEVEL.

Indicator of STOPLEVEL.

GraphOnGraph GraphOnGraph

A simple indicator that displays the chart of the symbol in the window of another symbol.