Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EnterLongStopMarket

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

    EnterLongStopMarket

    Hello,

    Can someone show me and explain how to write this line of code:

    EnterLongStopMarket(int barsInProgressIndex, bool isLiveUntilCancelled, int quantity, double stopPrice, string signalName)

    The only part of the code I don't understand is, "bool isLiveUntilCancelled"

    #2
    Hello AdeptistJune,


    isLiveUntilCancelled keeps the order live until you call CancelOrder. If you don't want to deal with saving variables of the order to use with CancelOrder then you can use false for that parameter.

    Using false would mean to keep the order active until filled you would call EnterLongStopMarket for each OnBarUpdate where that order should be active.

    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by AHamxa, Yesterday, 11:24 PM
    0 responses
    5 views
    0 likes
    Last Post AHamxa
    by AHamxa
     
    Started by AHamxa, Yesterday, 11:22 PM
    0 responses
    4 views
    0 likes
    Last Post AHamxa
    by AHamxa
     
    Started by AHamxa, Yesterday, 11:17 PM
    0 responses
    5 views
    0 likes
    Last Post AHamxa
    by AHamxa
     
    Started by Spiderbird, 07-27-2018, 07:52 PM
    12 responses
    9,240 views
    2 likes
    Last Post Mountain_cast  
    Started by chrischongpdx, Yesterday, 09:39 PM
    0 responses
    7 views
    0 likes
    Last Post chrischongpdx  
    Working...
    X