Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MACD help needed

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

    MACD help needed

    I am absolutely new to NT and to programming. Please help.

    The Condition builder seems pretty streight forward, but what i have done does not seem to work. I am trying to build a common strategy (by the way is there a library of the commonly used stratgies somewhere, so i can just use those as my starting point). MACD crossover. Here is what i have done:

    In the strategy builder, on the left panel selected MACD, in the plot selected diff (for the difference of two MAs), then selected cross above, on the right panel selected MACD in plot average. On both side made plot on chart true so the MACD will chart. In the do the following box i selected draw up arrow. I did set 2 similarly for the cross below.

    The result: I applied this to ES 12-08 intraday chart. There is no plots on the chart and no arrows, although i am running MACD as an indicator also in the indicators window and it shows many crossovers. What is wrong?

    So, I thought i will do something simpler. Using the same steps as above I used the EMA 12 and 26. This time i have the two EMAs plotted on the chart but still no arrows.

    Just in case you wnat to see the code, i have pasted the results of "view the code below". This is only part of it (limit. This code really is meaningless to me.

    Thank you.

    ju
    Attached Files

    #2
    A few things:

    -It would be better to export and upload the strategy file.

    -If you are using MACD diff, on the right side you probably want to go to the Misc section and select Numeric Value: 0. To test you current logic, under do the following, put enter long/short etc. This will show you where the trades would be entered.

    -Arrows need a Y axis. Try setting this to the Close value.

    Comment


      #3
      Macd

      Thank you for a prompt reply.

      1. By "export and upload" do you mean export it to the forum post. I don't think i know what you mean.

      2. No, I am using MACD Diff on the left side and MACD average on the right side. Selecting 0 would make it crossing the zero value rather than the average value, or in other words MACD Histogram turning positive from a negative value. Correct? That is no t my intenetion.

      3. Arrows need Y axis, I am not sure what you mean. I just selected from draw on chart section the up arrow for the cross above and down arrow for the cross below. I did not see any qualifiers there of y axis. Can you please explain. By the way, i also selected a second action from the miscellaneous, play a sound. That does not happen either. This to me means that the strategy is not actually prodcing the signal. I will try adding the buy /sell also but since the strategy is not triggering a signal it is not likely to do this either.

      Do you know of any library of the commonly used strategies some place on this site?

      Thank you very much.

      Comment


        #4
        1) Yes.

        2) Yes.

        3)


        4) Strategy file sharing section, but there's not much there.


        Originally posted by ju1234 View Post
        Thank you for a prompt reply.

        1. By "export and upload" do you mean export it to the forum post. I don't think i know what you mean.

        2. No, I am using MACD Diff on the left side and MACD average on the right side. Selecting 0 would make it crossing the zero value rather than the average value, or in other words MACD Histogram turning positive from a negative value. Correct? That is no t my intenetion.

        3. Arrows need Y axis, I am not sure what you mean. I just selected from draw on chart section the up arrow for the cross above and down arrow for the cross below. I did not see any qualifiers there of y axis. Can you please explain. By the way, i also selected a second action from the miscellaneous, play a sound. That does not happen either. This to me means that the strategy is not actually prodcing the signal. I will try adding the buy /sell also but since the strategy is not triggering a signal it is not likely to do this either.

        Do you know of any library of the commonly used strategies some place on this site?

        Thank you very much.

        Comment


          #5
          Macd

          Thank you.

          Y was already 0 in the left hand pane. I have changed it to [close] 0. However still no plots or signal arrow.

          Comment


            #6
            Hello,


            Please repost your code with the changes you made so we can assist. Also try setting AutoScale to true.
            DenNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            670 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            379 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            111 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            575 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            582 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X