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:	261
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 NullPointStrategies, Today, 05:17 AM
    0 responses
    52 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    48 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X