Hi, was wondering if someone could help please. Is it possible to code the atr by candlestick type e.g. for the past 10 bars, only calculate the atr for green bars?