• 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

what do i have to do to initialize?

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

    what do i have to do to initialize?

    i just want to create a addon so i can get notified on the fills. what do i have to do to initilize the a/c
    private Account myAccount;

    protected override void OnStateChange()
    {
    if (State == State.SetDefaults)
    {
    // Initialize myAccount << how do i filter my account to match my broker a/c id?
    }
    }

    private void OnExecutionUpdate(object sender, ExecutionEventArgs e)
    {
    foreach (Execution execution in myAccount.Executions)
    {
    Print(String.Format("Execution triggered for Order {0}", execution.Order));
    }
    }

    #2
    Hello junkone,

    Thank you for your post.

    The example at the following link for AccountItemUpdate provides this detail: http://ninjatrader.com/support/helpG...itemupdate.htm

    Please let me know if you have any questions.
    Patrick H.NinjaTrader Customer Service

    Comment


      #3
      what is the difference between extending AddonBase vs AddonTabPage?
      when i right click on addon's to create new one, it extends AddonBase

      Comment


        #4
        Hello junkone,

        The AddonBase would be as you noted, this is what an Addon extends to be an addon. This would be the correct choice for creating an addon, if you are trying to create an addon with tabbed pages please see the following example:
        http://ninjatrader.com/support/helpG...t_overview.htm
        The link to the addon is here: http://ninjatrader.com/support/helpG...ript_Basic.zip

        The AddonTabPage you are seeing is likely extending NTTabPage which is used for the Content of a tab.

        Please let me know if I may be of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by bebbus, Today, 04:03 PM
        2 responses
        4 views
        0 likes
        Last Post bltdavid  
        Started by Unicorn_Catcher, Today, 04:06 PM
        1 response
        5 views
        0 likes
        Last Post User1104  
        Started by punkiy2111, Today, 04:02 PM
        2 responses
        3 views
        0 likes
        Last Post punkiy2111  
        Started by traderharley, Today, 03:32 PM
        1 response
        16 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by yrch1985, Today, 02:04 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Kate  
        Working...
        X