Double top chart pattern indicator with alert for Ninjatrader 8

This is a Permanent access license. Please follow these “3rd Party Licensing” steps within NinjaTrader, to properly enable your license for any of the NinjaScript.

A Google drive download link will be sent to you after your ID is activated.
Double top is a very common chart pattern, as its name indicates, it consists of two tops, and these two tops need to be in a relative flat price level. One of the top can’t be much higher or lower than another one.

This indicator will detect and highlight double top pattern automatically on chart and alert you.

 

Features and inputs:

  • Range(input): check if the first top was the highest High in given Range of bars.
  • Strength(input): minimum number of bars used to form each top.
  • Choose the alert sound file you want to use from a drop down menu.
  • Switch ON/OFF of alert.

It works on all timeframes and any symbol. It will draw a line right after the pattern is formed.

You can also load more than one with different inputs to get more results on chart.

 

There is a plot (a cyan dot) which is used check if a double top chart pattern has been formed.

You can use this plot in Market Analyzer and Strategy.

Broadening Formation chart pattern indicator with alert, SCAN and watchlist for Thinkorswim TOS

Broadening Formation is a chart pattern consisting of 2 trendlines.

Please purchase it from https://www.patternsmart.com/cart/index.php?route=product/product&product_id=430&search=Broadening+

  • The resistance (upper) line is formed by 2 or more ascending peaks.
  • The support (lower) line is formed by 2 or more descending troughs.
  • It can be considered as the boundary of incoming HIGHs and LOWs until a breakout occurs.

This indicator will be able to detect the Broadening Formation chart pattern.

It will draw two trend lines of the Broadening Formation on chart when the pattern is formed.
It works on all timeframes. Alerts will be triggered when price cross above the upper trend line or cross below the lower trend line. There will be a wedge drawn above/below the current bar whenever a crossover occurs.

The pattern detection is based on four swing points, two swing highs and two swing lows.

You can control the size of pattern you want to detect by changing the value of Input Strength: the number of bars on the left and right side of the swing high and low.

The upper trend line is formed by point A and B, the lower trend line is formed by point C and D. Please check the chart below.


If we set Strength to 5, it means the high at A is higher than the highs of on both of its left and right side for 5 bars, same for point B. And the price low at C is lower than 5 bars on both left and right side, same for point D.

The larger value you set for “Strength” the bigger size of the pattern you will get.

You can also change the color of the trend lines and the color to highlight the pattern.

Please make sure you use the same “strength” input on both scan and indicator, otherwise, you may not get the plot on chart. For example, you have “strength”=10 in scan and
“strength”=5 on chart indicator, when you load the scan result symbols on chart, there may not no pattern drawn.

There are 5 scans. If there is no scan result, please try with different input.
# scantype=1; for price cross above upper line
# scantype=2; for price cross below lower line
# scantype=3; for price is below lower line
# scantype=4; for price is above upper line
# scantype=5; for price is inside two lines.


The watchlist column will display in 5 status of current price related to Broadening Formation chart pattern.

“inside BF” which means the current price bar is in between the upper and lower trend lines.
“above BF” which means the current price bar is above the upper trend line.
“below BF” which means the current price bar is below the lower trend line.
“cross below BF” which means the current price bar is cross below the lower trend line.
“cross above BF” which means the current price bar is cross above the upper trend line.

Please note that if you have too many symbols in your watchlist, Thinkorswim may not be able to display the labels due to its limitation.


You can always load this indicator more than once with different input to get more results.

In order to be more efficient, this indicator will only show the most recent Broadening Formation pattern on chart.