Need help using Awesome Oscillator as a filter - NinjaTrader Programming | futures io social day trading
futures io futures trading


Need help using Awesome Oscillator as a filter
Updated: Views / Replies:6,948 / 19
Created: by protrader007 Attachments:6

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 6  
 
Thread Tools Search this Thread
 

Need help using Awesome Oscillator as a filter

  #1 (permalink)
Elite Member
Bee Cave,Tx
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: CL
 
Posts: 53 since Aug 2010
Thanks: 31 given, 20 received

Need help using Awesome Oscillator as a filter

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


Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Attached Files
Register to download File Type: cs bwAO.cs (8.5 KB, 67 views)
Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,598 since Mar 2010
Thanks: 4,222 given, 25,355 received
Forum Reputation: Legendary



protrader007 View Post
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


Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

There are several problems.

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).

Good luck.

Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:
 
  #4 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,598 since Mar 2010
Thanks: 4,222 given, 25,355 received
Forum Reputation: Legendary

Awesome Oscillator for NT7

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

The indicator can be found here:

https://futures.io/free_downloads/ninjatrader-7/indicators/857-download.html?view

The value of the oscillator can be accessed as anaAwesomeOscillator(5, false, 34, 5).Oscillator[0].

Attached Thumbnails
Need help using Awesome Oscillator as a filter-6b-03-11-15-min-08_03_2011.jpg  
Reply With Quote
The following 4 users say Thank You to Fat Tails for this post:
 
  #5 (permalink)
Elite Member
Bee Cave,Tx
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: CL
 
Posts: 53 since Aug 2010
Thanks: 31 given, 20 received


Fat Tails View Post
There are several problems.

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).

Good luck.

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.

Attached Files
Register to download File Type: cs bwAC.cs (9.1 KB, 31 views)
Reply With Quote
The following user says Thank You to protrader007 for this post:
 
  #6 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,598 since Mar 2010
Thanks: 4,222 given, 25,355 received
Forum Reputation: Legendary


protrader007 View Post
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.

You can find the Acceleration/Deceleration indicator here.

https://futures.io/free_downloads/ninjatrader-7/indicators/859-download.html

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.

Attached Thumbnails
Need help using Awesome Oscillator as a filter-awesome-macd.jpg  
Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
  #7 (permalink)
Elite Member
Bee Cave,Tx
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: CL
 
Posts: 53 since Aug 2010
Thanks: 31 given, 20 received


Fat Tails View Post
You can find the Acceleration/Deceleration indicator here.

https://futures.io/free_downloads/ninjatrader-7/indicators/859-download.html

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.

Reply With Quote
 
  #8 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,598 since Mar 2010
Thanks: 4,222 given, 25,355 received
Forum Reputation: Legendary


protrader007 View Post
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.

Attached Thumbnails
Need help using Awesome Oscillator as a filter-macd-awesome-oscillator.jpg  
Reply With Quote
The following 3 users say Thank You to Fat Tails for this post:
 
  #9 (permalink)
Elite Member
Rio de Janeiro
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus Futures/Zen-Fire, IB
Favorite Futures: Equity & Futures
 
prisonbreaker82's Avatar
 
Posts: 312 since Jun 2010
Thanks: 57 given, 140 received


Fat Tails View Post
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.

Hi Fat Tails!

I prefer the standard MACD indicator, but in NinjaTrader it does not show the red and green colours..

Is it possible to change from SMA to EMA and chose from Median to Close (what I understand the standard MACD uses)?

Can you please indicate where in the code I need to change this?

Thank you!

Reply With Quote
 
  #10 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,598 since Mar 2010
Thanks: 4,222 given, 25,355 received
Forum Reputation: Legendary



prisonbreaker82 View Post
Hi Fat Tails!

I prefer the standard MACD indicator, but in NinjaTrader it does not show the red and green colours..

Is it possible to change from SMA to EMA and chose from Median to Close (what I understand the standard MACD uses)?

Can you please indicate where in the code I need to change this?

Thank you!

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()

 
Code
if(Rising(Diff))
    PlotColors[2][0] = Color.Lime;
else
   PlotColors[2][0] = Color.Red;
and save the indicator under a new name and compile it via F5.

Not tested.

Reply With Quote
The following user says Thank You to Fat Tails for this post:

Reply



futures io > > > > > Need help using Awesome Oscillator as a filter

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

July Journal Challenge w/$1100 in prizes from TopstepTrader

July
 

An Afternoon with FIO member Softsoap

Elite only

Battlestations: Show us your trading desks and win $750 in prizes

August
 

Extended Ask Me Anything w/Brett Steenbarger

Elite only

Prototyping Python Strategies (part 3) w/Ran Aroussi

Elite only

Brannigan Barrett w/Axia Futures

Elite only

Introduction to Phillip Capital futures brokerage services

Aug TBD

How Monte Carlo Analysis Can Help Your Trading w/Kevin Davey

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Three Way Filter with Boolean Setup zeller4 NinjaTrader Programming 3 July 19th, 2011 08:19 PM
Filter trades by using +DMI, help needed abcplot EasyLanguage Programming 5 May 19th, 2011 03:59 PM
Awesome Ipad II Ryanb Jokes 1 April 5th, 2011 08:00 AM
TWIGGS Oscillator for MT4... Chiantishire MetaQuotes MetaTrader MQL Programming 1 April 1st, 2010 04:26 AM
Oscillator 0 - 100 zeller4 NinjaTrader Programming 4 September 14th, 2009 08:27 AM


All times are GMT -4. The time now is 06:48 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-07-26 in 0.14 seconds with 20 queries on phoenix via your IP 54.158.238.172