Big Trades inside Range Absorption zones

Two chart indicators together: of the markers Big Trades drew on each bar, count the ones that sit inside a Range Absorption zone, ring them on the chart, show the count in the panel, and keep a running total of their volume by side. A bar with two or more gets its own marker, so it can alert. Needs Big Trades and Range Absorption on the chart.

//@xfscript 1
indicator("Big Trades In Zones")

let buy_color: color = input.color("#22C55E", "buyColor", "Bought")
let sell_color: color = input.color("#EF4444", "sellColor", "Sold")
let cluster: float = input.float(2, "cluster", "Markers for a cluster", 1, 10, 1)

let ready: bool = bigtrades.available() && range_absorption.available()
let in0: bool = ready && range_absorption.at(bigtrades.price(0)) >= 0
let in1: bool = ready && range_absorption.at(bigtrades.price(1)) >= 0
let in2: bool = ready && range_absorption.at(bigtrades.price(2)) >= 0
let in3: bool = ready && range_absorption.at(bigtrades.price(3)) >= 0

var hits: float = 0
var bought: float = 0
var sold: float = 0
hits := 0
bought := nz(bought[1], 0)
sold := nz(sold[1], 0)
if in0 {
  hits := hits + 1
}
if in1 {
  hits := hits + 1
}
if in2 {
  hits := hits + 1
}
if in3 {
  hits := hits + 1
}
if in0 && bigtrades.side(0) == "BUY" {
  bought := bought + bigtrades.size(0)
}
if in0 && bigtrades.side(0) == "SELL" {
  sold := sold + bigtrades.size(0)
}
if in1 && bigtrades.side(1) == "BUY" {
  bought := bought + bigtrades.size(1)
}
if in1 && bigtrades.side(1) == "SELL" {
  sold := sold + bigtrades.size(1)
}

plot.marker(in0, bigtrades.price(0), "#F59E0B", "circle", "above", 14, 0)
plot.marker(in1, bigtrades.price(1), "#F59E0B", "circle", "above", 14, 0)
plot.marker(hits >= cluster, high, "#F59E0B", "square", "above", 10, 12)
plot.histogram(hits, buy_color, sell_color)
plot.panel_hline(cluster, "#6B7280", "dotted", "Cluster")

if ready {
  plot.label(str.concat("IN ZONE BOUGHT ", format.compact(bought), "  SOLD ", format.compact(sold)), "#E5E7EB")
} else {
  plot.label("ADD BIG TRADES AND RANGE ABSORPTION TO THIS CHART", "#6B7280")
}

Všechny vrstvy trhu – od Orderflow po optionflow – v jednom grafu.

Orderflow data institucionální kvality s vestavěným backtestingem a obchodním deníkem. Zapište se na čekací listinu a získejte předběžný přístup.

Získat přístup