Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Telegram !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Indicateurs

Previous Day and Week Levels with Round Numbers - indicateur pour MetaTrader 5

Kenichiro Sakamoto
Kenichiro Sakamoto
5 (2)
Je suis Kenichiro Sakamoto, le développeur de FXEA365, un studio qui conçoit des Expert Advisors transparents et basés sur des règles pour MetaTrader 5.
Vues:
74
Publié:
sr_lines.png (51.18 KB)
MQL5 Freelance Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

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.