A bit of background context with regards to what I'm attempting to do. I'm running a BlttriggerLines indicator on a chart using range bars set at 8. Yet I have a 16 range in the background that this same indicator uses to highlight the larger trend. In saying that, when I get a reversal bar that is specific to the average line of the indicator tied to the 16 range bar (the high of the bar crosses the average, but closes to the downside of the line), I want the strategy to sound an alert, and draw an arrow, be it for a long or short.
That being said, the strategy is currently only written for the short. I figured, once that works, and I've added any additional criteria that I wanted, I could duplicate it and make the adjustments need for it to identify the long.
I've attached a PDF of the code. Thank you in advance.

Comment