Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

MACD conditions in an indicator

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

    MACD conditions in an indicator

    Hello,
    i've a question about macd conditions:
    condition1: macd crossing above slow ema (12)
    condition2: macd crossing below fast ema (26)
    How can i set these conditions ?

    #2
    Just replied to your other thread as well, either you could completely custom code those conditions using the CrossAbove / CrossBelow methods or you setup a strategy with those conditions and then 'view' its code and copy over the snippets needed for your indicator.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks Bertrand for the suggestion,
      but it didn't help me and it's the first time i'm in touch with this strategy wizard.
      I want to know when the macd is above the ema(12)(fast) and when the macd is below the ema(26)(slow).

      Comment


        #4
        Ok, so what exactly did you setup then for those conditions, can you please take a screenshot for us?
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Bertrand,
          attached a screenshot.
          As you can see:
          the green line is the fast (ema(12)) from macd
          the red line is the slow (ema(26)) from macd
          the dots are the macd.
          What i want is a signal
          - when the macd (dots) are above the green line (ema(12))
          - when the macd (dots) are below the red line (ema(26))

          Never IN the green shadow nor ON the green/red lines

          The purpose is to have only the price panel to trade with the necessary signals from certain indicators. This would then be only once indicator as overlay on my price panel.
          Attached Files
          Last edited by mate41; 11-07-2011, 09:54 AM.

          Comment


            #6
            mate41, then you would need to custom code this either in an indicator or strategy, you can access the values of those plots from the study you reference. If you haven't custom coded before I would recommend you taking a look at those tutorials here to get more familiar :



            Alternatively the signal could also be setup in the wizard :

            BertrandNinjaTrader Customer Service

            Comment


              #7
              Solved

              Bertrand,
              i know these links.
              I have solved it by enlarge the macd deviation from the trigger lines.

              Comment


                #8
                Glad to hear you could resolve it for you.
                BertrandNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by rajendrasubedi2023, Today, 09:50 AM
                3 responses
                15 views
                0 likes
                Last Post NinjaTrader_BrandonH  
                Started by lorem, Today, 09:18 AM
                2 responses
                11 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by geddyisodin, Today, 05:20 AM
                4 responses
                29 views
                0 likes
                Last Post geddyisodin  
                Started by geotrades1, Today, 10:02 AM
                2 responses
                10 views
                0 likes
                Last Post geotrades1  
                Started by ender_wiggum, Today, 09:50 AM
                1 response
                5 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Working...
                X