Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multiple entry signals

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

  • staycool3_a
    replied
    Originally posted by NinjaTrader_ChelseaB View Post
    Hello calhawk01,

    Thanks for your post.

    Yes, it is possible to use signal names to have separate orders and exit them at the same time using the fromSignalName.

    The usage is:
    ExitLong(1, "exitBuy1", "Buy1");
    ExitLong(1, "exitBuy2", "Buy2");
    ExitLong(int quantity, string signalName, string fromEntrySignal)

    http://www.ninjatrader.com/support/h...7/exitlong.htm

    You will also need to set Entries per direction to at least 2 in the strategy parameters.
    (Or set Entry handling to UniqueEntries)
    lmao
    thank you so much. i had been banging my head against the wall trying to exit/add my second entries. just realized that my entries per direction were set to 1!!!!
    thanks!

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    Hello calhawk01,

    Thanks for your post.

    Yes, it is possible to use signal names to have separate orders and exit them at the same time using the fromSignalName.

    The usage is:
    ExitLong(1, "exitBuy1", "Buy1");
    ExitLong(1, "exitBuy2", "Buy2");
    ExitLong(int quantity, string signalName, string fromEntrySignal)

    http://www.ninjatrader.com/support/h...7/exitlong.htm

    You will also need to set Entries per direction to at least 2 in the strategy parameters.
    (Or set Entry handling to UniqueEntries)

    Leave a comment:


  • staycool3_a
    started a topic Multiple entry signals

    Multiple entry signals

    Hi,

    I have conditions where i got long if XYZ happens
    {Enterlong(1,Quantity,"Buy1"}

    then i have another condition where if XYZ happens i add a position without exiting Buy1

    {EnterLong(1,Quantity,"Buy2"}

    then if xyz happens I want to exit both entries

    {ExitLong(1,Quantity,"Buy1"}
    {ExitLong(1,Quantity,"Buy2"}

    --------

    will that work?

    right now I have to name both entries as Buy1 and exit using Buy1
    Last edited by staycool3_a; 10-31-2014, 08:46 AM.

Latest Posts

Collapse

Topics Statistics Last Post
Started by Mindset, 04-21-2026, 06:46 AM
0 responses
102 views
0 likes
Last Post Mindset
by Mindset
 
Started by M4ndoo, 04-20-2026, 05:21 PM
0 responses
144 views
0 likes
Last Post M4ndoo
by M4ndoo
 
Started by M4ndoo, 04-19-2026, 05:54 PM
0 responses
71 views
0 likes
Last Post M4ndoo
by M4ndoo
 
Started by cmoran13, 04-16-2026, 01:02 PM
0 responses
125 views
0 likes
Last Post cmoran13  
Started by PaulMohn, 04-10-2026, 11:11 AM
0 responses
79 views
0 likes
Last Post PaulMohn  
Working...
X