Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Moving Average Cross overs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Moving Average Cross overs

    I have view the videos and manual.
    Can Market Analyser be used to alert for a simple moving average cross over?

    #2
    Yes, this is possible upon creating a custom indicator and load it in an Indicator column in the Market Analyzer. More information regarding creating custom indicators can be found at the link below.
    http://www.ninjatrader-support.com/H...verview18.html
    JasonNinjaTrader Customer Service

    Comment


      #3
      MA cross over in Analyser

      I have created the following indicator which works fine on my charts.
      How would I adapt it so i could use it as a true false indicator in column in Analyser

      if (CrossAbove(SMA(Close, 5), SMA(Close, 20), 1))
      {
      CandleOutlineColor = Color.Red;
      BarColor = Color.Yellow;
      }

      Comment


        #4
        Hi cptrader, yes just create another indicator and use this snippet below as an idea -

        Code:
        if (CrossAbove(SMA(Close, 5), SMA(Close, 20), 1))
        {
        trueFalse = 1;
        }
        else if (trueFalse == 0)
         
        Plot0.Set(trueFalse);
        
        You would of course need to define trueFalse as private double in your variables.

        In the next step you can then reference these Plot values in your Market Analyzer alert or coloring conditions.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Hi Bertrand

          Need alittle help defining trueFalse as private double in variables.
          I looked at the Tutorial using price variables (Level1), need more help please. Thanks, Appreciated.

          Comment


            #6
            gary9,

            Code:
            private double trueFalse = 0;
            In Variables section of the code.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by daywalker1970, Today, 04:44 PM
            0 responses
            11 views
            0 likes
            Last Post daywalker1970  
            Started by kaywai, Today, 02:40 PM
            0 responses
            23 views
            0 likes
            Last Post kaywai
            by kaywai
             
            Started by Angus7, Today, 06:03 AM
            2 responses
            53 views
            0 likes
            Last Post Angus7
            by Angus7
             
            Started by Rhoamajhunm, Today, 05:15 AM
            0 responses
            32 views
            0 likes
            Last Post Rhoamajhunm  
            Started by cannaleafzcoast, Yesterday, 11:46 PM
            0 responses
            21 views
            0 likes
            Last Post cannaleafzcoast  
            Working...
            X