Showing posts with label BOB QT code. Show all posts
Showing posts with label BOB QT code. Show all posts

Saturday, March 31, 2007

QT Code for BOB and Tweezer

Here is the code I use for the BOB which I call "Enhanced BOB" because it includes the constraint "and bar close[1] < EMA(21)" - I use that to ensure that the BOB is happening at a bottom and not at some intermediate point.

If bar low[1] < bar low[2] AND volume[1] > volume[2] AND bar open[1] >= bar close[1] AND bar open[2] >= bar close[2] and bar low >= bar low[1] and bar close[1] < EMA(21) and bar close > bar open set color to Red


And here is Tweezer. You will note in the BOB code that the requirement for bar low is to be ">=" bar low[1] this permits a BOB to include a tweezer bottom. I think that is a very powerful combination.

If bar low = bar low[1] and bar close > bar open and bar open < ema(21) set color to $70106D


Note that "color $70106D" is just my preference - you can set the color any way you prefer.

Again the constraint to be below ema(21) is to ensure it is a bottom and not an intermediate condition.

Needless to say but say it I will - either of these near or on a pivot point just adds value to the indicator.