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

AlertConditionCollection

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

    AlertConditionCollection

    Hello.
    I'm trying to convert Ninjatrader 7 indicator to NT8. It has a class called AlertConditionCollection. I can make it property in Ninjatrader 7, so indicator could have condition editor in parameters.
    Like this:
    Code:
    [Category("Alerts")]
    [NtDisplayName("Alert1")]
    public AlertConditionCollection Alert1 
    {
      get { return alert1; }
      set { alert1 = value; }
    }
    Is this possible in NinjaTrader 8?

    #2
    Hello blekdzhon,

    Yes, it is possible to have a custom class as a property in NinjaTrader.

    Below is a link to an example that demonstrates.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello blekdzhon,

      Yes, it is possible to have a custom class as a property in NinjaTrader.

      Below is a link to an example that demonstrates.
      https://ninjatrader.com/support/foru...179#post510179
      Hi, Chelsea, thanks for the answer.
      AlertConditionCollection is not a custom class in NinjaTrader7.
      Using it as property I can have Condition Builder in indicator parameters.
      Condition Builder like in MarketAnalyzer.

      I mean is there a similar class in NinjaTrader8?
      My purpose is to have Condition Builder in indicator parameters.

      Comment


        #4
        Hello blekdzhon,

        AlertConditionCollection is not a NinjaScript class.

        This is likely a custom class that was created by the creator of this script.

        If you were to create a clean installation of NinjaTrader and create a new script, this class cannot be called because it is not written NinjaTrader.

        Unfortunately, no, custom type converters cannot be made into NinjaScriptProperties which would be needed to use this as an input for the StrategyBuilder or when calling the indicator from another script.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_ChelseaB View Post
          Hello blekdzhon,

          AlertConditionCollection is not a NinjaScript class.

          This is likely a custom class that was created by the creator of this script.

          If you were to create a clean installation of NinjaTrader and create a new script, this class cannot be called because it is not written NinjaTrader.

          Unfortunately, no, custom type converters cannot be made into NinjaScriptProperties which would be needed to use this as an input for the StrategyBuilder or when calling the indicator from another script.
          Thanks, Chelsea. I got it.
          Are you sure AlertConditionCollection is not a NinjaScript class?
          I could see it as a part of NinjaTrader.MarketAnalyzer namespace.
          I didn't find this class neither in the indicator code nor in import file of the indicator.

          Comment


            #6
            Hello blekdzhon,

            Thank you for your response.

            'AlertConditionCollection' was an unsupported collection in NinjaTrader 7. There is no comparable collection to pull from in NinjaTrader 8 that would be supported.

            Please let me know if you have any questions.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by pvincent, 06-23-2022, 12:53 PM
            14 responses
            238 views
            0 likes
            Last Post Nyman
            by Nyman
             
            Started by TraderG23, 12-08-2023, 07:56 AM
            9 responses
            383 views
            1 like
            Last Post Gavini
            by Gavini
             
            Started by oviejo, Today, 12:28 AM
            0 responses
            1 view
            0 likes
            Last Post oviejo
            by oviejo
             
            Started by pechtri, 06-22-2023, 02:31 AM
            10 responses
            125 views
            0 likes
            Last Post Leeroy_Jenkins  
            Started by judysamnt7, 03-13-2023, 09:11 AM
            4 responses
            59 views
            0 likes
            Last Post DynamicTest  
            Working...
            X