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

The name 'CandelStickPattern' does not exist in the current context

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

    The name 'CandelStickPattern' does not exist in the current context

    I wanted to test the 'CandelStickPattern' class in an Indicator and a Strategy. I thought I would start out simple so I applied the code from the NT7 support docs:



    I put this code in OBU()

    if (CandelStickPattern(ChartPattern.BullishEngulfing, 4)[0] == 1) { Print("Hello BullishEngulfing CandleStick"); }


    Now, my Indicator throws this error when I try and compile:

    The name 'CandelStickPattern' does not exist in the current context.

    Has this class been deprecated? Why is this error being thrown?

    Thank You!

    #2
    Hello exnihilo,

    Thank you for writing in.

    The error results because “Candel” should be “Candle” in CandleStickPattern” statement of the HelpGuide. The error has been reported and unfortunately there is no way to change. This has been corrected in NT8.

    The correct statement should be,

    if (CandleStickPattern(ChartPattern.BullishEngulfing, 4)[0] == 1)

    Not,

    if (CandelStickPattern(ChartPattern.BullishEngulfing, 4)[0] == 1)

    Please let us know if you need further assistance.
    Last edited by NinjaTrader_AlanP; 07-25-2016, 09:52 AM.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Bwaaaa!!! A typo... Hilarious...Thanks! :>

      Comment


        #4
        ps: That typo was not mine... It's in the NT Docs:

        Comment


          #5
          will you fix that type in DOCS?

          Comment


            #6
            Hello selnomeria,

            I have submitted this request in the form of a feature request.

            Please let us know if you need further assistance.
            Alan P.NinjaTrader Customer Service

            Comment


              #7
              Hello selnomeria,

              Product development will not be making changes to the helpguide for NT7.

              Please let us know if you need further assistance.
              Alan P.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by helpwanted, Today, 03:06 AM
              1 response
              7 views
              0 likes
              Last Post sarafuenonly123  
              Started by Brevo, Today, 01:45 AM
              0 responses
              7 views
              0 likes
              Last Post Brevo
              by Brevo
               
              Started by aussugardefender, Today, 01:07 AM
              0 responses
              5 views
              0 likes
              Last Post aussugardefender  
              Started by pvincent, 06-23-2022, 12:53 PM
              14 responses
              242 views
              0 likes
              Last Post Nyman
              by Nyman
               
              Started by TraderG23, 12-08-2023, 07:56 AM
              9 responses
              384 views
              1 like
              Last Post Gavini
              by Gavini
               
              Working...
              X