Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Scripted access to chartTrader Properties, like AutoScale

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

    Scripted access to chartTrader Properties, like AutoScale

    Is there a scripted method to access the chartTrader properties? In particular I am looking to be able to add a toggle that adjusts the chartTrader AutoScale property from the chart trader window.


    #2
    Hello b.j.d,

    You can access the Chart properties like autoscale. The ChartTrader its self does not have public properties that can be accessed but you can access the WPF elements in the chart trader to get their values.

    https://ninjatrader.com/support/helpGuides/nt8/chartcontrol_properties.htm
    https://ninjatrader.com/support/helpGuides/nt8/chartscale_properties.htm

    Last edited by NinjaTrader_Jesse; 01-23-2023, 03:42 PM.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Jesse View Post
      Hello b.j.d,

      You can access the Chart properties like autoscale. The ChartTrader its self does not have public properties that can be accessed but you can access the WPF elements in the chart trader to get their values.

      https://ninjatrader.com/support/helpGuides/nt8/chartcontrol_properties.htm
      https://ninjatrader.com/support/helpGuides/nt8/chartscale_properties.htm
      Unfortunately, those are only the Chart window Properties, does not include the properties you see if you right click in the chart trader frame and popup Properties.

      I was hoping there would be a similar way to access the ChartTrader properties.

      The AutoScale is either a property of the Indicator or the ChartTrader (for including orders in the autoscaling).

      In saying this, I just realized I could probably work around not having access by creating my own indictor that Dynamically sets it's own Scale based on order boundaries (or not), but subscribing to orders and all that just to do this functionality is a bit overkill.

      Comment


        #4
        Originally posted by b.j.d View Post
        Is there a scripted method to access the chartTrader properties?
        Good reading here.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by several, 03-18-2025, 03:53 AM
        19 responses
        265 views
        1 like
        Last Post workfornowork  
        Started by brucerobinson, Today, 07:08 AM
        4 responses
        31 views
        0 likes
        Last Post bltdavid  
        Started by aligator, Today, 06:32 PM
        0 responses
        18 views
        0 likes
        Last Post aligator  
        Started by clarocque1, Yesterday, 08:17 AM
        2 responses
        20 views
        0 likes
        Last Post clarocque1  
        Started by eleven, Today, 05:23 PM
        0 responses
        12 views
        0 likes
        Last Post eleven
        by eleven
         
        Working...
        X