Prior Period Levels and Pivot Points Indicator

Prior Period Levels and Pivot Points Indicator
Download ALL MT5 indicators (6081)
YouTube Video Thumbnail



Similar MetaTrader Tools

Prior Period Levels and Pivot Points Indicator

Info

The Prior Period Levels and Pivot Points Indicator is a Indicator for MetaTrader 5 that prior levels and pivots displays key trading levels on your chart for gold (xauusd), oil, and forex. These include the prior period's high, low, and close, the current period's open, and pivot support and resistance levels.

Usage

This tool is typically used for enhancing chart analysis and decision making.

Platform

This Indicator works exclusively on MetaTrader 5 (both build 600+ and newer versions).

Setup

Place the downloaded file in MQL5/Indicators folder via File ? Open Data Folder in MetaTrader 5.


How to Install and Use Prior Period Levels and Pivot Points Indicator

1. Installation: Place your file in the MQL/Indicators folder via "Open Data Folder" and restart your terminal.

2. Loading: Find the indicator in the Navigator, drag it onto your chart, and configure the input parameters in the popup window.

3. Customization: Press Ctrl+I to open the indicator list, select your tool, and click "Properties" to change colors, levels, or visual styles.

4. Updating: Replace the old file in the Indicators folder with the new version and restart the platform to apply changes.

Frequently Asked Questions

Q: Why is my indicator not showing? A: Verify the file is in the MQL/Indicators folder, or try right-clicking the "Indicators" tree in the Navigator and clicking "Refresh."

Q: Do custom indicators slow down the platform? A: Too many complex indicators can impact performance; remove unused ones via the "Indicator List" (Ctrl+I).

Q: Can I use MT4 indicators on MT5? A: No, MQL4 and MQL5 are distinct languages; ensure the indicator is compiled specifically for your platform version.

What this tool does

Prior Levels and Pivots displays key trading levels on your chart for gold (XAUUSD), oil, and forex.

Typical Use Case

This Indicator excels in automated trading and technical analysis on MetaTrader 5.

Compatible Platform & Setup

This Indicator works on MetaTrader 5. Place the file in the MQL5/Indicators folder and restart the terminal.

Description & Settings

Related: Periodic VWAP Bands - another powerful indicator for MetaTrader 5 traders.

Prior Levels and Pivots displays key trading levels on your chart for gold (XAUUSD), oil, and forex. These include the prior period's high, low, and close, the current period's open, and pivot support and resistance levels.

Also recommended: Prior Bar Break Odds with Level Bars and Rolling Hit Rate - similar indicator with strong performance on MetaTrader 5.




Levels

- Define levels based on the previous day, week, or month.
- Select pivot calculation methods: Classic, Fibonacci, Camarilla (R1-R4 / S1-S4), or Woodie.
- Utilize prior day high, low, and close (PDH / PDL / PDC), prior week high, low, and close (PWH / PWL / PWC), or prior month high, low, and close (PMH / PML / PMC).
- Display the current period's open (DO / WO / MO).
- Optionally show midpoints between pivot levels for Classic, Fibonacci, and Woodie formulas.
- Visualize past levels by drawing them for a specified number of periods, allowing analysis of historical price behavior around these levels.
- The current period's lines are drawn thicker and labeled. Overlapping labels are merged for clarity, for instance, "PDC / DO / PDL". Hover over a line to view its precise price.



Panel

- Displays the current price.
- Shows the nearest level above and below the current price, including its price and the distance in points.
- Indicates the percentage of the prior period's range covered by the current period (e.g., "38% of prior").

An optional alert can be configured to trigger when price crosses one of the current period's levels, with an adjustable tolerance in points.



Notes

- Level calculations use your broker's daily, weekly, and monthly bars, adhering to the broker's server time.
- Distances are measured in points specific to the symbol (e.g., for a 3-digit gold quote, 1 point equals 0.001).
- The indicator functions on any symbol and timeframe.

This indicator solely reads and displays price information; it does not execute, modify, or close trades, and makes no guarantees regarding trading outcomes.



Inputs

- Level Period: Choose between daily, weekly, or monthly levels.
- Pivot Formula: Select Classic, Fibonacci, Camarilla, or Woodie.
- Number of Periods to Draw: Specify how many past periods to display (1 shows only the current period).
- Display Options: Enable or disable the display of pivot, R and S levels, prior high, low, and close, and current period open.
- Show Midpoints: Enable or disable the display of midpoints between pivot levels.
- Level Labels: Control the display of level labels and whether to include prices on the labels.
- Appearance: Customize colors, line widths (defaulting to 2 for the current period and 1 for older periods), and label font size.
- Nearest Level Panel: Enable or disable the panel displaying the nearest levels. Configure panel position (X/Y offset), font size, and color.
- Level Touch Alert: Enable or disable alerts for price crossing current period levels. Set the touch tolerance in points (0 means an exact cross).

You may also like: time closing period indicator - excellent alternative for indicator users on MetaTrader 5.

Source Code

#property copyright "RobotFX"
#property version   "1.00"
#property description "This code is educational. Feel free to use, modify and upgrade as you wish. Visit ROBOTFX.ORG for professional trading tools"
#property indicator_chart_window
#property indicator_plots 0
enum ENUM_PIVOT_TYPE
  {
   PIVOT_CLASSIC   = 0,
   PIVOT_FIBONACCI = 1,
   PIVOT_CAMARILLA = 2,

.......

Leave your opinion, ask a question, share some knowledge

⚠ Limitations & Risk Warning

  • This tool is provided for educational and testing purposes only.
  • Past performance does not guarantee future results.
  • Trading involves substantial risk of loss. Use on a demo account first.
  • Results may vary depending on market conditions, broker, and settings.
  • We recommend thorough backtesting and forward testing before using with real funds.
© ROBOTFX Free educational tools by RobotFX. Use entirely at your own risk; we are not liable for any financial losses incurred.