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 ruudawakening, Today, 12:58 AM
              1 response
              8 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by i019945nj, 12-14-2023, 06:41 AM
              4 responses
              64 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Started by thread, Yesterday, 11:58 PM
              1 response
              8 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by stafe, Yesterday, 08:34 PM
              1 response
              16 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by jclose, Yesterday, 09:37 PM
              1 response
              11 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Working...
              X