Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Position stays open after a profit target met

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

    Position stays open after a profit target met

    I am testing a forex currency strategy with Sim101/Gain. To go Long I do the following:

    SetStopLoss(CalculationMode.Ticks, shortStopLoss);
    SetProfitTarget(CalculationMode.Ticks, shortTakeProfit);
    EnterLong(DefaultQuantity, "Long");

    When running with a real data feed under Sim101 the chart indicates a Profit Target at the right value but the Control Center -> Positions tab continues to list the same currency as an open position and the PnL value continues to change.

    On the other hand, the Control Panel -> Strategies tab indicates that the strategy continues to be running (as expected), but no longer showing a "unrealized" profit and no new BuyToCover order has been given.

    I would expect the open position in the Positions tab to have been closed when the profit target was reached.

    Can you help me understand why that is not so?

    Thanks again.



    #2
    Please make sure you understand the concept of an account position vs a strategy position. They can be different: there could be multiple strategies on the same instrument - each having their own position - running on the same live/sim account resulting in only one account position.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    60 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    39 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    20 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    22 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    51 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X