MaxAlpha 2 posts msg #94560 - Ignore MaxAlpha |
7/5/2010 2:16:30 PM
Hey guys, apologies if there is already a thread on this but I went through a few pages and couldn't find anything.
I'm looking to create an Awesome Oscillator scan. The Awesome Oscillator was created by Bill Williams and is a momentum indicator (contrary to the "oscillator" name). It is calculated by subtracting the 34 day average of the average price of the day ((high + low) / 2), from the 5 day average of the average price of the day. If that's confusing, here it is below:
Median = (high+low)/2
AO = SMA(Median, 5) - SMA(Median, 34)
The result is usually graphed by histogram and can be +infinity or -infinity (only limited by stock/index price).
I have tried to scan using the following: "SMA((day position, .5, 1) 5) minus SMA((day position, .5, 1) 34)" but I don't think it's working. The debug says there are no problems, but there are zero results. This may be because there are no contingencies yet??
My final goal, after creating the indicator, is to scan for stocks who, 3 days ago, had a negative AO reading. And 2 days ago, the AO was a greater value than it was 3 days ago. And 1 days ago the AO was a greater value than 2 days ago. And today the AO was a greater value than it was 1 day ago.
I also want to create the opposite of the scan above, thereby finding bearish AO setups.
This indicator can also be used in scans finding below zero / above zero crosses, as well as initial momentum shifts.
Has anyone done any work on this or know if its possible to create this scan using SF?
Help!!!!!!!!!!!
|