
Modjoy-Heatmap Liquidity Zones [BigBeluga] - Exclusive Insights
Introduction
The Modjoy-Heatmap Liquidity Zones, exclusively developed by Modjoy, is a revolutionary trading tool designed to help traders visualize and navigate liquidity in the financial markets. In this article, we will delve into the features and benefits of this innovative tool, and explore how it can enhance your trading strategy.
What are Modjoy-Heatmap Liquidity Zones?
The Modjoy-Heatmap Liquidity Zones is a unique tool that utilizes a heatmap format to display liquidity zones in real-time. These zones are areas of high liquidity, where market participants are actively buying and selling securities. By visualizing these zones, traders can gain valuable insights into market sentiment and make more informed trading decisions.
Key Features of Modjoy-Heatmap Liquidity Zones
- Real-time Data: The Modjoy-Heatmap Liquidity Zones provides real-time data, allowing traders to stay up-to-date with market developments and make timely trading decisions.
- Customizable: The tool is fully customizable, enabling traders to adjust the settings to suit their individual trading strategies and preferences.
- Multiple Market Support: The Modjoy-Heatmap Liquidity Zones supports multiple markets, including stocks, futures, and forex, making it a versatile tool for traders across various asset classes.
Benefits of Using Modjoy-Heatmap Liquidity Zones
The Modjoy-Heatmap Liquidity Zones offers several benefits to traders, including:
- Improved Market Insights: By visualizing liquidity zones, traders can gain a deeper understanding of market sentiment and make more informed trading decisions.
- Enhanced Risk Management: The tool helps traders identify areas of high liquidity, enabling them to manage their risk more effectively and avoid trading in areas with low liquidity.
- Increased Trading Confidence: With the Modjoy-Heatmap Liquidity Zones, traders can trade with greater confidence, knowing that they have access to real-time data and insights.
Conclusion
In conclusion, the Modjoy-Heatmap Liquidity Zones is a powerful trading tool that provides traders with valuable insights into market liquidity. With its real-time data, customizable settings, and multiple market support, this tool is an essential addition to any trader's arsenal. By utilizing the Modjoy-Heatmap Liquidity Zones, traders can enhance their trading strategy, manage their risk more effectively, and trade with greater confidence.
Exclusive Source Code: Modjoy-Heatmap Liquidity Zones [BigBeluga]
// This work is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
//@version=6
indicator("Modjoy-Heatmap Liquidity Zones [BigBeluga]", overlay = true
, max_boxes_count = 500
, calc_bars_count = 4000
, max_lines_count = 500
, max_bars_back = 5000
, max_labels_count = 500)
// Inputs
// Inputs
tf = input.timeframe(
"W",
"Higher Timeframe",
tooltip = "Select the higher timeframe used to build volume heatmap ranges.\nEach new HTF candle resets the accumulation range."
)
atrLen = 100
atrMult = input.float(
0.25,
"Bin Size Multiplier",
step = 0.05,
minval = 0.0001,
tooltip = "Multiplier applied to ATR to define vertical bin size.\nLower values create more detailed heatmap resolution.\nHigher values create broader liquidity zones."
)
maxBins = input.int(
40,
"Max Bins",
minval = 10,
maxval = 100,
tooltip = "Maximum number of price bins inside each HTF range.\nHigher values increase precision but use more resources."
)
liquidityFilter = input.float(
0,
"Liquidity Filter %",
minval = 0,
maxval = 100,
tooltip = "Minimum relative volume (percentage of peak bin volume) required to mark a liquidity level.\nHigher values filter weaker zones."
)
liquidityWidth = input.int(
5,
"Liquidity Level Width",
minval = 1,
maxval = 10,
tooltip = "Controls the thickness of drawn liquidity levels.\nHigher values make key zones more visually prominent."
)
liquidityExtend = input.int(
25,
"Liquidity Level Extend",
minval = 0,
tooltip = "Controls how far the levels are extended into the future from last bar."
)
heatColor2 = input.color(
color.rgb(64, 17, 151, 90),
"Low Density (0%–25%)",
tooltip = "Color used for low volume density areas."
)
heatColor1 = input.color(
color.rgb(27, 183, 255, 90),
"Mid Density (25%–75%)",
tooltip = "Color used for medium volume density areas."
)
heatColor3 = input.color(
color.rgb(255, 235, 59, 50),
"High Density (75%–100%)",
tooltip = "Color used for highest liquidity zones."
)
tfChange = timeframe.change(tf)
var max = 0.
var min = low
var start = 0
type level
int start
float lvl
bool isRes
float vol
color color1
var Levels = array.new()
atrValue = ta.atr(atrLen)
binSize = atrValue * atrMult
if not tfChange
max := math.max(max, high)
min := math.min(min, low)
range_ = max - min
// Safe bin count (int) + guards
rawBins = math.min(maxBins, int(math.floor(range_[1] / binSize)))
binSize1 = range_ / rawBins
volumeBins = array.new(rawBins, 0.)
// Historical
if tfChange
for i = 0 to rawBins - 1
ll = min[1] + binSize1[1] * i
mid = ll + binSize1[1]/2
hh = ll + binSize1[1]
for k = 0 to bar_index - start
if math.abs(close[k]-mid) <= binSize1[1]
volumeBins.set(i, volumeBins.get(i) + volume[k])
for i = 0 to rawBins - 1
ll = min[1] + binSize1[1] * i
hh = ll + binSize1[1]
vol = volumeBins.get(i) / volumeBins.max()
col = vol <= 0.5 ? color.from_gradient(vol, 0, 0.5, heatColor2, heatColor1)
: color.from_gradient(vol, 0.5, 1, heatColor1, heatColor3)
col1 = vol <= 0.5 ? color.from_gradient(vol, 0, 0.5, color.new(heatColor2, 95), color.new(heatColor1, 95))
: color.from_gradient(vol, 0.5, 1, color.new(heatColor1, 95), color.new(heatColor3, 95))
box.new(start, hh, bar_index, ll
, bgcolor = col
, border_color = col1)
if vol >= liquidityFilter/100
mid = math.avg(hh, ll)
Levels.push(level.new(bar_index, mid, low < mid, vol, col))
for s in Levels
if s.isRes
if high > s.lvl
Levels.remove(Levels.indexof(s))
else
if low < s.lvl
Levels.remove(Levels.indexof(s))
if not tfChange and barstate.islast
var boxes = array.new()
var lines = array.new()
var labels = array.new