• 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

High and Low Water Mark Indicator For Each Instrument and Account for the Day?

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

    High and Low Water Mark Indicator For Each Instrument and Account for the Day?

    Hi:

    Where could I find a:

    High and Low Water Mark Indicator For Each Instrument and Account for the Day?

    All it would do is plot or print on the chart what the high and low P&L (unrealized, realized, Profitloss and/or all 3 as selectable options) would be nice.

    Any place here on NT or other resources anyone know about?

    If not, is anyone game to potentially create (I think it to be a worthy indicator if folks agree)...

    For NT 7...
    Last edited by birdog; 05-19-2014, 09:05 AM.

    #2
    Hello birdog,

    I am not aware of an Indicator that would do something like this but it should be possible to do. There is not a supported way of getting an Account inside of an Indicator but you may try to get the Account by doing something like the following:

    private Account account = null;
    private string accountName;

    protected override void OnStartUp()
    {
    //have to reinitialze if connection gets lost
    NinjaTrader.Cbi.Globals.Connections.ConnectionStat us += new ConnectionStatusEventHandler(OnConnection);

    account = NinjaTrader.Cbi.Globals.Accounts.FindByName(accoun tName);

    //return if cannot find the account
    if (account == null)
    {
    DrawTextFixed("msg", "Could not retrieve the account", TextPosition.BottomRight);
    return;
    }
    else
    {
    // Do something
    }
    }
    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by frankduc, Today, 08:12 AM
    0 responses
    3 views
    0 likes
    Last Post frankduc  
    Started by jertrade, Today, 08:10 AM
    1 response
    4 views
    0 likes
    Last Post jertrade  
    Started by iq200, Today, 08:05 AM
    2 responses
    6 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by frantic, Today, 06:37 AM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by bouncetherubble, Yesterday, 06:56 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_ChristopherS  
    Working...
    X