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.

    https://youtu.be/HCyt90GAs9k

    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 CarpetHooligan, Yesterday, 05:49 PM
    0 responses
    15 views
    0 likes
    Last Post CarpetHooligan  
    Started by EquityTrader, Yesterday, 03:33 PM
    0 responses
    14 views
    0 likes
    Last Post EquityTrader  
    Started by ahelton, Yesterday, 11:53 AM
    2 responses
    41 views
    0 likes
    Last Post ahelton
    by ahelton
     
    Started by tonynt, Yesterday, 02:07 PM
    0 responses
    22 views
    0 likes
    Last Post tonynt
    by tonynt
     
    Started by sgordet, Yesterday, 01:57 PM
    0 responses
    20 views
    0 likes
    Last Post sgordet
    by sgordet
     
    Working...
    X