LRDegrees
Download scriptThis tool is designed for traders using the MetaTrader 4 platform to analyze market trends through a sophisticated "Double Linear Regression" method. Instead of just looking at where the price is now, this script calculates the mathematical trajectory of price movement over specific windows of time to help identify the underlying trend direction and strength.
Core Functionality
1. Dual Trend Analysis The script processes two different sets of data simultaneously:
- Line 1: Analyzes a larger window of data (35 bars) to identify the long-term primary trend.
- Line 2: Analyzes a smaller, more concentrated window (5 bars) to identify immediate, short-term momentum.
By comparing these two "degrees" of regression, the tool can distinguish between a steady market move and one that is rapidly accelerating or reversing.
2. Dynamic Trend Visualization The script provides several visual aids directly on your trading chart:
- Trend Lines: It draws dynamic lines based on the linear regression calculations. These lines change color automatically (switching between bull/red and bear/blue themes) to signal whether the trend is moving upward or downward.
- Degree Labels: The tool calculates the "angle" or degree of the trend. It then places visual markers on your chart showing exactly what that angle is, allowing you to see the steepness of the market move at a glance.
- Price Levels: It automatically identifies and marks key technical levels, including top levels, mid-levels, and bottom levels based on the highest and lowest prices within the visible window.
3. Smart Alerts & Notifications One of the most professional features of this script is its automated alert system. It monitors the relationship between the long-term and short-term trends to identify specific market shifts:
- Trend Shifts: It detects when a bullish trend begins to weaken or when a bearish trend shows signs of strength.
- Reversals: It identifies "Bearish Reversals" (when an upward trend breaks) and "Bullish Reversals" (when a downward trend bottoms out).
- Strength Gauges: It specifically notifies you when the market enters a state of "Strong Bullish" or "Strong Bearish" momentum.
These alerts can be configured to trigger sound effects, on-screen pop-ups, or even email notifications, ensuring you stay informed of critical trend changes without having to stare at the charts constantly.
Summary for the User
This script serves as a sophisticated "trend radar." It filters out market noise by calculating the mathematical path of price movement. It tells you not just where the price is going, but how fast it is getting there and whether the current momentum is sustainable or beginning to exhaust itself.
ÿþ/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
/ / | L R D e g r e e s . m q 4 |
/ / | C o p y r i g h t 2 0 1 7 , R o b e r t o J a c o b s ( 3 r j f x ) |
/ / | h t t p s : / / w w w . m q l 5 . c o m / e n / u s e r s / 3 r j f x |
/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
# p r o p e r t y c o p y r i g h t "