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

DrawText (PnL) on trade exit?

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

    DrawText (PnL) on trade exit?

    I'm wondering how I can most easily draw the profit/loss of a trade on the chart upon exiting?

    Using the strategy wizard I'm finding it harder than I expected.

    If the DrawText action had the ability to select a data source as an input, i.e. (...) + Unrealized PnL it would be easy, but that causes an error which could be because only strings are allowed in this field.

    I also thought of creating a string variable and setting it to "Unrealized PnL" prior to closing the position, but I couldn't do that either. It seems rather limiting in my opinion to define variables at the start of a strategy if they can't be changed in response to conditions...

    Any ideas?
    Last edited by Elliott Wave; 04-06-2008, 11:32 PM.

    #2
    I think that this might be difficult with the Wizard. At first thought, I can't think of a way to accomplish this.
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by gentlebenthebear, Today, 01:30 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by Aviram Y, Today, 05:29 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by cls71, Today, 04:45 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by TradeForge, Today, 02:09 AM
    1 response
    22 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by elirion, Today, 01:36 AM
    2 responses
    14 views
    0 likes
    Last Post elirion
    by elirion
     
    Working...
    X