|
Gerry
 Veteran
     Posts: 277
Joined: 12/24/2003
Location: Lewiston, Maine 04240
User Profile |
Hello,
I’m having a brain freeze moment and would appreciate some assistance in the following. I’m looking for stocks that have closed HIGHER for the past 3 bars and then on the 4th bar is LOWER than the prior bar.
This is what I am now using to get the above mentioned BUT cannot seem to know where to place the C < C[1]. Here it is C > C[1] and C[1] > C[2] and C[2] > C[3] This gives me the 3 HIGHER CLOSES.
Also trying C < C[1] and C[2] > C[3] and C[3] > C[4]
Thanking you in advance
Gerry
|
|
Jim Dean
 Sage
  Posts: 3022
Joined: 9/21/2006
Location: L'ville, GA
User Profile |
Is the “4th” bar the most recent bar or the oldest bar?
|
|
Gerry
 Veteran
     Posts: 277
Joined: 12/24/2003
Location: Lewiston, Maine 04240
User Profile |
Hello Jim,
The 4th bar is the oldest
Thanks for your input,
Gerry
[Edited by Gerry on 8/2/2018 8:21 AM]
|
|
Jim Dean
 Sage
  Posts: 3022
Joined: 9/21/2006
Location: L'ville, GA
User Profile |
Here ya go:
C > C[1] and C[1] > C[2] and C[2] > C[3] and C[3] < C[4]
You could use >= and <= if you want - a bit looser but not much.
Or you could make the earliest bar rule more demanding: C[3] < L[4]
|