I guess you ask because you might think the [14] syntax is “taken” by nature of adx[], and can’t use the [x] on top of this to look back x days before, but PRT language allows you to cumulate both sets of brackets, so… adx[14][x] works (as long as your x is a positive integer of course)
Hmm but if I want to have this condition rolling, say: Compare adx[14] with adx[14] x bars ago. It is not so easy to save the value x bars ago in a variable. Any idea Nicolas?
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok