• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 digibob, Today, 03:45 AM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by waldoalvarez, Yesterday, 04:59 PM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by jayfutures23, Today, 07:06 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Melissa  
    Started by MojoJojo, Today, 05:59 AM
    2 responses
    8 views
    0 likes
    Last Post MojoJojo  
    Started by Spark68, Yesterday, 07:48 PM
    1 response
    19 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Working...
    X