• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help with programming MACD Histogram in condition builder

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

    Help with programming MACD Histogram in condition builder

    I am developing a system that, once other conditions are met, opens a position when the MACD histogram bar closes with a smaller absolute value than previous values, after a period of increasing (absolute) value. I.e. a peak has formed and values are decreasing.

    A short position is entered when the histogram is below 0 and long when above 0.

    How am I able to enter this in "Condition Builder"?

    Thanks in advance

    #2
    Hi reggy29,

    Thanks for the post and welcome to the NinjaTrader forums. You should be able to create a lot of this in the condition builder but unfortunately functions like absolute value are only available working with code.

    First step to creating this is breaking down your conditions into an objective rule-set -how do you define a period of increasing (absolute) value, how do you define a peak, etc.

    See here for examples of the types of conditions you can express in the condition builder.
    http://www.ninjatrader.com/support/h...on_builder.htm

    Since you're working with MACD, see the section on How to compare plot values of multi-plot indicators.

    It also sounds like you want to create sequences where one item is evaluated after another. This sample can help create sequences in the condition builder using user variables.
    http://www.ninjatrader.com/support/f...ad.php?t=15417
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by gunhonlika, Today, 05:21 AM
    0 responses
    1 view
    0 likes
    Last Post gunhonlika  
    Started by Jasper99, Yesterday, 09:50 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChrisSch  
    Started by StevenNelson, Yesterday, 05:57 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_Marco  
    Started by ttodua, Today, 03:40 AM
    0 responses
    5 views
    0 likes
    Last Post ttodua
    by ttodua
     
    Started by chnh1, Yesterday, 11:51 PM
    0 responses
    12 views
    0 likes
    Last Post chnh1
    by chnh1
     
    Working...
    X