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


Need help using Awesome Oscillator as a filter
Started: by protrader007 Views / Replies:6,660 / 19
Last Reply: Attachments:6

Welcome to futures io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike

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, 140 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,555 since Mar 2010
Thanks: 4,217 given, 25,070 received

@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,312 since Jul 2009
Thanks: 1,229 given, 2,578 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,555 since Mar 2010
Thanks: 4,217 given, 25,070 received


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,312 since Jul 2009
Thanks: 1,229 given, 2,578 received

AwesomePlus® ???

Futures Edge on FIO
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,555 since Mar 2010
Thanks: 4,217 given, 25,070 received


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,555 since Mar 2010
Thanks: 4,217 given, 25,070 received


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)
 

Spring Grains Outlook w/Sean Lusk @ Walsh Trading

Elite only

FIO Video Journal Challenge featuring NinjaTrader ($2,000+ of prizes)

April

Process above all else w/Anthony Crudele @ Futures Radio Show

Elite only

Machine Learning - Quantitative Trading w/Martin Froehler @ Quantiacs

Elite only

Market Dynamics w/Peter Davies @ Jigsaw Trading

Elite only

Ask Me Anything w/Patrick Rooney @ Trading Technologies

Apr 18

Ask Me Anything w/FuturesTrader71

Apr 19

Machine Learning w/Kris Longmore

Elite only

Market Analysis w/Dave Forss

Apr 25

Introducing iSystems with Stage 5 Trading

Apr 27
     

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 10:49 PM.

no new posts
Page generated 2017-03-27 in 0.14 seconds with 20 queries on phoenix via your IP 54.204.249.55