Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

probably a newbie question

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

    probably a newbie question

    Why is it that when I start a new strategy, the unrealized amount moves even if I havent entered in any position?

    #2
    Hi cornelius,

    Welcome to the NinjaTrader Support Forums. One of our NinjaScript trainees will respond to you later time today. Thank you for your patience.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Hi cornelius,

      Thanks for your post and welcome!

      The strategy always has a strategy position as it is calculated based on the data. As you start up your strategy the PnL is displaying the PnL of the virtual position the strategy would have been in if it were running live the whole time.

      Please also review this link here - http://www.ninjatrader-support.com/H...tPosition.html


      Originally posted by cornelius View Post
      Why is it that when I start a new strategy, the unrealized amount moves even if I havent entered in any position?

      Comment


        #4
        Hello. Thank you for the info.
        Would it be possible to code something like this?

        if "simulated time" < "current time"
        {
        "do not make an entry"
        }

        Comment


          #5
          Hi cornelius,

          Yes, sure to limit trades being taken to a certain time range.

          For this topic, make sure to review this reference sample from us -

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          633 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          364 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          567 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          568 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X