Support Board
Date/Time: Fri, 09 May 2025 20:49:03 +0000
Post From: Alert formula (Compare current bar with past X bars)
[2019-08-26 11:23:45] |
User383849 - Posts: 23 |
Hi! I want a formula to alert me when I get a huge volume candle that's 5x bigger than the past 20 bars. Is there a shorter way / simpler function or I need to use the AND operator and compare the current bar with previous bars 20 times like this: AND(SG1[0] > SG1[-1]*5, SG1[0] > SG1[-2]*5, SG1[0] > SG1[-3]*5, . . . SG1[0] > SG1[-20]*5) Thanks! :) |