edit: this topic refers to https://www.prorealcode.com/topic/bar-colour-related-to-atr/ Hi Rob, Could you please help in this code so that it can go long repetitively? AGBAR = AverageTrueRange[14](close) * 1.5 IF Range > AGBAR AND close > open THEN BUY 10 CONTRACTS AT MARKET ENDIF