Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unrealized PL

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

    Unrealized PL

    Hi, was previously on NT7 and trying to rework a code I was using for NT8.

    Seems like this should be simple, but I am having issues with it. One of my condition sets has: && (Position.GetUnrealizedProfitLoss(PerformanceUnit. Currency) >= 100) in it and it doesn't seem to be working.

    What I am trying to accomplish is: if Unrealized profit and loss >= $100 do "this".

    Is that not correct, am I missing something?

    #2
    Hello,

    Thank you for the post.

    Could you provide more detail on the syntax you are currently using?

    I tried the following test and see values being printed:

    Code:
    if(Position.MarketPosition == MarketPosition.Flat)
    {
    	EnterLong();	
    } else {
    	Print(Position.GetUnrealizedProfitLoss(PerformanceUnit.Currency, Close[0]));	
    }

    Are you able to see the positions unrealized profit/loss printed while using the above simple sample? If so this may be logic related, otherwise if not we could explore further what may be the cause.


    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    89 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X