• 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

Enable/Disable Chart Trader Via Code

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

    Enable/Disable Chart Trader Via Code

    I'd like to disable the Chart Trader or Chart Trader buttons via a custom indicator. Is this possible?

    Thanks,
    Mike Franklin

    #2
    Hello Mike,

    Unfortunately this is not possible with supported NinjaScript.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Maybe it would be wiser to just not support anything?? You could get rid of the forum and most of the employees.

      Try this

      ChartControl.ChartTraderEnabled = true;

      or set it to false.

      This is not supported.

      Man that felt good maybe I should change my stance. Never realized how powerful one sentence could be. In fact I wonder if it has ever been calculated how much time is spent replying "this is not supported". If we just never replied to unsupported things we could devote that time to making other things happen. If there is not enough bandwidth to allow unsupported help, you could clear up allot of bandwidth by not replying in the first place.

      Comment


        #4
        TimmyB, I'm sure quite a bit of time has been spent saying "this is not supported," but the time spend saying that would definitely be much less time than explaining to users why their favorite unsupported feature suddenly disappeared with a new release, or how to use something complicated like all the ChartControl methods, or how to override the Plot() method so they can draw their own objects, etc.

        If the method/property/object/whatever is in the help guide, it is supported and we will do our best to explain it. If it is not in the help guide, it is not supported.

        Many users ask "is X possible"? We would be lying sometimes if we said "it is not possible," so that is why we say it is unsupported - then the user can dig and find the solution on their own instead of just assuming it can't be done.
        AustinNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Austin View Post
          or how to override the Plot() method so they can draw their own objects, etc.
          Austin,

          I quite understand both what "unsupported is" and why you need to do that. No problem.

          I would like to suggest that, in the case of Plot() you modify your notion of supported just a little. I propose that you support Plot() architecturally, meaning that you guarantee such things as when it is called and what the state is when it is called.

          What I propose remain unsupported is whatever the code does inside Plot()

          IOW: make Plot() a first-class citizen except for what goes on inside it. That way you would not get bogged down in people's drawing problems and any side effects there might be (which is what I assume you are trying to avoid)

          --EV
          Last edited by ETFVoyageur; 01-22-2011, 08:42 PM.

          Comment


            #6
            EV, thank you for the suggestion. I will pass it along.
            AustinNinjaTrader Customer Service

            Comment


              #7
              timmyb,

              This ChartControl.ChartTraderEnabled = true; code does not seem to work from an indicator. Is your suggestion meant for the script code in Strategy only ? In any case, I'm more interested in disabling the Chart Trader buttons (NOT the Chart Trader) via a custom indicator. Is this possible ?

              Omololu

              Comment


                #8
                if you want the user from using the chart trader, then just disable the appropriate toolstripbutton.

                Comment


                  #9
                  Originally posted by bukkan View Post
                  if you want the user from using the chart trader, then just disable the appropriate toolstripbutton.
                  bukkan,

                  Thanks; I eventually browsed to the relevant & your contributing links on BMT.

                  Lolu

                  Comment


                    #10
                    Hi,

                    This is an old post, maybe the situation changed meantime. My question is the same: can we disable/enable the chart trader via script? The reason is simple: there should be a way to enforce the money management rules for the given session/instrument(s): if the predefined maximum drawdown value or the predefined number of consecutive stopped trades happened than the MANUAL trading should be stopped wtih the help of this code. Within a strategy the trading can be suspended, but how about to suspend the manual trading in chart trader?

                    Thanks,
                    Mita

                    Comment


                      #11
                      Hello Mita,

                      Thanks for your reply.

                      No, this cannot be done.
                      Many brokerages provide risk management on their end. I would recommend contacting your broker for more information.
                      BrandonNinjaTrader Customer Service

                      Comment


                        #12
                        chart trader disabled forever

                        Hi Mita

                        You could find a solution to the problem you pose, I have the same problem as you and I have no way for people solve NinjaTrader me.

                        We know that there is the option that the broker put a daily stop, we need to avoid pointless trades are occurring due to human factors very difficult to avoid, I call trading fury

                        thanks
                        Last edited by ALVARO MARTINEZ GARCIA; 12-07-2015, 12:36 PM. Reason: chart trader disabled forever

                        Comment


                          #13
                          Hi,

                          thank you for your reply. I know this feature of the brokers but i wanted to program it in NT. Because it is not possible (or possible via undocumented functions) than I will try to program it with different software.

                          Comment


                            #14
                            nable/Disable Chart Trader Via Code

                            Hi


                            You're telling me to another platform or by an external application that interacts with NT7 ? I long ago I'm looking for , I've talked to many of NinjaTrader and also with C # programmers as Ninja but does not provide the source code there is no way to make the modification. I would be willing to pay you if you find a solution.

                            Thank you

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by Bionian, Today, 02:46 PM
                            0 responses
                            3 views
                            0 likes
                            Last Post Bionian
                            by Bionian
                             
                            Started by rwilliam, Today, 01:54 PM
                            1 response
                            8 views
                            0 likes
                            Last Post NinjaTrader_Jesse  
                            Started by franco12364, Today, 11:27 AM
                            1 response
                            10 views
                            0 likes
                            Last Post NinjaTrader_PaulH  
                            Started by YevhenShynkarenko, Today, 11:48 AM
                            4 responses
                            24 views
                            0 likes
                            Last Post NinjaTrader_ChrisL  
                            Started by NinjaTrader_ChrisL, Today, 11:21 AM
                            0 responses
                            21 views
                            0 likes
                            Last Post NinjaTrader_ChrisL  
                            Working...
                            X