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:7,150 / 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

  #11 (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, 141 received


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


LOL, Thanks. I fixed the MACD with color bars!

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

@Zondor: I saw your version of the Awesome Oscillator.

In my opinion it is a completely different indicator and has little to do with the original Awesome Oscillator.

I have compared the indicator with the Awesome Oscillator as it was created by Bill Williams. I do not think it is a good idea to replace various parts of the code and still call it Awesome Oscillator. It shows a completely different behavior.

Chart attached below with Awesome Oscillator and new Update. Hope you do not mind my comment.

Attached Thumbnails
Need help using Awesome Oscillator as a filter-awesome-oscillator.jpg  
Reply With Quote
 
  #13 (permalink)
Elite Member
Portland Oregon, United States
 
Futures Experience: Beginner
Platform: Ninjatrader®
Broker/Data: CQG, Kinetick
Favorite Futures: Gameplay Klownbine® Trading of Globex
 
Zondor's Avatar
 
Posts: 1,327 since Jul 2009
Thanks: 1,244 given, 2,632 received

No longer Awesome....



Quoting 
Chart attached below with Awesome Oscillator and new Update. Hope you do not mind my comment

I don't mind at all, but please don't report me to Bill Williams!

Now the question is whether this in-need-of-a-new-name concoction is of any practical value. With actual median values and a more responsive MA, I considered that this version might be more faithful to the original intended concept. Or might not!


Last edited by Zondor; October 29th, 2011 at 12:35 AM.
Reply With Quote
 
  #14 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,622 since Mar 2010
Thanks: 4,223 given, 25,494 received
Forum Reputation: Legendary


Zondor View Post
I don't mind at all, but please don't report me to Bill Williams!

Now the question is whether this in-need-of-a-new-name concoction is of any practical value. With actual median values and a more responsive MA, I considered that this version might be more faithful to the original intended concept. Or might not!

Actually your indicator is quite different from the Awesome Oscillator.

-> The raw MACD is the difference between a fast and a slow EMA.
-> The Awesome Oscillator is the difference between a fast and a slow SMA.
-> Zondor's oscillator is the difference between a fast and a slow LLMA.

If you look at the chart below, you will find that the MACD (red) and the Awesome Oscillator (blue) are close relatives, but that Zondor's Oscillator (green) is quite different. All indicators use the same settings, that is a period of 5 for the fast and a period of 34 for the slow moving average.

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

Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
  #15 (permalink)
Elite Member
Portland Oregon, United States
 
Futures Experience: Beginner
Platform: Ninjatrader®
Broker/Data: CQG, Kinetick
Favorite Futures: Gameplay Klownbine® Trading of Globex
 
Zondor's Avatar
 
Posts: 1,327 since Jul 2009
Thanks: 1,244 given, 2,632 received

AwesomePlus® ???

There are some changes to my recently posted mutant Awesome Oscillator. It now uses the statistical median of each bar. I believe that the calculation method is correct (midpoint member of a sorted ArrayList), but I needed to make a few small "sledge hammer" tweaks to the code to get it to plot.

https://futures.io/download/vip_elite_circle/1032-download.html?view

How it differs from the starting point version on the Ninja Forum:
  • Changed the plot to a multi-color line.
  • Added user selection option for MA periods. Defaults are 9/12, original was 5/34.
  • Added the choice of using the SMA or the LLMA.
  • Added the choice of using the actual statistical median, computed on a bar by bar basis, or the Ninjatrader median which is just the average of the High and Low.

I don't know if I would have called it Awesome. Awful, maybe?

Reply With Quote
The following 2 users say Thank You to Zondor for this post:
 
  #16 (permalink)
Elite Member
New York City, NY USA
 
Futures Experience: Advanced
Platform: NinjaTrader
Favorite Futures: ES, ER
 
Posts: 27 since May 2015
Thanks: 10 given, 28 received


Fat Tails View Post
Have reworked the Awesome Oscillator. The new version

Fat Tails,

I'm trying to use the AO in a strategy, but any value <0 cannot be detected. Is there a way to check for the AO value below zero?

Thanks very much in advance.

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


angela d View Post
Fat Tails,

I'm trying to use the AO in a strategy, but any value <0 cannot be detected. Is there a way to check for the AO value below zero?

Thanks very much in advance.

Probably a bug in the strategy.

The value of the Awesome Oscillator can be accessed as anaAwesomeOscillator.Oscillator[0] and may take positive or negative values.

Reply With Quote
 
  #18 (permalink)
Elite Member
New York City, NY USA
 
Futures Experience: Advanced
Platform: NinjaTrader
Favorite Futures: ES, ER
 
Posts: 27 since May 2015
Thanks: 10 given, 28 received


Fat Tails View Post
Probably a bug in the strategy.

The value of the Awesome Oscillator can be accessed as anaAwesomeOscillator.Oscillator[0] and may take positive or negative values.

Thanks so much for your response.

I just created a fresh strategy that does nothing but print to output if AO is above or below 0. In an 8 month backtest, it can detect only >0.

I just wrote it in the strategy wizard.

curious.

Thanks again.

here's the code for the test strategy:

CalculateOnBarClose = true;
}

/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Condition set 1
if (anaAwesomeOscillator(5, false, 34, 5).OscillatorLine[0] > 0)
{
PrintWithTimeStamp("above");
}

// Condition set 2
if (anaAwesomeOscillator(5, false, 34, 5).OscillatorLine[0] < 0)
{
PrintWithTimeStamp("below");
}
}

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


angela d View Post
Thanks so much for your response.

I just created a fresh strategy that does nothing but print to output if AO is above or below 0. In an 8 month backtest, it can detect only >0.

I just wrote it in the strategy wizard.

curious.

Thanks again.

here's the code for the test strategy:

CalculateOnBarClose = true;
}

/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Condition set 1
if (anaAwesomeOscillator(5, false, 34, 5).OscillatorLine[0] > 0)
{
PrintWithTimeStamp("above");
}

// Condition set 2
if (anaAwesomeOscillator(5, false, 34, 5).OscillatorLine[0] < 0)
{
PrintWithTimeStamp("below");
}
}


If you add the Awesome Oscillator to a chart, you will notice that the oscillator line is deactivated. This means that no values are written to the OscillatorLine plot. In this case NinjaTrader set the close value to the DataSeries. The close is always > 0, as there are no negative prices. But if you check for a value via "anaAwesomeOscillator.OscillatorLine.ContainsValue(0)", this should return false, as no value has been set to the plot!

You have two choices that will work

(1) activate the line via anaAwesomeOscillator(5, true, 34, 5).OscillatorLine[0]

(2) or use the plot that is not being disabled anaAwesomeOscillator(5, false, 34, 5).Oscillator[0]

Only if you disable the line plot and then try to access the disabled line, it cannot work.

Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
  #20 (permalink)
Elite Member
New York City, NY USA
 
Futures Experience: Advanced
Platform: NinjaTrader
Favorite Futures: ES, ER
 
Posts: 27 since May 2015
Thanks: 10 given, 28 received



Fat Tails View Post
If you add the Awesome Oscillator to a chart, you will notice that the oscillator line is deactivated. This means that no values are written to the OscillatorLine plot. In this case NinjaTrader set the close value to the DataSeries. The close is always > 0, as there are no negative prices. But if you check for a value via "anaAwesomeOscillator.OscillatorLine.ContainsValue(0)", this should return false, as no value has been set to the plot!

You have two choices that will work

(1) activate the line via anaAwesomeOscillator(5, true, 34, 5).OscillatorLine[0]

(2) or use the plot that is not being disabled anaAwesomeOscillator(5, false, 34, 5).Oscillator[0]

Only if you disable the line plot and then try to access the disabled line, it cannot work.

Wow, that works! Thank you so much!

Reply With Quote
The following user says Thank You to angela d 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)
 

RandBots: AutoTrading Bots to diversify your trading

Oct 24
 

TopstepTrader: Profiting Without Risking Your Own Money

Oct 26

Building Open Source Indicators for NT8 w/Fat Tails @ Lizard Indicators

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 09:44 AM.

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-10-23 in 0.14 seconds with 20 queries on phoenix via your IP 54.81.110.114