Arc
Download scriptThis script is a specialized technical tool for the MetaTrader 5 platform designed to provide an interactive, visual representation of price movements on a trading chart. Instead of relying on standard lagging indicators, it uses a geometry-based logic to project "arcs" or curves based on specific data points selected by the user.
Core Functionality
The primary purpose of this tool is to allow a trader to click on various points on a chart and have the script automatically generate mathematical curves between those points. These curves help in visualizing potential price trajectories or identifying structural trends based on quadratic modeling.
Key Interactive Features
- Interactive Button: The script creates a visual button on the chart. This button provides feedback by changing its size and color as the user moves their mouse near it, indicating that the tool is ready for interaction.
- Click-to-Plot System: The user can click up to four different points on the chart. Each click "pins" a specific price and time coordinate.
- Dynamic Curve Generation: Once the points are set, the script performs behind-the-scenes calculations:
- Linear/Arc Projection: It calculates the trajectory between coordinates to draw lines that follow a smooth arc.
- Quadratic Modeling: The logic includes complex formulas to determine curvature based on the distance and relationship between the pinned points, effectively creating a parabolic flow of price action.
- Real-Time Visual Feedback: As the user moves their mouse over existing arcs or adds new points, the script instantly updates the drawing to reflect the change in perspective or position.
Technical Behavior for the User
- Input Handling: The script monitors mouse movements and clicks specifically to distinguish between a user simply moving their mouse and a deliberate "pinning" of a data point.
- Visual Rendering: It utilizes a high-quality drawing system (Canvas) to ensure that the arcs, lines, and dots appear smoothly on the chart without cluttering the price bars.
- Auto-Correction: The logic includes a small buffer to detect if a new click is too close to an existing point, ensuring that the curves remain distinct and usable rather than overlapping in a confusing way.
Summary for Traders
This tool transforms your chart into an interactive laboratory. By clicking on key price levels, you can "bridge" those points with calculated arcs, allowing you to visualize complex trend structures and potential price targets through mathematical geometry rather than just standard lines.
ÿþ/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
/ / | A r c . m q 5 |
/ / | S e m k o N i k o l a i |
/ / | h t t p s : / / w w w . m q l 5 . c o m / r u / u s e r s / n i k o l a y 7 k o |
/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
# p r o p e r t y c o p y r i g h t "