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 rhyminkevin, Today, 04:58 PM
    4 responses
    52 views
    0 likes
    Last Post dp8282
    by dp8282
     
    Started by iceman2018, Today, 05:07 PM
    0 responses
    5 views
    0 likes
    Last Post iceman2018  
    Started by lightsun47, Today, 03:51 PM
    0 responses
    7 views
    0 likes
    Last Post lightsun47  
    Started by 00nevest, Today, 02:27 PM
    1 response
    14 views
    0 likes
    Last Post 00nevest  
    Started by futtrader, 04-21-2024, 01:50 AM
    4 responses
    50 views
    0 likes
    Last Post futtrader  
    Working...
    X