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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        155 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        74 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        125 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        79 views
        0 likes
        Last Post PaulMohn  
        Working...
        X