The functionality of this script is to identify whale movement signals based on large volume and price movements, which can help traders spot important trading signals from big players in the market (whales). Here are some of the parameters:
🧑💼 Parameter settings: Volume Multiplier:
This is used to calculate the volume that is larger than the average. This multiplier determines how many times the maximum volume must be greater than the average volume over the last 20 candles. Price Movement Threshold:
The multiplier determines the size of the price movement that is considered significant. Calculates the price movement as a percentage of the price in the previous candle.
Volume Calculation: Use the 20-candle moving average (SMA) to get an overview of the trading in that period. Volume Threshold: If the volume in the current candle is higher than the average multiplied by the volume Multiplier, it is considered a high volume movement. 📊 Price Movement Calculation: Calculate the price movement between the current candlestick and the previous candlestick as a percentage: Price Movement Then, the Price Movement Threshold is used to determine that the price movement must be larger than a specified value (e.g. 1.5%) for the price movement signal to be interesting. 🐋 Whale Signal Detection: A Whale Signal occurs when both of these conditions are met: The trading volume must be higher than the average (Volume Threshold). The price movement must be larger than the specified value (Price Movement Threshold). 🎨 Candlestick Color Change: If a Whale Signal occurs and the price movement is positive (price goes up): Change the candlestick color to blue to indicate that there is a whale buying. If a Whale Signal occurs and the price movement is negative (price goes down): Change the candlestick color to orange to indicate that there is a whale selling. 💡 Summary of the operation: This script uses Volume and Price Movement to identify when there is a significant movement in the market from the whale's actions:
When there is a higher than average volume and a large enough price movement (as defined in the multiplier). Change the color of the candle to Blue if the price movement is positive (buy) or Orange if the price movement is negative (sell).