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

Popular (1M views) 4 Hour Range Strategy coded and tested - MetaTrader 4용 expert

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

Provided for educational purposes; not trading advice. Backtests on EURUSD under my conditions were unprofitable.

The strategy follows the following logic:

  1. First the strategy marks the high and the low of the first 4H candle, using the New york time zone.
  2. After the first 4H candle is formed the strategy waits for a 5 Minute candle to close outside the Range.
  3. If a 5 Minute candle closes above the High and then a 5 Minute candle closes back in the Range, there is a sell signal.
  4. If a 5 Minute candle closes below the Low and then a 5 Minute candle closes back in the Range, there is a buy signal.

There was one vague rule the strategy did not follow regarding the orderblock. To avoid trades after the price has overextended beyound the range, a time filter was introduced and if the price stayed above the high or below the low for more than 75 Minutes the trade is marked as invalid.

It is of utmost importance to specify your own broker's GMT offset times and the dates when the switching from Summer time to Winter time (and vica versa). Since this strategy is based on the New York local time, a single error in this can offset the whole strategy.

Here are the input parameters for the strategy:

  1. ServerGMTOffsetWinter: The GMT offset of the broker's server in winter time.
  2. ServerGMTOffsetSummer: The GMT offset of the broker's server in summer time. (Can be the same as Winter offset for brokers with fixed GMT offset)
  3. ServerSwitchToSummerMonth: The month when the broker switches to summer time zone.
  4. ServerSwitchToSummerDay: The day of month when the broker switches to summer time zone.
  5. ServerSwitchToWinterMonth: The month when the broker switches to winter time zone.
  6. ServerSwitchToWinterDay: The day of month when the broker switches to winter time zone.
  7. Lots: Lotsize

Here are the backtest results of the backtest for EURUSD:

Backtest report for MT5

Equity curve


StrategyTester in pips StrategyTester in pips

Tester statistics in pips with an early filter. This is how it should be done.

iVIDyA indicator for mt4 iVIDyA indicator for mt4

VIDyA is only available by default in mt5, here is it's mt4 equivalent. Note if using it with an EA call it using the iCustom() function.

Expert Advisor required to fetch news data for the FFC Calendar indicator. Expert Advisor required to fetch news data for the FFC Calendar indicator.

This is a utility Expert Advisor required to fetch news data for the FFC Calendar indicator. It uses native WebRequest to download data safely without DLLs. Install this in MQL4/Experts folder and run on a separate chart.

MACD Sample MACD Sample

Classical MACD Sample.