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 DannyP96, 05-18-2026, 02:38 PM
        1 response
        29 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        117 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        69 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        227 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        309 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X