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

question

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

    question

    Hi,

    I can't figure out how to write the strategy I want. I would like to enter long trades on a 1 min chart when the macd(12,26,9) is above the zero line and the positive DI is above the negative di. I will get in the trade as soon as the adx starts to slant upwards. My stop is 3.5 pts and my target is 5 pts. do u know how i do this with the ninja script?
    thanks

    #2
    Hello buyahh72,

    Yes, this is possible to create using our strategy wizard, which is a point and click interface for defining trade conditions and actions.

    Please see this help guide article on the condition builder:
    http://www.ninjatrader.com/support/helpGuides/nt7/condition_builder.htm

    The two sub sections that are most relevant for you are:
    Indicator to value comparisons and
    Comparing plot values in multi plot indicators:

    You can also compare rising and falling conditions in the strategy wizard. This sample can help with this:
    Using Rising and Falling conditions in the Strategy Wizard

    Best with this sample is to import into your platform, and then you can edit the strategy to see how these conditions can be defined with the condition builder.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Waxavi, Today, 02:00 AM
    0 responses
    2 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by elirion, Today, 01:36 AM
    0 responses
    3 views
    0 likes
    Last Post elirion
    by elirion
     
    Started by gentlebenthebear, Today, 01:30 AM
    0 responses
    4 views
    0 likes
    Last Post gentlebenthebear  
    Started by samish18, Yesterday, 08:31 AM
    2 responses
    9 views
    0 likes
    Last Post elirion
    by elirion
     
    Started by Mestor, 03-10-2023, 01:50 AM
    16 responses
    391 views
    0 likes
    Last Post z.franck  
    Working...
    X