Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I found a system/guideline called three ducks. The system is very simple:
4 hour chart with a 60 SMA. If the price is above the SMA the we get the first green light for a long
60min chart with a 60 SMA. If the price is above the SMS we get the second green light for a long
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?
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.
Exported using NT Version 7.0.1000.3
Bill William's Awesome Oscillator is quite similar to the raw MACD, but uses simple moving averages with a period of 34 and 5 instead of the exponential moving averages used for the MACD. The input value is the …
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:
Here is a quickly coded experimental MACD, which allows to to test the concept of convergence and divergence with a choice of moving averages. Color options and sound files included. Histogram opacity is selectable.
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.
@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:
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.
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.