Saturday, September 9, 2017

Bearish W shpar XABCD 5-point chart pattern indicator for Ninjatrader NT8.


XABCD 5-point chart patterns are very common and popular in technical analysis, some of them have already been named, such as Gartley, Butterfly, Bat, Crab, Shark and Cypher.

As the name suggests, XABCD pattern has 5 points and 4 legs formed by those 5 points. The concept of XABCD 5-point pattern is to compare the retracement level between legs. For example, when you see AB makes a 0.382 or 38.2% Fibonacci retracement of the X-A leg or XA, it means that the price difference from point A to B is equal to 38.2% of the price difference from point X to A.
If we use a formular to represent the relation, it will be: (B-A)=0.382*(X-A);



This indicator is able to detect and highlight any Bearish XABCD 5-point chart pattern based on your pre-defined settings, and plots the fibonacci retracement automatically.


The following video shows how it plots in realtime.

 
How it works:

It uses Zigzag to track the price trend and detect all four legs based on your settings. If there are four adjacent legs that meet the retracement levels you set, it will highlight the XABCD 5 points, plot two triangles and draw the fibonacci retracemen lines. The image below is an example of what this indicator plots on chart.



Features:

  1. Automatically highlight the XABCD 5 points pattern and shade the triangle XAB and BCD.
  2. You will be able to change the outline color for those 4 legs, XA, AB, BC and CD.
  3. You will be able to change the shade color and transparent level of the two triangles XAB and BCD.
  4. Automatically draw fibonacci retracement levels with ON/OFF switch,
    • adjust how many bars used for the extension of fibo levels.
    • select Right or Left side to show the fibo values.
  5. Plot a projection (not prediction) of the D point when XABC is confirmed.
    • Enable to turn this feature ON/OFF.
    • If the actual D point is detected, the projection will be removed.
  6. Show XABCD patterns on history data, if turn this feature OFF, it will only plot the last one XABCD pattern.
  7. Sound alert whenever a XABCD pattern is detected.
  8. Select different alert sound files with drop down menu.
  9. Adjust the Zigzag parameters:
    • Zigzag deviation type:  percentage or point
    • Zigzag deviation value.
    • Switch ON/OFF to show Zigzag line.







The retracement levels in some of the XABCD patterns definition are theoretical values, it's not realistic to set the retracement as a fixed value such as 0.618, since you may not be able to find any pattern in a short time.

It's better to set the value as a range. For example, if you want to detect 0.618 retracement from AB to XA, then set a range from 0.6 to 0.64 will be more practical.
Set the inputs as:  ratio AB:XA <=0.6 and ratio AB:XA >=0.64.

Define the retracement between legs as shown in the picture below.
  • If you want to compare BC and XA instead of BC and AB then enalbe BC:XA, it will disable BC:AB automatically. Same for CD:XC.



Show XABCD patterns on history data, if turn this feature OFF, it will only plot the lastest XABCD pattern.



Otherwise, it will keep all qualified patterns on chart.
But only the last one will show fibonacci retracement levels.




The following chart is a pattern on history data.






 The following chart is an example of how projection mode works.




The following chart is an example of how customized XABCD ratio works.
You can set the ratios to any value you want.




Please make sure you have enough bars loaded on chart.





You can also use this indicator to capture any XABCD pattern as well as the ones that already been named.

The following example shows how to use this indicator to detect Cypher Pattern.

Cypher Pattern Rules: 
  • The Cypher pattern starts with the X and A points.
  • Point B is confirmed when AB retraces to 0.382 – 0.618 Fibonacci level of the leg XA
  • Point C is confirmed when BC extend the XA leg by at least 1.272 or within 1.130 – 1.414 Fibonacci extension level
  • Point D is confirmed when CD retraces 0.782 Fibonacci level of XC

The image below is the parameters for Cypher Pattern, since it uses BC:XA and CD:XC, you need to enable those settings.




By applying the inputs above, the indicator will be able to detect Cypher pattern as shown in below.





The following example shows how to use this indicator to detect Gartley pattern.

Gartley pattern rules:
  1. Leg AB should be the .618 retracement of leg XA.
  2. Point C is confirmed when BC retraces either .382 or .886 of AB.
  3. If the retracement of BC is .382 of AB, then CD should be 1.272 of BC. If BC is .886 of AB, then CD should extend 1.618 of BC.
  4. CD should be .786 retracement of XA.




By applying the inputs above, the indicator will be able to detect Gartley pattern as shown in below.






Since the legs are based on Zigzag line, please make sure you set the proper input for zigzag first, otherwise you may not be able to detect the desired patterns.

This is a life time license, no subscription or renew fee.







































No comments:

Post a Comment