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

Premium Discount OTE Zones - MetaTrader 5용 지표

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

Buying in the expensive half of a move is where a lot of Gold (XAUUSD) trades go wrong. This indicator takes the last confirmed swing high and swing low as the dealing range, splits it at 50 percent and shades the top half as premium and the bottom half as discount, the way ICT traders read it.

On top it marks the OTE band, 62 to 79 percent of the last leg. If the swing low came first the leg is up and the band sits in discount for buys. If the swing high came first it sits in premium for sells. A swing counts only when 5 bars on each side confirm it, so nothing moves on the forming candle. A second mode uses the highest high and lowest low of the last 100 closed bars.

It only marks where price sits inside the range. It does not say buy or sell. Use it as a filter next to your own entry, for example longs only from discount in an uptrend.

Premium Discount OTE Zones with the premium and discount boxes, the equilibrium line and the OTE band on a XAUUSD M15 chart in MetaTrader 5

Settings

  • How the range is found: last confirmed swing high and swing low (default) or highest and lowest of the last N closed bars.
  • Swing strength: bars on each side that confirm a swing. Default 5, allowed 1 to 50.
  • Closed bars for the lookback mode: default 100.
  • Bars the zones extend to the right: default 15.
  • Show the OTE band (on), OTE band start and end in percent of the leg (62 and 79), and its colour.
  • Show the 25 and 75 percent lines, Show text labels and Fill the boxes: all on by default. Premium, discount and equilibrium colours can be changed.
  • Alerts: popup, push and sound, all off by default. They fire once when a closed candle ends in the other half of the range than the candle before it.

What it needs

Any symbol and any timeframe. It draws with standard chart objects (rectangles, trend lines and text) and never trades. On the first run and on every new bar it recalculates from the history on the chart. Push notifications need your MetaQuotes ID in the terminal options. Wrong inputs stop it with a message in the log.

Make it yours

Run it on XAUUSD, XAGUSD, EURUSD, GBPUSD, US30 or NAS100 and compare M15, H1 and H4, and swing strength 3, 5 and 10. From an EA you can read it with iCustom: buffer 0 is the range high, buffer 1 the range low, buffer 2 the equilibrium and buffer 3 the zone of each bar (1 premium, -1 discount), buffers 4 and 5 the top and bottom of the OTE band. It fits next to Smart Money Concepts structure, order blocks or fair value gaps: take the setups that form in discount for buys and in premium for sells. XP_IsSwingHigh, XP_IsSwingLow and the drawing helpers are small functions you can lift into your own code.

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.

Opening Range Breakout EA Gold Opening Range Breakout EA Gold

Opening range breakout EA for MT5 on Gold (XAUUSD), forex and indices: trades the first candle that closes outside the opening range, stop at the range, target in multiples of the stop, lot by risk, end of day close. Open source code.

Spectar Prop Challenge Dashboard Spectar Prop Challenge Dashboard

Read-only panel with the numbers a prop-style challenge is judged on: today's result from server midnight (closed plus floating), room to your daily loss limit, static or trailing overall floor, profit target and trading days.

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.

PDH PDL Sweep Levels PDH PDL Sweep Levels

Previous day high and low indicator for MT5 on Gold (XAUUSD), forex and indices: PDH, PDL, previous week high and low, day and week open, and an arrow when a closed candle sweeps a level and closes back inside. Open source code.