Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

A simple question for entry price.

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

    A simple question for entry price.

    Dear NT support,

    If I opened a postion N days ago, and now I need to compare the current close price with the N days ago entry price, how to do that?

    I tried to find entryprice function, but seems I can not find it.

    Thanks a lot.

    #2
    emcdowe, you could access the avg entry price of your NinjaScript strategy position with Position.AvgPrice -

    Comment

    Latest Posts

    Collapse

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