When referencing to make a indicator or strategy to look back, say, 3 bars ago, will it look for the condition I am calling it to search for during the 3rd, 2nd, 1st back, and current bar (i.e. 3, 2, 1, and 0)? Or will it only recognize the condition on the 3rd bar only exclusively?
If only exclusively, then how can I make it search for the condition I am searching for to be called on the last 4 bars (i.e. the 3rd, 2nd, 1st, or current bar) with the least code possible to instruct it. The condition only has to happen 1 time during the last 3 + the current bar (totaling the last for bars)?

Greg

Comment