I have coded a trendline between 3 prices and i want to set a condition to open an order when price crosses the trendline. But i want to open an order only whithin the next 5 bars from the time price crosses the trendline. After 5 bars later the order will not be executed. So with this condition we can certify that the order will be places with the current trendline and not late.