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

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

조회수:
409
평가:
(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:

Equity curve

Backtest report


PropGuard MT5 Daily Loss and Max Drawdown Dead-Line Visualizer (Dashboard and Line) PropGuard MT5 Daily Loss and Max Drawdown Dead-Line Visualizer (Dashboard and Line)

A chart-based risk monitor for prop-firm style rules: draws a live “Dead-Line” price level showing where your Daily Loss Limit or Overall Max Drawdown would be violated, based on equity, open exposure, and optional trailing drawdown.

MT5 Telegram Trade Notifier (Bot API) — Deal Alerts MT5 Telegram Trade Notifier (Bot API) — Deal Alerts

Utility MT5 EA that sends BUY/SELL deal notifications to Telegram via Bot API (WebRequest)

Wick Rejection Scanner Dashboard (Multi-Symbol / Multi-TF) Wick Rejection Scanner Dashboard (Multi-Symbol / Multi-TF)

Scan multiple symbols and timeframes for wick-based rejection candles and display the latest signals in a clean on-chart dashboard with strength scoring, signal age, optional markers, and alerts.

News Spread Risk Dashboard (Spike and Gap Monitor) News Spread Risk Dashboard (Spike and Gap Monitor)

A compact on-chart dashboard that monitors live spread behavior, tracks rolling Min/Max/Avg, and warns on abnormal spread spikes (news, low liquidity, rollover) using adaptive or fixed thresholds with optional alerts.