• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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 mestril, Yesterday, 10:22 AM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by hir04068, Yesterday, 09:29 PM
        4 responses
        15 views
        0 likes
        Last Post hir04068  
        Started by bubblegum, Today, 03:51 AM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by johnnybegoode, 05-24-2019, 10:16 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by manugarc, Today, 01:15 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X