Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

UI enhancements

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

    UI enhancements

    I'm working on some UI enhancements to Charts. I'm trying to find the APIs to do a few things. I tried searching the alphabetical reference and didn't find anything so if you could point me in the right direction that would be very appreciated. Here's the things I'm trying to do/find.

    1. List all of the chart templates that I have saved
    2. Load a chart template by name
    3. List active indicator objects so I can iterate through them and set one or all of them to transparent without removing them.

    #2
    LorneCash, this would not be documented as we would not provide access to those methods / properties via our NinjaScript. The chart templates would be stored in Documents\NinjaTrader 7\templates\Chart, so I'm sure you could access via C#'s DirectoryInfo (SystemIO) for example.

    The ChartControl would offer access to the indicator collection applied, for example you have the SMA added with the default orange color and wanted to change this over to blue -

    foreach (IndicatorBase ind in ChartControl.Indicators)
    if (ind.Name == "SMA")
    ind.Plots[0].Pen.Color = Color.Blue;

    Hopefully this will give you some starting points to further 'play' in this area, but please keep in mind that none of that would be documented / supported and therefore could break in future revisions. A deeper documented API is something we have on our feedback lists for consideration.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      so that gives me a starting point for #1 and #3 but what about #2? Is there any undocumented areas I can explore to possibly load/apply a chart template given that I have the name and the xml?

      Comment


        #4
        Sorry, would not have any hint here LorneCash.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Stanfillirenfro, Today, 07:23 AM
        3 responses
        10 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by FitSpressoHonest, Today, 09:14 AM
        0 responses
        0 views
        0 likes
        Last Post FitSpressoHonest  
        Started by Davide999, 05-18-2023, 03:55 AM
        4 responses
        556 views
        1 like
        Last Post kcwasher  
        Started by rexsole, Today, 08:39 AM
        2 responses
        7 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by cmtjoancolmenero, Yesterday, 03:58 PM
        6 responses
        29 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X