3 Ducks in Market Analyzer - NinjaTrader Programming | futures io social day trading
futures io futures trading


3 Ducks in Market Analyzer
Updated: Views / Replies:4,743 / 12
Created: by Assaya Attachments:5

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
 5  
 
Thread Tools Search this Thread
 

3 Ducks in Market Analyzer

  #1 (permalink)
Elite Member
Düsseldorf NRW
 
Futures Experience: Beginner
Platform: NinjaTrader, IB TWS
Broker/Data: IB/IB
Favorite Futures: ES, NQ
 
Posts: 47 since Jul 2012
Thanks: 47 given, 18 received

3 Ducks in Market Analyzer

Hi,

I found a system/guideline called three ducks. The system is very simple:
  1. 4 hour chart with a 60 SMA. If the price is above the SMA the we get the first green light for a long
  2. 60min chart with a 60 SMA. If the price is above the SMS we get the second green light for a long
  3. 5min chart with a 60 SMA. If the price is above the SMA we get the third green light for a long

The goal is to get this three condition to show up in the market analyzer.
What would be the easiest way to get this going?

Do I really need to get an indicator that shows the difference between price an sma value (positive or negative) an put this indicator with a "greater = 0" condition into the market analyzer?

Thanks

Reply With Quote
The following user says Thank You to Assaya for this post:
 
  #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,653 since Mar 2010
Thanks: 4,226 given, 25,602 received
Forum Reputation: Legendary


@Assaya: You do not need to code anything.

The key is "if price is above the 60-period SMA". Price is a 1-period SMA. You can also describe that condition as "if a 1-period SMA is above the 60-period SMA".

Now let us go one step further. Comparing two moving average is not a new idea, but there is an indicator called MACD = moving average convergence divergence. The original MACD uses 2 EMAs, not SMAs. The only thing you have to do is to replace the EMAs with SMAs.

Awesome Oscillator

The Awesome Oscillator is a MACD built from two SMAs. All you have to do is to change the default settings for the fast and slow period from 5/34 to 1/60. However, the Awesome Oscillator calculates the SMAs from the median of the bars. So instead of comparing the close to the 60-period SMA of the closes, you will compare the median to the 60-period SMA of the bar medians. The result will not be very different from what you are trying to achieve, you may even get smoother signals.

Put the Awesome Oscillator on the market analyzer and define a cell condition that checks for greater or smaller than zero. The indicator can be found here.

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


MACD Universal

The MACDUniversalX2 calculates the convergence and divergence from 27 moving averages. You can simply elect to calculate the MACD from SMAs and select the periods 1 and 60 as above. This time you can use the close and achieve exactly what you wish by comparing the indicator value to zero as above. The indicator can be found here:

https://futures.io/elite-circle/1261-want-your-ninjatrader-indicator-created-free-660.html#post267525

Reply With Quote
The following 7 users say Thank You to Fat Tails for this post:
 
  #4 (permalink)
Elite Member
Düsseldorf NRW
 
Futures Experience: Beginner
Platform: NinjaTrader, IB TWS
Broker/Data: IB/IB
Favorite Futures: ES, NQ
 
Posts: 47 since Jul 2012
Thanks: 47 given, 18 received


Fat Tails View Post
@Assaya: You do not need to code anything.
MACD Universal

The MACDUniversalX2 calculates the convergence and divergence from 27 moving averages. You can simply elect to calculate the MACD from SMAs and select the periods 1 and 60 as above. This time you can use the close and achieve exactly what you wish by comparing the indicator value to zero as above. The indicator can be found here:

https://futures.io/elite-circle/1261-want-your-ninjatrader-indicator-created-free-660.html#post267525

Fat Tails, you just rock!

I've created a market analyzer template.

Attached Files
Register to download File Type: xml 3ducks.xml (30.9 KB, 234 views)

Last edited by Assaya; January 17th, 2013 at 01:55 PM. Reason: new template
Reply With Quote
The following 4 users say Thank You to Assaya for this post:
 
  #5 (permalink)
Elite Member
Baltimore, MD
 
Futures Experience: Beginner
Platform: TS & Ninja
Broker/Data: TS / AMP
Favorite Futures: ES, NQ, Bunker C
 
kvankuren's Avatar
 
Posts: 42 since May 2010
Thanks: 88 given, 63 received


Assaya View Post
Fat Tails, you just rock!

I've created a market analyzer template.

I've been searching for something similar Fat Tails, except I wanted to use the slope of two SMAs and if greater than 0, color background in Market Analyzer green and if less than zero, use a red color to indicate falling slopes. I can easily use the "cell condition" inside Market Analyzer, the challenge is locating, or coding a silple SMA indicator that will provide its slope, and I am being dense in the head at the moment. Any suggestions? thanks!

Reply With Quote
 
  #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,653 since Mar 2010
Thanks: 4,226 given, 25,602 received
Forum Reputation: Legendary


kvankuren View Post
I've been searching for something similar Fat Tails, except I wanted to use the slope of two SMAs and if greater than 0, color background in Market Analyzer green and if less than zero, use a red color to indicate falling slopes. I can easily use the "cell condition" inside Market Analyzer, the challenge is locating, or coding a silple SMA indicator that will provide its slope, and I am being dense in the head at the moment. Any suggestions? thanks!

@kvankuren: The market analyzer cannot access BoolSeries or Intseries. This means that if you wish to retrieve the slope information, you need to use a plot. Of course you do not want to plot the slope on your chart, so the plot should be transparent. This is what you can do:

Add a transparent plot, call it Trend and set it

-> to 1.0 if SMA[0] > SMA[1] (positive slope)
-> to -1.0 if SMA[0] < SMA[1] (negative slope)
-> to its prior value (unchanged) if SMA[0] = SMA[1] (zero slope)

This plot can than be accessed via the market analyzer. If SMANew.Trend[0] > 0.5, your trend is up. If SMANew.Trend[0] < -0.5, the trend is down.

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 5 users say Thank You to Fat Tails for this post:
 
  #7 (permalink)
Elite Member
Baltimore, MD
 
Futures Experience: Beginner
Platform: TS & Ninja
Broker/Data: TS / AMP
Favorite Futures: ES, NQ, Bunker C
 
kvankuren's Avatar
 
Posts: 42 since May 2010
Thanks: 88 given, 63 received


Fat Tails View Post
@kvankuren: The market analyzer cannot access BoolSeries or Intseries. This means that if you wish to retrieve the slope information, you need to use a plot. Of course you do not want to plot the slope on your chart, so the plot should be transparent. This is what you can do:

Add a transparent plot, call it Trend and set it

-> to 1.0 if SMA[0] > SMA[1] (positive slope)
-> to -1.0 if SMA[0] < SMA[1] (negative slope)
-> to its prior value (unchanged) if SMA[0] = SMA[1] (zero slope)

This plot can than be accessed via the market analyzer. If SMANew.Trend[0] > 0.5, your trend is up. If SMANew.Trend[0] < -0.5, the trend is down.

Attachment 99993

@Fat Tails I am neophyte with ninjascript and understand your directions after research over the weekend, thank you for your thougtful replay.
This is what I ended up doing to follow few instruments in the analyzer w/o using the plot syntax:

if((Slope(SMA(44),2,0)>0)&&
(Slope(SMA(16),2,0)>0))
{
Value.Set(1);
}
else if((Slope(SMA(44),2,0)<0)&&
(Slope(SMA(16),2,0)<0))
{
Value.Set(-1);
}
else
{
Value.Set(0);

Thax again Fat Tails

Reply With Quote
The following user says Thank You to kvankuren for this post:
 
  #8 (permalink)
Elite Member
London
 
Futures Experience: Intermediate
Platform: ninjatrader, multicharts, MT4
Broker/Data: IB, PFG Best
Favorite Futures: 6E, EMD, TF
 
Posts: 256 since Jul 2009
Thanks: 109 given, 145 received


Fat Tails View Post
@Assaya: You do not need to code anything.

The key is "if price is above the 60-period SMA". Price is a 1-period SMA. You can also describe that condition as "if a 1-period SMA is above the 60-period SMA".

Now let us go one step further. Comparing two moving average is not a new idea, but there is an indicator called MACD = moving average convergence divergence. The original MACD uses 2 EMAs, not SMAs. The only thing you have to do is to replace the EMAs with SMAs.

Awesome Oscillator

The Awesome Oscillator is a MACD built from two SMAs. All you have to do is to change the default settings for the fast and slow period from 5/34 to 1/60. However, the Awesome Oscillator calculates the SMAs from the median of the bars. So instead of comparing the close to the 60-period SMA of the closes, you will compare the median to the 60-period SMA of the bar medians. The result will not be very different from what you are trying to achieve, you may even get smoother signals.

Put the Awesome Oscillator on the market analyzer and define a cell condition that checks for greater or smaller than zero. The indicator can be found here.

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


MACD Universal

The MACDUniversalX2 calculates the convergence and divergence from 27 moving averages. You can simply elect to calculate the MACD from SMAs and select the periods 1 and 60 as above. This time you can use the close and achieve exactly what you wish by comparing the indicator value to zero as above. The indicator can be found here:

https://futures.io/elite-circle/1261-want-your-ninjatrader-indicator-created-free-660.html#post267525

thanks for that suggestion. Is it possible to do the same thing with the attached indicator so it gives a buy or sell signal. I can hear the alerty telling me to go long or short but i have no idea which instrument in analyser is ganerating the signal.

Thanks in advance

Attached Files
Register to download File Type: zip BolingerVolumeAlertsArrows.zip (10.4 KB, 70 views)
Reply With Quote
 
  #9 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,602 received
Forum Reputation: Legendary


yiman View Post
thanks for that suggestion. Is it possible to do the same thing with the attached indicator so it gives a buy or sell signal. I can hear the alerty telling me to go long or short but i have no idea which instrument in analyser is ganerating the signal.

Thanks in advance

You would first need to define, what is a buy or sell signal.

Reply With Quote
 
  #10 (permalink)
Elite Member
London
 
Futures Experience: Intermediate
Platform: ninjatrader, multicharts, MT4
Broker/Data: IB, PFG Best
Favorite Futures: 6E, EMD, TF
 
Posts: 256 since Jul 2009
Thanks: 109 given, 145 received



Fat Tails View Post
You would first need to define, what is a buy or sell signal.

Thanks for your reply Fat tails

I was thinking that a cell colour change when the alert fires off .go long or go short.
unfortunately the analyser has limited options unless some code is altered in the indicaor . Not being aprogrammer i wouldnt know.
I think i need to learn programming.

Reply With Quote

Reply



futures io > > > > > 3 Ducks in Market Analyzer

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Market Analyzer Templates aligator The Elite Circle 14 April 24th, 2016 02:43 PM
market analyzer templates benrock NinjaTrader 2 February 13th, 2014 07:57 PM
Gomi CD in Market Analyzer cpi65 The Elite Circle 2 May 21st, 2013 05:19 PM
Market Analyzer COMPU index blaws NinjaTrader Programming 1 July 8th, 2011 03:44 PM
Market Analyzer cell color conditions mystiq NinjaTrader 3 February 26th, 2011 04:37 AM


All times are GMT -4. The time now is 03:05 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-12-16 in 0.18 seconds with 20 queries on phoenix via your IP 54.163.209.109