Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Leader MACD Red Line?

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

    Leader MACD Red Line?

    Hi there I am just looking at the Leader Macd indicator which incorporates a Red line as well as the usual 2 and I was wondering how I could include it in a strategy as I cant seem to find the the red line in the set build conditions of the strategy builder as it simply gives the basic MACD parameters. I am confused and have probably confused everyone reading this so sorry. Any help would be appreciated.

    Regards

    Bogan7

    #2
    If you use the Condition Builder you'll see it can show you what each line is named, or if you use the chart Data Box you can see it there as well.

    But if you want to use the leader line, it is:
    Code:
    LeaderOfMACD(12, 26, 9).Leader[0]
    HTH.

    Mike

    Comment


      #3
      Bogan7,

      In the Condition Builder, after you have selected your indicator you want to pay attention to the Parameters section on the bottom. You want to pay attention to the Plot parameter to change it to your Leader plot.
      Josh P.NinjaTrader Customer Service

      Comment


        #4
        Hi there thanks for all your help so far guys. What i would also like to do if its possible is once the red line crosses the zero I would like to place my order at 2 ticks above say the 8 ema line and this would move with the chart till about 5 bars then cancel if not filled is this possible?

        Comment


          #5
          Yes this is possible but very complex using the wizard, this is a task I would advise accomplishing using direct programming.
          RayNinjaTrader Customer Service

          Comment


            #6
            Originally posted by NinjaTrader_Ray View Post
            Yes this is possible but very complex using the wizard, this is a task I would advise accomplishing using direct programming.
            Thanks for the reply Ray

            Comment


              #7
              Originally posted by Bogan7 View Post
              Hi there thanks for all your help so far guys. What i would also like to do if its possible is once the red line crosses the zero I would like to place my order at 2 ticks above say the 8 ema line and this would move with the chart till about 5 bars then cancel if not filled is this possible?
              Bogan7, brief example:

              Code:
              if CrossAbove(LeaderOfMACD(12, 26, 9).Leader, 0, 1)
              
              EnterLongLimit(EMA(8) + 0.50, "my signal");
              GL.

              Comment


                #8
                And I'll add a bit more for you

                Code:
                if (Position.MarketPosition != MarketPosition.Flat)
                Useful to know where you stand. .Flat, .Long, .Short...

                You'll want to use that so you only enter once. As for resubmitting the order for 5 minutes, if the limit order isn't filled and the condition remains true on the next OnBarUpdate (based on your data interval period ie 1 minute) then it will re-submit it again.

                GL.

                Comment


                  #9
                  Thank you very much

                  Originally posted by ctrlbrk View Post
                  And I'll add a bit more for you

                  Code:
                  if (Position.MarketPosition != MarketPosition.Flat)
                  Useful to know where you stand. .Flat, .Long, .Short...

                  You'll want to use that so you only enter once. As for resubmitting the order for 5 minutes, if the limit order isn't filled and the condition remains true on the next OnBarUpdate (based on your data interval period ie 1 minute) then it will re-submit it again.

                  GL.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by CarlTrading, 03-31-2026, 09:41 PM
                  1 response
                  67 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by CarlTrading, 04-01-2026, 02:41 AM
                  0 responses
                  36 views
                  0 likes
                  Last Post CarlTrading  
                  Started by CaptainJack, 03-31-2026, 11:44 PM
                  0 responses
                  60 views
                  1 like
                  Last Post CaptainJack  
                  Started by CarlTrading, 03-30-2026, 11:51 AM
                  0 responses
                  62 views
                  0 likes
                  Last Post CarlTrading  
                  Started by CarlTrading, 03-30-2026, 11:48 AM
                  0 responses
                  53 views
                  0 likes
                  Last Post CarlTrading  
                  Working...
                  X