ICT - Imbalance Middle Candle

Chadow6875 · study · 13 行 · 点赞 19 · TradingView 原页

本页源码来自 TradingView 公开发布的开源脚本,版权归原作者所有, 请遵循其原始许可(Pine 脚本常见 CC BY-NC-SA / MPL-2.0 / MIT)。 本项目仅用于研究检索与许可范围内的移植。

Pine Script

//@version=6
indicator("ICT - Imbalance Middle Candle", overlay=true)
 
// Couleurs personnalisables
bullColor = input.color(color.aqua, "FVG haussier")
bearColor = input.color(color.red, "FVG baissier")
 
// Détection des FVG sur 3 bougies
bullFVG = bar_index >= 2 and low > high[2]
bearFVG = bar_index >= 2 and high < low[2]
 
// Coloration de la bougie centrale uniquement
barcolor(bullFVG ? bullColor : bearFVG ? bearColor : na, offset=-1)

← 返回列表