Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Candle Stick Pattern Indicator

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

    Candle Stick Pattern Indicator

    Nice touch for the candle stick pattern indicator and an excellent increase in performance and execution, finally a real coder make a good job.:-), but got only one small comment, maybe gave the user the color option, in case a dark background exist.

    Regards and keep the good work.

    #2
    Good idea PrTester, and yes awesome indicator Josh. THANK YOU!

    At the moment I'm using mostly lines, so this indicator is great to show what I may be missing.

    As for brainstorming possible improvements, it would be great to have a single instance predict multiple user definable patterns. Having the indicator be 'trend aware' could significantly improve its usefulness.

    Something like a 'morning star' for example (a possible bottom reversal signal) isn't as relevant in an upward trend as it is in a downward trend etc.

    Optimally the overall trend would predict the type of candlestick patterns detected. If the trend is up, detect patterns that may indicate a top or confirm the trend, for a down market detect bottom reversal patterns and for a non-trending market detect breakout patterns...

    It could be useful to have the candlestick patterns have a numeric value or polarity assigned to them, i.e. patterns that generally accepted as bullish have a positive value, and patterns generally accepted as bearish have a negative value etc. This numeric value could be used for calculating entry/exit probability values in strategies.

    Another, perhaps more practical use for these values would be in determining the text color. Red values for potentially bearish signals, blue for bullish, black for neutral and yellow for signs of possible trend reversal patterns.

    Furthermore, a cool feature would be a filter that only shows candlesticks which conform to a recognizable pattern (i.e. most statistically relevant for decision making). One way I can think to do this would be to have the candlestick colors be set to transparent in the chart properties if no pattern is detected and user definable colors when a pattern is detected. A moving average with a period of 1 could be used to replicate the 'line on close' bar style and the candlesticks would appear when a pattern is detected alerting the user when its really time to pay attention to them.

    Last edited by Elliott Wave; 04-05-2008, 01:20 AM.

    Comment


      #3
      Interesting suggestions. Thanks. I will see what can be done.
      Josh P.NinjaTrader Customer Service

      Comment


        #4
        In its current form is there any way to use this indicator as part of a strategy (preferably from the strategy wiard)?

        Something along the logic of:

        if
        CurrentMarketPosition = Short
        CandleStickPattern(hammer)=True

        then
        exit short position

        end if
        or


        if
        CurrentMarketPosition = flat
        CandleStickPattern(hammer)=True

        then
        enter long position

        end if
        Last edited by Elliott Wave; 04-06-2008, 11:52 PM.

        Comment


          #5
          Yes it can be used.

          RayNinjaTrader Customer Service

          Comment


            #6
            Originally posted by NinjaTrader_Ray View Post
            Thanks. Can it be used from within the strategy builder? I tried but couldn't figure it out.



            Using the script editor, after scratching my head for a long time, I realized there is a spelling mistake in the help file.

            Examples
            // Go long if the current bar is a bullish engulfing pattern
            if (CandelStickPattern(ChartPattern.BullishEngulfing, 4).PatternFound[0])
            EnterLong();
            Then another hour of my own ineptitude and I finally got it to compile.
            Last edited by Elliott Wave; 04-08-2008, 12:26 AM.

            Comment


              #7
              Looks like it can't be used in the Wizard. Will look into that.
              RayNinjaTrader Customer Service

              Comment


                #8
                Trend Strength Parameter

                Hi

                Does anyone know how I go about searching for the definitions of certain properties of the indicators and how they are calculated, for instance I'm trying to find out how the trend strength parameter has been defined in the candle stick pattern indicator, I understand that the number indicates the number of prior bars to assess but I'm not sure what it's analysing in the prior bars for uptrends (Higher Highs,Higher Lows)? or just (Higher Lows)? for down trends (Lower Highs, Lower Lows)? or just (Lower Highs)? Or am I totally off the beaten track?

                Any help appreciated.

                Cheers
                Ross

                Comment


                  #9
                  Hi Ross, welcome to our forums! You can check this helpguide link for the CandleStickPattern indicator - http://www.ninjatrader-support.com/H...ckPattern.html

                  Furthermore you can open up the source code and review the 'CalculateTrendLines' section under Misc.
                  BertrandNinjaTrader Customer Service

                  Comment


                    #10
                    Thats what I was after.

                    New to this so didn't realise the default indicators script was accessible.

                    Perfect.

                    Ross

                    Comment


                      #11
                      With the following:

                      if
                      (Position.MarketPosition == MarketPosition.Flat
                      && CandleStickPattern(ChartPattern.Hammer, 4).PatternFound[0] == true);

                      {
                      EnterLong(DefaultQuantity, "Hammer Long");
                      }

                      I know == can't be applied to a double and a bool, so how do you set 0 = to false and 1 = to true?

                      Then, you can use:

                      if
                      (Position.MarketPosition == MarketPosition.Flat
                      && CandleStickPattern(ChartPattern.Hammer, 4).PatternFound[0] == 1);

                      {
                      EnterLong(DefaultQuantity, "Hammer Long");
                      }

                      Comment


                        #12
                        Is it something that you have to put in the

                        #region Variables

                        ??

                        Comment


                          #13
                          Edgeliner, are you using NT7? If so, I have a feeling there is an issue with accessing the PatternFound plot. I am going to investigate further and compare the behavior to NT6.5.
                          AustinNinjaTrader Customer Service

                          Comment


                            #14
                            Austin...no I am not, but will upgrade tonight and see what happens.....let me know if you find anything out?? Is there a way to set 0=false and 1=true? ......perhaps in the variables section?

                            Comment


                              #15
                              Austin......

                              6.5.1000.14 is the latest one available in the download section????

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by martin70, 03-24-2023, 04:58 AM
                              15 responses
                              114 views
                              0 likes
                              Last Post NinjaTrader_Jesse  
                              Started by The_Sec, Today, 02:29 PM
                              1 response
                              5 views
                              0 likes
                              Last Post NinjaTrader_Jesse  
                              Started by jeronymite, 04-12-2024, 04:26 PM
                              2 responses
                              31 views
                              0 likes
                              Last Post NinjaTrader_BrandonH  
                              Started by Mindset, 05-06-2023, 09:03 PM
                              10 responses
                              265 views
                              0 likes
                              Last Post NinjaTrader_BrandonH  
                              Started by michi08, 10-05-2018, 09:31 AM
                              5 responses
                              743 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Working...
                              X