Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I am trying to use the bwAO (bill williams Awesome Oscillator) as a filter in an indicator and having problems.
Even something as simple as drawing an "up" arrow on the price panel when its above zero and a "down" arrow when its below zero does not work.
As shown on the chart below I get "up" arrows even when its "below" zero and can't figure out why!
I'm guessing its because I'm not getting the correct values from the bwAO oscillator for some reason.
The code is below and I've attached the bwAO.cs file and would really appreciate if someone would take a look at it and tell me what I'm doing wrong.
Many thanks
Can you help answer these questions from other members on NexusFi?
1. The bwAO indicator is a NT 6.5. indicator, which uses 3 DataSeries instead of one. You should start to recode it for NT7.
2. If you call that ancient beast, you should call the 3rd DataSeries, which is bwAO.AOValue.
3. You should use OnStartUp() instead of that initialized bracket in OnBarUpdate().
4. You only want to draw an arrow when the last value is smaller than zero and the current value is larger than zero (not whenever the current value is larger than zero).
Have reworked the Awesome Oscillator. The new version
- allows for different settings for the short and long period than 34 and 5
- does not split data into a positive and negative series to color the plot
- has a signal line that can be displayed to make it comparable to the MACD
Exported using NT Version 7.0.1000.3
Bill William's Awesome Oscillator is quite similar to the raw MACD, but uses simple moving averages with a period of 34 and 5 instead of the exponential moving averages used for the MACD. The input value is the …
The value of the oscillator can be accessed as anaAwesomeOscillator(5, false, 34, 5).Oscillator[0].
As you can tell I'm just learning to write some code and I really appreciate your help with this.
Also many thanks for converting it to NT7.
I also want to use Bill Williams AC (Acceleration/Deceleration) indicator and I assume this is also written for NT6.5 and will have the same problems. Could I ask you to take a look at the attached file and convert it to NT7 when you have the time.
Again, many thanks, it's much appreciated.
Exported using NT Version 7.0.1000.3
Bill William's Acceleration Deceleration is a relative of the MACD, but it uses the Awesome Oscillator instead of the raw MACD. The signal line is obtained by smoothing the Awesome Oscillator via a simple moving …
Please be aware that the Awesome Oscillator is nothing special. It is just a raw MACD built from simple moving averages instead of exponential moving averages.
The Acceleration/Deceleration Indicator is just the MACD histogram, which is obtained, if you use simple moving averages instead of exponential moving average and if you also use a simple moving average for the smoothing of the signal line.
Thanks again Fat Tails for all your work.
I was using a MACD before trying the Acceleration/Deceleration indicator and the Acc/Dec version worked best for me but I'll check it out further following your comments.
If you use a MACD(5,34,5) and use it on the Median of the bars, the result is comparable to the Awesome Oscillator. Below is a comparison. It shows a standard MACD(5,34,5) form the Medians with only the raw MACD displayed as bars.
Below you can see the Awesome Oscillator with the same settings.
Only difference (except for the colors): The MACD is built from EMAs, the Awesome Oscillator is built from SMAs.
If you do those changes, you will have standard MACD with colors, LOL. You are asking me to add colors to the MACD? You can do this yourself: Edit the MACD, add the following code at the end of OnBarUpdate()
and save the indicator under a new name and compile it via F5.