Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using ExitLong()

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

    Using ExitLong()

    Hi guys,

    I am using;

    ExitLong(int barsInProgressIndex, int quantity, string signalName, string fromEntrySignal)

    My question is;

    If no match is found for fromEntrySignal what is the result of calling this function? Will the complete position be exited regardless of the quantity specified, will only the specified quantity be exited or will no exit at all take place?

    thanks

    #2
    No exit will occur since there is no match for the fromEntrySignal parameter. The method will simply be ignored.
    RayNinjaTrader Customer Service

    Comment


      #3
      Thanks,

      Is the same also true of

      SetProfitTarget(string fromEntrySignal, CalculationMode mode, double value)

      and

      SetStopLoss(string fromEntrySignal, CalculationMode mode, double value, bool simulated)

      ?

      Comment


        #4
        True, if you reference a non matching 'FromEntrySignal' name it will be ignored.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        20 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        119 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        63 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        41 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        45 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X