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

Position average price indicator

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

    Position average price indicator

    Hello,

    I would like to build a position/instrument break even price indicator that will show the average breakeven price for the current positions including all closed positions. I know how to do this with the documented drawing tools but was wondering if there is a way to clone the existing breakeven line which includes a box showing the current P/L.

    Thanks

    #2
    Hello abdunbar1,

    Thank you for your post.

    There wouldn't be a way to directly clone the position average price line that's shown when you are in a position, no.

    For what you're wanting to do, starting with something like this indicator might be a good jumping off point as it displays any unrealized PnL for an instrument, the overall realized PnL for the selected account, and the cash value of the account (if available).

    This indicator provides a customizable text box which displays a position’s UnRealized PnL, Realized PnL of a selected account, and the overall cash value of the account.


    You could look at modifying that to also calculate a breakeven price from the realized + unrealized PnL and draw a line at that point on the chart.

    Please let us know if we may be of further assistance to you.

    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rhyminkevin, Yesterday, 04:58 PM
    5 responses
    62 views
    0 likes
    Last Post dp8282
    by dp8282
     
    Started by realblubb, Today, 09:28 AM
    0 responses
    2 views
    0 likes
    Last Post realblubb  
    Started by AaronKoRn, Yesterday, 09:49 PM
    1 response
    18 views
    0 likes
    Last Post Rikazkhan007  
    Started by ageeholdings, Today, 07:43 AM
    0 responses
    12 views
    0 likes
    Last Post ageeholdings  
    Started by pibrew, Today, 06:37 AM
    0 responses
    4 views
    0 likes
    Last Post pibrew
    by pibrew
     
    Working...
    X