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 Radano, 06-10-2021, 01:40 AM
            19 responses
            604 views
            0 likes
            Last Post Radano
            by Radano
             
            Started by KenneGaray, Today, 03:48 AM
            0 responses
            3 views
            0 likes
            Last Post KenneGaray  
            Started by thanajo, 05-04-2021, 02:11 AM
            4 responses
            470 views
            0 likes
            Last Post tradingnasdaqprueba  
            Started by aa731, Today, 02:54 AM
            0 responses
            5 views
            0 likes
            Last Post aa731
            by aa731
             
            Started by Christopher_R, Today, 12:29 AM
            0 responses
            10 views
            0 likes
            Last Post Christopher_R  
            Working...
            X