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 giulyko00, Yesterday, 12:03 PM
              2 responses
              10 views
              0 likes
              Last Post giulyko00  
              Started by r68cervera, Today, 05:29 AM
              0 responses
              3 views
              0 likes
              Last Post r68cervera  
              Started by geddyisodin, Today, 05:20 AM
              0 responses
              6 views
              0 likes
              Last Post geddyisodin  
              Started by JonesJoker, 04-22-2024, 12:23 PM
              6 responses
              36 views
              0 likes
              Last Post JonesJoker  
              Started by GussJ, 03-04-2020, 03:11 PM
              12 responses
              3,241 views
              0 likes
              Last Post Leafcutter  
              Working...
              X