Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Long Recognition

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

    Strategy Long Recognition

    Is MarketPosition.Long triggered/active once your strategy places an EnterLongLimit/MIT or only after the order is filled?

    I had some strategy logic that looked to be triggered when the order was placed but before filled.

    Thanks

    #2
    Hello mlprice12,

    The Position will only be update once you are actually in a position. When you submit an order it will remain flat until that order has filled/position is changed.

    If you have some logic which happened in between the submission and position changing you likely will need to add additional logic to prevent that. In most cases you can control that by using a variable to know the order had already been submitted or in more advanced cases you may be able to use the OnOrderUpdate override to find the order and assign that to a variable. Knowing the order had been submitted can be used logically to prevent further submissions if the condition was still true.


    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    66 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    141 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    76 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    47 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    51 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X