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 NullPointStrategies, Today, 05:17 AM
    0 responses
    52 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    48 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X