Login Page - Create Account

Support Board


Date/Time: Thu, 16 Jan 2025 01:05:08 +0000



Post From: L > ID1.SG1 20 Bars Back

[2017-09-21 13:42:44]
infpz - Posts: 826
Hello, if I want to be notified when the low of bar has been greater than ID1.SG1 for 20 bars back, how would I code that without something like the below?

AND(L[-20]>ID1.SG1[-20],L[-19]>ID1.SG1[-19],L[-18]>ID1.SG1[-18],
L[-17]>ID1.SG1[-17],L[-16]>ID1.SG1[-16],L[-15]>ID1.SG1[-15],L[-14]>ID1.SG1
[-14],L[-13]>ID1.SG1[-13],L[-12]>ID1.SG1[-12],L[-11]>ID1.SG1[-11],L[-10]>ID1.SG1[-10],
L[-9]>ID1.SG1[-9],L[-8]>ID1.SG1[-8],L[-7]>ID1.SG1[-7],L[-6]>ID1.SG1[-6],
L[-5]>ID1.SG1[-5],L[-4]>ID1.SG1[-4],L[-3]>ID1.SG1[-3],L[-2]>ID1.SG1[-2],L>ID1.SG1)
Date Time Of Last Edit: 2017-09-21 13:43:31