cm H V levels
Download scriptThis script is designed for the MetaTrader trading platform to automatically generate visual markers on your trading charts. It helps traders identify specific price levels and historical timeframes by drawing a grid of horizontal and vertical lines based on user-defined settings.
Core Functionality
The script operates by performing two primary visual tasks:
1. Horizontal Price Grid The tool identifies the current market price (the "Bid" price) and uses it as an anchor point. From this price, it calculates a series of specific price increments based on the "Point" value you choose in the settings.
- It automatically draws multiple horizontal lines both above and below the current price.
- This creates a visual "ladder" or grid, allowing you to see significant price levels at a glance without having to manually plot them.
2. Vertical Time Markers The script can also be configured to mark specific time intervals on your chart.
- It looks back through historical data based on the timeframe selected in the settings (e.g., H1, M15, D1).
- It places vertical lines at consistent intervals across the history of the chart.
- This helps in identifying the start times of previous candles or periods, providing a clearer sense of time progression on the screen.
Customization Options
Users can personalize the appearance and behavior of these markers through several settings:
- Point Value: You can define the distance between each horizontal line (e.g., how many pips or points apart they should be).
- Timeframe: You can choose which historical time intervals the vertical lines should represent.
- Visual Style: The script allows you to customize the thickness, line style (such as solid or dashed), and color of the markings so they fit your specific chart aesthetic.
How it Works Automatically
Whenever the script is activated, it first clears any existing objects it created to ensure the chart stays clean. It then instantly populates the screen with the requested grid of lines. Because it uses "Horizontal" (HLine) and "Vertical" (VLine) objects, these markers remain fixed in their respective positions as new price data flows into the platform.
ÿþ/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
# p r o p e r t y c o p y r i g h t "