Inside bar after three down bars


Category:
0
0

Pete, first happy fathers day. I read your response on january 27th,2017 @ 12:28 pm, for both scanner and/or plot chart of inside days. I am confused on how to modify them to suit my needs. I would like to plot and scan the following configuration.

I have 3 down bars in a row each lower than the other, the 4th bar is also lower than the 3rd bar but is also inside the 2nd bar. Plus the 5th bar is now creating a higher low.

Can you kindly help me with this situation, I would deeply appreciate it.

Marked as spam
Posted by (Questions: 4, Answers: 5)
Asked on June 16, 2019 9:32 am
151 views
0
Private answer

I changed the title of your question in the hopes that it more clearly describes your request. The one you entered didn't really include any details at all.

I wrote the code according to your description. If you had provided a screenshot showing these signals on a chart that would have helped ensure you or I didn't miss any details. As it stands, this turns out to be an exceptionally rare price pattern.

Here is the code, with screenshot below showing the pattern on a chart.

def downBar = close < open;
def threeDownBars = downBar and close < close[1] and downBar[1] and close[1] < close[2] and downBar[2];
def specialInsideBar = threeDownBars[1] and downBar and close < close[1] and high < high[2] and low > low[2];
plot fifthBar = specialInsideBar[1] and low > low[1];
fifthBar.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
fifthBar.SetLineWeight(3);
fifthBar.SetDefaultColor(Color.CYAN);

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on June 18, 2019 12:30 pm
0
pete, thank you, I presume everything will be OK. I was out of town, just recently got back, and I don't know when I will get to test. I am going to leave 2 special starbucks coffees in your cookie jar. thanks again.
( at July 13, 2019 3:56 am)