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

Previous Day and Week Levels with Round Numbers - MetaTrader 5용 지표

Kenichiro Sakamoto
Kenichiro Sakamoto
5 (2)
저는 Kenichiro Sakamoto이며, MetaTrader 5용 투명하고 규칙 기반의 EA(Expert Advisor)를 만드는 스튜디오 FXEA365의 개발자입니다.
조회수:
74
게시됨:
sr_lines.png (51.18 KB)
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

The indicator draws reference levels as horizontal lines on the chart. It takes the high and the low of the previous daily bar and of the previous weekly bar and adds a set of round-number levels above and below the current price. The daily levels are solid lines, the weekly levels are dashed lines and the round numbers are dotted lines.

The round-number spacing can be entered in price units in InpRoundStep. When it is left at 0, the spacing is chosen from the number of digits of the symbol: 0.0050 for 5-digit quotes, 0.50 for 3- and 4-digit quotes and 10.0 for quotes with fewer digits. The grid is anchored to the round level at or just below the current price, and InpRoundCount more lines are drawn on each side of it.

The lines are rebuilt once per new bar, so the load on the terminal is small. Each line has a tooltip with its name and price. The daily and weekly values come from the D1 and W1 history of the chart symbol, and a level is skipped while that history is not available yet. All objects are removed when the indicator is deleted from the chart.

Input parameters

  • InpShowPrevDay - show the high and low of the previous day (default true).
  • InpDayColor - colour of the previous-day lines (default DodgerBlue).
  • InpShowPrevWeek - show the high and low of the previous week (default true).
  • InpWeekColor - colour of the previous-week lines (default MediumPurple).
  • InpShowRound - show the round-number levels (default true).
  • InpRoundStep - spacing of the round-number levels in price units; 0 selects it automatically (default 0).
  • InpRoundCount - number of round-number lines on each side of the current price (default 5).
  • InpRoundColor - colour of the round-number lines (default DimGray).
  • InpLineWidth - width of all lines (default 1).

The indicator only draws objects and has no buffers. It does not place or manage trades.

Previous day and week levels with round numbers on EURUSD H1

True Trading Cost - Net Risk Reward Calculator for MT5 True Trading Cost - Net Risk Reward Calculator for MT5

Free MT5 chart planner with draggable entry, stop and target levels, spread, risk-based lots, fees, estimated swap, break-even and net risk/reward. Indicator only; no orders.

Equivalence Checker: Regression Testing for MQL5 Indicators Equivalence Checker: Regression Testing for MQL5 Indicators

A regression-test harness for indicator code. It compares an incremental, tick-by-tick calculation (the way OnCalculate runs live) with an independent from-scratch reference on a fixed dataset, flags every deviation, and prints a regression digest you can compare between versions of your code.

Donchian Breakout Channel with ATR Trailing Stop Donchian Breakout Channel with ATR Trailing Stop

Plots a Donchian channel built from closed bars, arrows after a close outside the channel and a two-colour ATR trailing stop line that follows the breakout direction.

Confirmed Swing Pivots with Trend MA Confirmed Swing Pivots with Trend MA

Marks swing highs and lows that are confirmed by a fixed number of bars on both sides and plots a simple moving average for trend context.