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.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,406 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by Shai Samuel, 07-02-2022, 02:46 PM
        4 responses
        98 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by DJ888, Yesterday, 10:57 PM
        0 responses
        8 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        160 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Yesterday, 09:29 PM
        0 responses
        9 views
        0 likes
        Last Post Belfortbucks  
        Working...
        X