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 f.saeidi, Today, 11:02 AM
        0 responses
        0 views
        0 likes
        Last Post f.saeidi  
        Started by geotrades1, Today, 10:02 AM
        3 responses
        10 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by rajendrasubedi2023, Today, 09:50 AM
        3 responses
        15 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by lorem, Today, 09:18 AM
        2 responses
        11 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by geddyisodin, Today, 05:20 AM
        4 responses
        30 views
        0 likes
        Last Post geddyisodin  
        Working...
        X