Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How do I StreamWrite a StopMarket or Limit function?

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

    How do I StreamWrite a StopMarket or Limit function?

    I have lines like this - ExitShortLimit(Shortexit, "Short") and ExitLongStopMarket(Longstop, "Long")

    But I'm unsure of how to have it trigger a Streamwrite event to call that it has exited that position. I could use an if function that detects a change in position. But I have multiple exit conditions, so it wouldn't cover those.

    #2
    Hello unpronounceable1700,

    Thank you for your post.

    You can use OnExecutionUpdate to detect when a position has closed and write whatever information you want regarding those orders to a file.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    58 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    41 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    46 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    37 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    157 views
    0 likes
    Last Post SalmaTrader  
    Working...
    X