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

New strategy and its implementation

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

    New strategy and its implementation

    Hello, I am new to this world but have a programming background.

    Where can I start
    1) Developing a sample strategy as follows

    User will provide
    1) Which indices to Trade ( for eg Dow Jones, Russle, Nasdaq etc)
    2) Buy price,
    3) Sell price for profit and
    4) Sell price for Stop loss

    If mkt hits sell price for profit, we sell on profit , then complete the trade and get out.
    Else If mkt hits a stop loss price we sell for stop loss and immediately make another short trade ( and get out of trade ), here user will again provide
    1) Sell price
    2) Buy price for profit
    3) Buy price for stop loss



    2) How to setup this strategy in Ninjatrader

    Any suggestion is appreciated.

    Thanks

    Rtel

    #2
    Hello RtelTrade,

    Welcome to the NinjaTrader support forum.

    I would suggest to start with the strategy builder video as that works through some of the basics like user input and condition building. Once you have those concepts down you can learn more from the existing content and scripts that you can download.



    The reference samples are another good starting point to look at some different trading concepts: https://ninjatrader.com/support/help.../strategy2.htm

    One item I can see which will be problematic is providing which indices to trade, you would generally need to hard code the instruments being used so that is not something which could be dynamically selected by the user. The primary instrument which they apply it to could be changed but any secondary instruments would need to be hard coded. An alternative here would be to develop a few different scripts which target different sets of pre picked instruments.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    59 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Today, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Today, 07:39 PM
    0 responses
    7 views
    0 likes
    Last Post olisav57  
    Started by trilliantrader, Today, 03:01 PM
    2 responses
    21 views
    0 likes
    Last Post helpwanted  
    Started by cre8able, Today, 07:24 PM
    0 responses
    10 views
    0 likes
    Last Post cre8able  
    Working...
    X