Announcement

Collapse
No announcement yet.

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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    53 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X