NexusFi: Find Your Edge


Home Menu

 





3 Ducks in Market Analyzer


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fat Tails with 4 posts (14 thanks)
    2. looks_two yiman with 3 posts (0 thanks)
    3. looks_3 kvankuren with 2 posts (1 thanks)
    4. looks_4 Assaya with 2 posts (5 thanks)
    1. trending_up 9,290 views
    2. thumb_up 20 thanks given
    3. group 8 followers
    1. forum 12 posts
    2. attach_file 5 attachments




 
Search this Thread

3 Ducks in Market Analyzer

  #1 (permalink)
 Assaya 
Düsseldorf NRW
 
Experience: Beginner
Platform: NinjaTrader, IB TWS
Broker: IB/IB
Trading: ES, NQ
Posts: 47 since Jul 2012
Thanks Given: 47
Thanks Received: 18

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

Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
Exit Strategy
NinjaTrader
MC PL editor upgrade
MultiCharts
ZombieSqueeze
Platforms and Indicators
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
24 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


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




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:


Reply With Quote
  #4 (permalink)
 Assaya 
Düsseldorf NRW
 
Experience: Beginner
Platform: NinjaTrader, IB TWS
Broker: IB/IB
Trading: ES, NQ
Posts: 47 since Jul 2012
Thanks Given: 47
Thanks Received: 18


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:


Fat Tails, you just rock!

I've created a market analyzer template.

Attached Files
Elite Membership required to download: 3ducks.xml
Started this thread Reply With Quote
  #5 (permalink)
 
kvankuren's Avatar
 kvankuren 
Baltimore, MD
 
Experience: Beginner
Platform: TS & Ninja
Broker: TS / AMP
Trading: ES, NQ, Bunker C
Posts: 44 since May 2010
Thanks Given: 96
Thanks Received: 65


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)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


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.


Reply With Quote
  #7 (permalink)
 
kvankuren's Avatar
 kvankuren 
Baltimore, MD
 
Experience: Beginner
Platform: TS & Ninja
Broker: TS / AMP
Trading: ES, NQ, Bunker C
Posts: 44 since May 2010
Thanks Given: 96
Thanks Received: 65


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
Thanked by:
  #8 (permalink)
 yiman 
London
 
Experience: Intermediate
Platform: ninjatrader, multicharts, MT4
Broker: IB, PFG Best
Trading: 6E, EMD, TF
Posts: 265 since Jul 2009
Thanks Given: 111
Thanks Received: 158


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.




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:


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
Elite Membership required to download: BolingerVolumeAlertsArrows.zip
Reply With Quote
  #9 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


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)
 yiman 
London
 
Experience: Intermediate
Platform: ninjatrader, multicharts, MT4
Broker: IB, PFG Best
Trading: 6E, EMD, TF
Posts: 265 since Jul 2009
Thanks Given: 111
Thanks Received: 158



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




Last Updated on September 17, 2014


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts