Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

exit syntax

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

    exit syntax

    Hello,

    I have a question concerning exit-syntax please.

    Referring to http://www.ninjatrader.com/support/h...l?exitlong.htm it is not possible to have
    exitlong(1,"exit1")
    to show which exit (which condition behind) to one of eg 3 contracts (scaling in for having the possibility to scale out).

    I know I could do exitlong(1,"exit1","entry1") or exitlong(1,"exit1","enry2") but I do not know before which exit-conditions would be true as the condtions in trading are not always in the same order

    This is not logical, maybe I do not understand, sorry.

    Thank you for your explanation.

    Best regards
    Tony
    Last edited by tonynt; 11-01-2013, 08:57 AM. Reason: typing error

    #2
    Hi Tonynt,

    There is no overload method for the ExitLong(1, "Exit1").

    You can use the ExitLong(1, " ", "entry1");

    Your exit condition will need to be tied to the entry for scaling, however you can leave the signal name for the exit order blank.

    If you plan on adjusting the exit order later in the code you will need to use a signal name for the ExitLong();
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by yertle, Yesterday, 08:38 AM
    7 responses
    28 views
    0 likes
    Last Post yertle
    by yertle
     
    Started by bmartz, 03-12-2024, 06:12 AM
    2 responses
    21 views
    0 likes
    Last Post bmartz
    by bmartz
     
    Started by funk10101, Today, 12:02 AM
    0 responses
    4 views
    0 likes
    Last Post funk10101  
    Started by gravdigaz6, Yesterday, 11:40 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by MarianApalaghiei, Yesterday, 10:49 PM
    3 responses
    11 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X