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 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 AttiM, 02-14-2024, 05:20 PM
    12 responses
    213 views
    0 likes
    Last Post DrakeiJosh  
    Started by cre8able, 02-11-2023, 05:43 PM
    3 responses
    237 views
    0 likes
    Last Post rhubear
    by rhubear
     
    Started by frslvr, 04-11-2024, 07:26 AM
    8 responses
    117 views
    1 like
    Last Post NinjaTrader_BrandonH  
    Started by stafe, 04-15-2024, 08:34 PM
    10 responses
    47 views
    0 likes
    Last Post stafe
    by stafe
     
    Started by rocketman7, Today, 09:41 AM
    3 responses
    12 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X