Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exit on GetProfitLoss() not working!

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

    Exit on GetProfitLoss() not working!

    When I use conditon below to exit, the position closes right after entry and does not wait for condition to be true.

    if (Position.GetProfitLoss(Close[0], PerformanceUnit.Currency) >= 500

    ExitLong();
    ExitShort();
    Last edited by daxtrading; 06-17-2011, 04:49 AM.

    #2
    Maarten,

    This involves debugging. You need to get a consultant to look into this or do yourself.

    Vince
    Vince B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Vincent View Post
      Maarten,

      This involves debugging. You need to get a consultant to look into this or do yourself.

      Vince
      I debugged it and seems to be a bug in NnjaTrader.

      Comment


        #4
        Maarten,

        Please double check again. It for sure is not a bug. You need to get a consultant involved who can show you what is incorrect.
        Vince B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        60 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        148 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        97 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        284 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X