Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Question on how to go about automating trades based on Indicator

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

    Question on how to go about automating trades based on Indicator

    Hello: I have these questions using NT 7

    (1) What programming language NT 7 is using ?
    (2) Do you need to be a developer to create an automated strategy ?
    (3) How do I know if I have the code for an Indicator ? where do I look for it ?
    (4) Is it possible to generate a code backward from the indicator ?
    (4) Is there a way in NT7 to use the indicator to create a automated strategy like I have seen in NT 8.?

    Let say this is an simple MACD type indicator where I want to place a trade when color changes from green to red for sell order and close the trade when color changes back to green.

    Thanks

    #2
    Hello mtamaku,

    NinjaScript is written in C#.

    Below is a link to a forum post with helpful information about getting started with NinjaScript in NinjaTrader 7.


    Simple strategies can be created with the Strategy Wizard. I recommend watching the Strategy Wizard 301 video.

    If an indicator is open source, you can open this in the Tools > Edit NinjaScript > Indicator window.

    I don't believe there is a way to generate code backward from an indicator.

    Indicators can be called from a strategy and the strategy can use this to make decisions such as when to exit or enter the market based on the indicators values.

    The MACD indicator included with NinjaTrader does not change color. However, you can trigger actions when the Open[0] of the bar is less than (or greater than) the Close[0]. When the open is less than the close the bar is an up bar and typically green, when the open is greater than the close it is a down bar and typically red.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    556 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 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
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X