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

Defaults variables of MarketAnalyzerColumns...

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

    Defaults variables of MarketAnalyzerColumns...

    Hello, I would like define defaults variables of Market Analyzer Columns in #region Properties...

    for example:
    IsTickReplays[0] --- > public bool IsTickReplay { get; set; }
    Calculate --- > public Calculate Calculate { get; set; }

    BUTt I need these:
    BarsPeriod.MarketDataType --- > public ??? ??? { get; set; }
    BarsPeriod.BarsPeriodType --- > public ??? ??? { get; set; }
    BarsPeriod.Value --- > public ??? ??? { get; set; }

    #2
    Hello phesi,

    Thank you for the question.

    The bar series values cannot be set from a script, this would be set up when you apply the column in the market analyzer.

    For setting bar series defaults you can instead use a Preset. In the dialog you can choose the settings you wanted and then click in the lower right Preset -> save. This will save the bar series defaults for future use.



    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thank you for the reply...
      But I need hide this parameters from Properties, so user cant not change it...

      I wanted to do it as forexample as:
      [Browsable(false)] public Calculate Calculate { get; set; }

      ... but I understand your reply :/

      Is some way how I can do it?

      Comment


        #4
        Hello phesi,

        There is no suggestion I could make there, the default properties should be left alone in regard to visibility. If you created a new property named Calculate that will impact how your script sees the Calculate property as you are no longer referencing the base property. If you feel confident that you can re implement the members correctly and utilize the base values correctly you can try this but I would not be able to provide help with that type of programming.

        For the described situation where users should use your item in a specific way I would suggest to educate the user on how to utilize the item correctly. The analyzer column specifically does not have a template which can be saved as a file, normally I would suggest to include the template with your export whoever that wont apply for a single column. You could include an overall market analyzer template though which would include the column configuration. A template could be included in the export using the directions here replacing Chart with MarketAnalyzer: https://ninjatrader.com/support/help...ChartTemplates



        Please let me know if I may be of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by mjairg, 07-20-2023, 11:57 PM
        3 responses
        213 views
        1 like
        Last Post PaulMohn  
        Started by TheWhiteDragon, 01-21-2019, 12:44 PM
        4 responses
        544 views
        0 likes
        Last Post PaulMohn  
        Started by GLFX005, Today, 03:23 AM
        0 responses
        3 views
        0 likes
        Last Post GLFX005
        by GLFX005
         
        Started by XXtrader, Yesterday, 11:30 PM
        2 responses
        12 views
        0 likes
        Last Post XXtrader  
        Started by Waxavi, Today, 02:10 AM
        0 responses
        7 views
        0 likes
        Last Post Waxavi
        by Waxavi
         
        Working...
        X