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

PDH PDL Sweep Levels - MetaTrader 5용 지표

Cristhian Alexander Gaibor Cuasquer
Cristhian Alexander Gaibor Cuasquer
4.7 (44)
2017년부터 트레이더이자 MQL5 회원입니다.
9년 동안, 대부분 XAUUSD 차트 앞에서 보낸 뒤, 제가 실제 매매에서 쓰는 도구들을 공개하기로 했습니다. 팔기 위해 만든 것은 하나도 없습니다. 모두 제게 필요해서 만들었습니다. 더 명확한 차트 해석, 모든 거래를 위한 계획, 정직한 통계, 통제된 리스크, 그리고 휴대폰으로 오는 알림입니다.
조회수:
552
평가:
(1)
게시됨:
업데이트됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

The previous day high and low on Gold (XAUUSD) are where the stops sit, and price often runs them and snaps back. This indicator draws the previous day high and low (PDH, PDL), the previous week high and low (PWH, PWL), today's open and this week's open, and puts an arrow on the candle that sweeps one of those levels.

A sweep counts only on a closed candle: the wick goes beyond the level and the close comes back inside. A poke through the low that closes above it gets a green arrow, a poke through the high that closes below it gets a red one. The forming candle never gets an arrow, so nothing appears and then disappears.

A sweep is a sign that stops were taken, not an entry by itself. Price can sweep, come back and keep going, so pair it with your own structure or confirmation.

PDH PDL Sweep Levels with the previous day high and low, the previous week high, the day open and two sweep arrows on a XAUUSD M15 chart in MetaTrader 5

Settings

  • Previous day high and low, previous week high and low and today open and this week open: each can be turned on or off. All on by default.
  • Bars the lines extend to the right: default 10. Colours for day, week and opens, and text labels with the price.
  • Mark sweeps of the day levels and of the week levels: both on.
  • Minimum poke beyond the level, in points: default 0. Raise it to ignore wicks of one or two points.
  • Alerts: popup, push and sound, all off by default. They fire once, on the candle that just closed.

What it needs

Any symbol, any timeframe below D1. Day and week are the broker server day and week, read from the D1 and W1 history, so the levels match the daily candle of your broker. If that history is not loaded yet the indicator waits and fills in when it arrives. Lines and labels are standard chart objects, the arrows are two indicator buffers, and it never trades. Push notifications need your MetaQuotes ID in the terminal options.

Make it yours

Run it on XAUUSD, XAGUSD, EURUSD, GBPUSD, US30 or NAS100 and compare how often the London or New York session sweeps the PDH or PDL on M5 and M15. From an EA you can read it with iCustom: buffers 0 to 3 are PDH, PDL, PWH and PWL for every bar, buffer 4 the sweep of a low and buffer 5 the sweep of a high. It is a natural trigger next to Smart Money Concepts structure: wait for the sweep, then for the change of character. XP_Prev and the sweep check inside OnCalculate are short and easy to reuse.

About this code

Open source. Use it as it is, adapt it, build your own version on top of it. Questions, suggestions and your own tests are welcome in the comments below.

Changelog

v1.0 (2026-11-20): initial release.

Daily Loss and Profit Lock Daily Loss and Profit Lock

Daily loss limit EA for MT5 on prop firm and funded accounts, Gold (XAUUSD), forex and indices: closes every position at the daily loss or profit limit, deletes pending orders and locks trading until the next day. Open source code.

Premium Discount OTE Zones Premium Discount OTE Zones

Premium and discount zones for MT5 on Gold (XAUUSD), forex and indices: dealing range from confirmed swings, equilibrium 50 percent, 25 and 75 percent lines and the OTE band of the last leg. Open source code.

News Straddle EA Economic Calendar News Straddle EA Economic Calendar

News trading EA for Gold (XAUUSD) and forex: places a Buy Stop and a Sell Stop seconds before each release of the MT5 economic calendar, one cancels the other, stop loss, take profit and trailing in points. Open source code.

Close All at Total Profit or Loss (money) Close All at Total Profit or Loss (money)

Utility EA that closes all positions (and optionally deletes pending orders) when the total floating profit reaches your target or the total floating loss reaches your limit, in account currency. It never opens trades.