murkywaters / Publications Main Forum 8 Quick question question: how do you write an "if" function that triggers code at the END of each bar on the chart (which works independent of chart timeframe )