OPEN-SOURCE SCRIPT
delta imbalance candle

This Pine Script is a high-frequency order flow tool designed to identify institutional "imbalance" by looking inside a single candle to see who was more aggressive: buyers or sellers.
Here is a concise summary of its functions:
* Intraday Data Splitting: It uses TradingView Premium's request.security_lower_tf to fetch 1-minute data for a specific ticker (like Bank Nifty Futures) regardless of what timeframe you are currently viewing.
* Delta Calculation: It analyzes every 1-minute bar within your current candle. If the 1-minute close is higher than its open, it counts as Buy Volume; otherwise, it counts as Sell Volume.
* Imbalance Identification: It compares total Buy Volume vs. Sell Volume. An "Imbalance" is triggered only if one side is at least 3 times (or your chosen imb_ratio) stronger than the other.
* Selective Chart Coloring: Unlike standard indicators, it only changes the color of the candle on your chart if a significant institutional imbalance is detected. If no imbalance exists, the candles remain their original color.
* Ticker Synchronization: It allows you to track the order flow of a "Source Ticker" (e.g., Futures) while trading on a different chart (e.g., Spot).
Here is a concise summary of its functions:
* Intraday Data Splitting: It uses TradingView Premium's request.security_lower_tf to fetch 1-minute data for a specific ticker (like Bank Nifty Futures) regardless of what timeframe you are currently viewing.
* Delta Calculation: It analyzes every 1-minute bar within your current candle. If the 1-minute close is higher than its open, it counts as Buy Volume; otherwise, it counts as Sell Volume.
* Imbalance Identification: It compares total Buy Volume vs. Sell Volume. An "Imbalance" is triggered only if one side is at least 3 times (or your chosen imb_ratio) stronger than the other.
* Selective Chart Coloring: Unlike standard indicators, it only changes the color of the candle on your chart if a significant institutional imbalance is detected. If no imbalance exists, the candles remain their original color.
* Ticker Synchronization: It allows you to track the order flow of a "Source Ticker" (e.g., Futures) while trading on a different chart (e.g., Spot).
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.