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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    61 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    32 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    44 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    58 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    47 views
    0 likes
    Last Post CarlTrading  
    Working...
    X