PDA

View Full Version : Programmatically Recognize Pullbacks


mgbloomfield
02-28-2008, 04:50 PM
How would you program an indicator to recognize a pullback?

Here are some scenarios:
1a) Recognize a pullback from the high of the day.
1b) Recognize a pullback from the low of the day.

2a) Recognize a pullback where the price action went above the Opening Range's High then went below the Opening Range's High.
2b) Recognize a pullback where the price action went below the Opening Range's Low then went above the Opening Range's Low.

Any ideas?

NinjaTrader_Ray
02-28-2008, 07:42 PM
Here is one idea...

1a) Check for a recent HOD using the MAX() method and check if the high was recent, lets say the last 10 bars. Then check the currrent price against that high to see if its lower by some % of the session range and if yes, you have your pullback...