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 AaronKoRn, Today, 09:49 PM
    0 responses
    6 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Today, 08:42 PM
    0 responses
    9 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Today, 07:51 PM
    0 responses
    10 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,977 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Today, 06:48 PM
    0 responses
    9 views
    0 likes
    Last Post rbeckmann05  
    Working...
    X