Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SetStopLoss method - fromEntrySignal parameter

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

    SetStopLoss method - fromEntrySignal parameter

    Hi Team,

    I am running a single strategies with concurrent "systems" and need to tie my orders to whichever system initiates a trade. The SetStopLoss does have a fromEntrySignal string parameter and seems perfect for my use - however it does not seem to be working?

    private const string OpenLong = "Open Long";

    if (_enterLong)
    {
    _entryOrder = EnterLong(quantity: PositionSize, signalName: OpenLong);
    SetStopLoss( fromEntrySignal:OpenLong, CalculationMode.Ticks, StopLossTicks);
    }

    There does not seem to be an overload for fromEntrySignal:OpenLong

    What am I doing wrong?

    Ty in advance.

    Lex

    Click image for larger version

Name:	2021-10-24_19-14-34.jpg
Views:	264
Size:	42.6 KB
ID:	1176051

    #2
    Hello Lex,

    SetStopLoss() does have an overload with a fromEntrySignal parameter and requires an isSimulatedStop bool parameter as well.
    SetStopLoss(string fromEntrySignal, CalculationMode mode, double value, bool isSimulatedStop)

    Below is a link to the help guide, where you can find the overloads for every supported NinjaScript Method.
    https://ninjatrader.com/support/help...etstoploss.htm
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    72 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    39 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X