Here's another question. I'd like to buy if the current bar close is above the close of the last X bars.
I'd like X bars to be a user-defined input.
Do I have to do
Close[0] > Close[1]
Close[0] > Close[2]
Close[0] > Close[3]...etc until X is reached manually? I'm sure there is an easier way to implement this.
Thank you.
Comment