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 DJ888, 04-16-2024, 06:09 PM
    4 responses
    12 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by terofs, Today, 04:18 PM
    0 responses
    8 views
    0 likes
    Last Post terofs
    by terofs
     
    Started by nandhumca, Today, 03:41 PM
    0 responses
    6 views
    0 likes
    Last Post nandhumca  
    Started by The_Sec, Today, 03:37 PM
    0 responses
    3 views
    0 likes
    Last Post The_Sec
    by The_Sec
     
    Started by GwFutures1988, Today, 02:48 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Working...
    X