I'm coding in NinjaScript, however, I'm new to coding. I have a bool variable for a Buy Entry on the 25 tick chart - I'll refer to as "A". I also have another set of conditions of when I want to enter a Buy on the 50 tick chart - I'll refer to as "B". When my "B" Conditions are met for a Buy, I only want to enter a Buy if "A" was also triggered within 3 or 4 or 5 bars ago. But, I'm not sure how to reference a bool variable having been triggered as "true" for a specific # of bars ago. I hope that makes sense.
I think this is simple to code, but I can't figure out how to code it. Sigh. How do I reference a bool variable that was triggered as true 3 or 4 or 5 bars ago? Any guidance anyone can provide is greatly appreciated!

Comment