Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How to read a negative Unrealized PnL Condition

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

    How to read a negative Unrealized PnL Condition

    Could someone tell me how to read a negative Unrealized PnL condition in strategy builder.

    example: When Unrealized PnL = -100 enter long

    Strategy Builder tells me that it can not process any number below 1

    #2
    Hello tradersgrail.

    Thank you for your post.

    I have attached a sample strategy that uses negative numbers. It evaluates a double input that the user selects. Make sure to set your Minimum value to some low number for the loss limit input. To import the script go to Tools>Import>NinjaScript addon.

    Please let me know if I can assist further.
    Attached Files
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      thanks for your reply...I have tried to add the double input but I am unable to get it to work.

      I am trying to go long a second time when my Unrealized PnL is at ($100) then long again at ($200) and so on...can you show me the conditions in Strategy Builder..thanks

      Comment


        #4
        Hello tradersgrail,

        Thanks for your reply.

        Unfortunately, I can't produce custom logic for our clients, this is so we can maintain a high level of service for all of our clients. Could you please post the code that you have so far? You may Export the strategy as source code, and post it here in your next reply.

        I look forward to assisting further.
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by kempotrader, Today, 08:56 AM
        0 responses
        6 views
        0 likes
        Last Post kempotrader  
        Started by kempotrader, Today, 08:54 AM
        0 responses
        4 views
        0 likes
        Last Post kempotrader  
        Started by mmenigma, Today, 08:54 AM
        0 responses
        2 views
        0 likes
        Last Post mmenigma  
        Started by halgo_boulder, Today, 08:44 AM
        0 responses
        1 view
        0 likes
        Last Post halgo_boulder  
        Started by drewski1980, Today, 08:24 AM
        0 responses
        4 views
        0 likes
        Last Post drewski1980  
        Working...
        X