Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SetStopLoss: fromEntrySignal

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

    SetStopLoss: fromEntrySignal

    Hi,

    I would like to have 1 stopLoss and give it a Signal name of "myShort1" for when I go Short and "myLong1" when I go Long. Do I have to define it twice in the if (State == State.Configure) section ? Or can it be done by defining one and giving it the appropriate Signal name when moving it ?

    Thanks.
    Anthony


    #2
    Hello Anthony,

    The From entry signal will need to be supplied to the Set method.

    If you are calling SetStopLoss() in OnStateChange() when State is State.Configuration, that is when the From entry signal would be supplied, and yes would call SetStopLoss() for each unique entry's signal name.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    91 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    121 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    72 views
    0 likes
    Last Post PaulMohn  
    Working...
    X