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 DJ888, 04-16-2024, 06:09 PM
        4 responses
        12 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by terofs, Today, 04:18 PM
        0 responses
        8 views
        0 likes
        Last Post terofs
        by terofs
         
        Started by nandhumca, Today, 03:41 PM
        0 responses
        6 views
        0 likes
        Last Post nandhumca  
        Started by The_Sec, Today, 03:37 PM
        0 responses
        3 views
        0 likes
        Last Post The_Sec
        by The_Sec
         
        Started by GwFutures1988, Today, 02:48 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Working...
        X