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 Waxavi, Today, 02:10 AM
    0 responses
    3 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by TradeForge, Today, 02:09 AM
    0 responses
    9 views
    0 likes
    Last Post TradeForge  
    Started by Waxavi, Today, 02:00 AM
    0 responses
    2 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by elirion, Today, 01:36 AM
    0 responses
    4 views
    0 likes
    Last Post elirion
    by elirion
     
    Started by gentlebenthebear, Today, 01:30 AM
    0 responses
    4 views
    0 likes
    Last Post gentlebenthebear  
    Working...
    X