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 Option Whisperer, Today, 09:55 AM
    1 response
    11 views
    0 likes
    Last Post bltdavid  
    Started by port119, Today, 02:43 PM
    0 responses
    1 view
    0 likes
    Last Post port119
    by port119
     
    Started by Philippe56140, Today, 02:35 PM
    0 responses
    3 views
    0 likes
    Last Post Philippe56140  
    Started by 00nevest, Today, 02:27 PM
    0 responses
    2 views
    0 likes
    Last Post 00nevest  
    Started by Jonafare, 12-06-2012, 03:48 PM
    5 responses
    3,986 views
    0 likes
    Last Post rene69851  
    Working...
    X