Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy that only trails a stop

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

    Strategy that only trails a stop

    I am trying to create a strategy that is only used to trail a stop based on the ParabolicSAR. I am able to do this in a "full" strategy that enters positions and then trails the stop based on ParabolicSAR, so I know that part of the code works. My problem occurs in the strategy that will only trail the stop from a position that was entered manually. I can't seem to have the strategy get the correct atmstrategyId of the working orders and I'm unable to have it get the entry price. I have been using
    atmStrategyId = GetAtmStrategyUniqueId();
    which seems to get random ID's and
    if (GetAtmStrategyMarketPosition(atmStrategyId) != MarketPosition.Flat)
    entryPrice = GetAtmStrategyPositionAveragePrice(atmStrategyId);
    for the entry price which isn't working either.
    I'm wondering if this is even possible (getting the strategy ID from manually placed orders). Any help would be appreciated.

    Thank you

    #2
    Hello mlarocco,

    Thank you for your post.

    As you have guessed, this is unfortunately not possible with manual entries.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, Yesterday, 10:06 AM
    0 responses
    17 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    16 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    14 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    9 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    38 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X