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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    41 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    28 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    45 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    37 views
    0 likes
    Last Post CarlTrading  
    Working...
    X