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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    54 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    131 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X