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

Using Unique Entries

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

    Using Unique Entries

    I am trying to build a strategy using two contracts with the same entry price and having different profit targets. I have watched the Strategy Builder 30 video several time and haven't caught what I am doing wrong. I have enclosed screenshots of my work hoping that someone can help me.

    Thanks in Advance,
    Mike

    #2
    Hello Stuhr,

    Thanks for your post.

    Regrettably your attachment did not get attached!

    NOTE: You've posted in the NinjaTrader 7 strategy development area but you mention "Strategy Builder" which is in NT8. The answers below would actually be applicable in both NT7 and NT8, however the link is for NT7 help guide.

    With that in mind, the "rule" for multiple orders and different targets is that each separate entry order must have a signal name (that must be different from each other entry), for example:

    EnterLong("entry1")
    EnterLong("entry2")

    In the profits and stop window, you would create two profit targets and use those (exact same capitalization must be used, "entry1" and "Entry1" are not the same) signal names to tie the entry to the particular profit target.

    So if you have done that you are on the right track. Also, a common error when moving from single entries to multiple entries is to make sure that you are now setting the strategy parameter "Entries per direction" (in this case to two) OR you can leave the Entries Per direction at 1 and change the "entry handling" from "all entries" to "Unique Entries" (The signal names being different are "unique" entries. If you do not change these then by default you would only get 1 entry. For further information on EntriesPerDirection and EntryHandling, please see "Understanding strategy properties": https://ninjatrader.com/support/help...t_strategy.htm
    Last edited by NinjaTrader_PaulH; 08-09-2019, 07:54 AM. Reason: Added note about Strategy Builder/NT8
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Thank you for your reply, which gave me the information I needed.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by DJ888, 04-16-2024, 06:09 PM
      4 responses
      12 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by terofs, Today, 04:18 PM
      0 responses
      5 views
      0 likes
      Last Post terofs
      by terofs
       
      Started by nandhumca, Today, 03:41 PM
      0 responses
      5 views
      0 likes
      Last Post nandhumca  
      Started by The_Sec, Today, 03:37 PM
      0 responses
      3 views
      0 likes
      Last Post The_Sec
      by The_Sec
       
      Started by GwFutures1988, Today, 02:48 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_Clayton  
      Working...
      X