Scan for Outside bar followed by Inside bar


Category:
0
0

Hi Pete,

I would like to scan for a chart pattern where there is an Outside bar followed by an inside bar.  I attached a screenshot of this scenario on a 60 min chart.

Attachments:
Marked as spam
Posted by (Questions: 6, Answers: 17)
Asked on July 21, 2020 11:50 am
433 views
0
Private answer

This should do it:

def insideBar = high < high[1] and low > low[1];
def outsideBar = high > high[1] and low < low[1];
plot scan = insideBar and outsideBar[1];

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on July 21, 2020 1:46 pm