speed BB
Download scriptThis script is designed to function as a specialized visual indicator for the MetaTrader trading platform. Its primary purpose is to calculate and display the "speed" or rate of change within Bolinger Bands, allowing traders to observe how quickly price momentum is moving relative to standard volatility boundaries.
Core Logic Overview
The script focuses on measuring velocity by comparing the current state of Bollinger Bands against their previous values. Instead of just showing the bands themselves, it transforms that data into a numerical representation of "speed."
Key Components of the Logic:
1. Input Parameters The tool is highly customizable through several user-defined settings:
- Period: Determines the lookback time used to calculate the average price and volatility.
- Deviation: Controls how wide or narrow the bands are (standard volatility).
- Bands Shift: Allows the user to offset the visual placement of the data on the chart.
- Applied Price: Lets the user choose which price type (such as Close, Open, High, or Low) the calculation should be based on.
2. Speed Calculation Mechanism The heart of the script lies in its calculation of two distinct buffers (visual lines):
- It identifies the values of the Upper and Lower Bollinger Bands for the current moment.
- It then subtracts the value of those same bands from the previous candle/bar.
- By dividing this difference by the point value of the currency, it generates a "speed" figure.
3. Visual Representation The script outputs two separate lines on a dedicated indicator window:
- Buffer 1: Represents the speed of one boundary of the band.
- Buffer 2: Represents the speed of the opposite boundary.
How it Benefits the User
Rather than looking at a static price, this logic helps a trader see how "fast" the market is accelerating or decelerating. When the lines on the indicator move sharply, it indicates significant momentum. When they flatten out, it suggests that the market's movement is stabilizing or losing steam.
By providing these values in a separate window, the script allows for a cleaner chart environment while giving the trader a dedicated view of underlying price velocity.
ÿþ/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
/ / | b b . m q 4 |
/ / | Y u r i y T o k m a n ( Y T G ) |
/ / | h t t p s : / / w w w . m q l 5 . c o m / r u / u s e r s / s a t o p / s e l l e r |
/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
# p r o p e r t y c o p y r i g h t "