Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Starting Out Programming

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

    Starting Out Programming

    Could someone please point me in the right direction on were I can get started.
    This is what I would like to happen.

    If the MACD Diff on close is greater than 0 and MACD moving average is greater than 0 then the candles on the chart are coloured green.

    #2
    I would recommend setting getting the logic/code right using the strategy wizard first. Then copy that to a new indicator and use the "BarColor" function where you would normally have an order entry.

    The strategy wizard is great but the indicator wizard is surprisingly useless, so try to get as much code as you can from the strategy wizard.

    Comment


      #3
      Hello,


      Good suggestion Elliot Wave. Thanks!
      The Indicator Wizard there to assist with the skeleton set up for an indicator so it requires more coding by the user.
      DenNinjaTrader Customer Service

      Comment


        #4
        Thanks Elliott, Yes that is much easier to use, 1 more question is I am having trouble with entering the value of "0" for the cross of the MACD above zero, should I use a "My Input Valve" then what would be the Type, default, Min be set to or use a user variable input. Are these variables set to 0, 1, 2 etc?
        The rest I understand, thanks for your help

        Comment


          #5
          Int should be fine, default doesn't matter and min should be in the negatives -10 for example (because the MACD histogram will be going into the negatives as well as positive).

          You don't really need to use a variable though. In the condition builder for cross above/cross below you can use "Numeric Value" which is in the blue section (misc I believe).

          Comment

          Latest Posts

          Collapse

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