Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is there an Event when Account is changed on ChartTrader?

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

    Is there an Event when Account is changed on ChartTrader?

    Is there an Event when Account is changed on ChartTrader?

    would it be this?

    AccountSelector newAcctSelect += AccountSelector.SelectionChanged;

    ??

    #2
    Hello llanqui,

    Thanks for your post.

    AccountSelector.SelectionChanged could be used to detect when the account selector's selection changes.

    See the AccountSelector help guide page for more information: https://ninjatrader.com/support/help...ntselector.htm
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Thank you....though I'm not sure how to code that in an indicator??

      Is there doc on that?

      Comment


        #4
        as well....sample code for an Indicator?

        Comment


          #5
          Hello llanqui,

          Thanks for your notes.

          I am not aware of an indicator samples that use AccountSelector.SelectionChanged in the script.

          The sample code available could be found on the AccountSelector help guide page linked in post # 2.

          If you want to use AccountSelector.SelectionChanged, you could copy/paste the sample code from the help guide and modify it to use your chart trader account selector variable.

          There is a more complicated sample in the addon framework as well that you could view. See the 'Addon Framework NinjaScript Basic' file on this help guide page: https://ninjatrader.com/support/help...t_overview.htm

          And, see this help guide for more information: https://ninjatrader.com/support/help...don_window.htm

          This forum thread will also be open for other community members to share their insights on the topic.
          <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

          Comment


            #6
            I have done an indicator that illustrates how to detect when the user clicks on the account drop down menu to select another account.
            I have attache the indicator to this post. After importing the indicator, you'll find it within a folder named "TrendIsYourFriend" and the name of the indicator is "DetectAccountSelectionChange".

            Hope this helps.
            Attached Files

            Comment


              #7
              Originally posted by trendisyourfriend View Post
              I have done an indicator that illustrates how to detect when the user clicks on the account drop down menu to select another account.
              I have attache the indicator to this post. After importing the indicator, you'll find it within a folder named "TrendIsYourFriend" and the name of the indicator is "DetectAccountSelectionChange".

              Hope this helps.
              Good job with this.
              Bruce DeVault
              QuantKey Trading Vendor Services
              NinjaTrader Ecosystem Vendor - QuantKey

              Comment


                #8
                Thank you Trend

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                600 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                347 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                103 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                558 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                558 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X