Script Name: Liquidity Analysis with Scaled Volume, ATR, and Chaikin Oscillator
Description: This script provides a comprehensive liquidity analysis by using three key indicators: Volume, ATR (Average True Range), and the Chaikin Oscillator. It allows users to customize the volume threshold based on a dynamic scaling system or by using a static threshold. The dynamic scaling system gives users control over how the volume threshold is calculated from the last 10 periods of volume, scaled from 1 to 100.
Key Features:
Scaled Dynamic Volume Threshold:
Users can set a scale value from 1 to 100 to adjust how the volume threshold is calculated based on the average volume of the last 10 periods.
The volume threshold is dynamically adjusted by multiplying the 10-period average volume by the selected scale (e.g., 50% to 100% of the average volume).
A toggle option allows users to apply the scaled dynamic threshold or a manually set static threshold.
Static Volume Threshold:
If the dynamic scaling option is turned off, users can manually input a fixed volume threshold that remains constant regardless of the market conditions.
Indicators Used:
ATR (Average True Range): The script uses ATR to measure market volatility. Users can adjust both the length and threshold for determining high or low volatility.
Chaikin Oscillator: This optional indicator identifies buying and selling pressure in the market, which can be toggled on or off in the settings.
Liquidity Scenarios:
High Liquidity Uptrend (Green Label): Occurs when volume exceeds the threshold, ATR is above the threshold, and the Chaikin Oscillator is positive. This signals a strong upward trend with high liquidity.
High Liquidity Downtrend (Red Label): Occurs when volume exceeds the threshold, ATR is above the threshold, and the Chaikin Oscillator is negative. This indicates a strong downward trend with high liquidity.
Low Liquidity Stagnant Market (Yellow Circle): Occurs when volume is lower than or equal to the threshold and ATR is below the threshold, indicating a low-liquidity market with minimal movement.
Custom Alerts:
Alerts are triggered for:
High Liquidity Uptrend
High Liquidity Downtrend
Low Liquidity Stagnant Market
Input Settings:
Volume Threshold Scale: A scale from 1 to 100 that adjusts the dynamic volume threshold based on the last 10 periods of volume.
Static Volume Threshold: A user-defined volume threshold that can be used if the dynamic option is disabled.
Apply Scaled Dynamic Threshold: A toggle that allows the dynamic scaling of the volume threshold based on user settings.
ATR Length: The number of periods used to calculate the ATR.
ATR Threshold: The threshold for determining high or low volatility.
Show Chaikin Oscillator: Option to display or hide the Chaikin Oscillator.
This script offers a flexible and powerful tool for analyzing liquidity and identifying trends based on volume, volatility, and market pressure. The customizable scaling feature for volume thresholds allows for more precise control of how liquidity is evaluated across different market conditions.