Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 06:35:31 +0000



Post From: Request for simple alert / bar coloring

[2016-06-16 19:31:30]
Sawtooth - Posts: 4120
Tom, one more question - attached is image showing this formula:

H>MAX(H[-1],H[-2],H[-3],H[-4],H[-5],H[-6],H[-7],H[-8],H[-9],H[-10],H[-11],H[-12],H[-13],H[-14],H[-15],H[-16],H[-17],H[-18],H[-19],H[-20])

Basically: H > last 20 bars' high.

Do you know of a way to only display the most current signal, the last one? I can reduce the # of bars to calculate but that doesn't quite do it

I don't know of a way to do it with Simple Alerts because there is no current bar Identifier.

It can be done with a spreadsheet study, using this formula:
=AND(ROW()=3,C3>MAX(C4:C23))

Row 3 is the current bar and column C is the High.

On the spreadsheet the MAX function can use a : for a range, but this syntax is not supported in Simple Alerts.