Program 25 | Candlestick pattern finder for charts and RadarScreen

I occasionally develop programs that you may find useful as both a way of gaining greater EasyLanguage skills (by reading through the program code) and in your technical analysis. These programs are downloadable for a fee. Click here for a list of programs and summaries. Gold Pass members are eligible for 20% off program prices when they type in a special discount code (see http://markplex.com/gold-pass-content/ to get the latest code).

NOTE: You may be interested in a new version of this program that includes the capability of replacing the text on the chart with show me dots as well as couple of other modifications. See Program 25 (with plots) for more information.

Program 25 is a show me study that searches for candlestick patterns on both charts and RadarScreen.

Program 25 applied to a chart and RadarScreen.

This UNPROTECTED program (i.e. the TradeStation EasyLanguage show me study) is available for immediate download for $59.95 by clicking the ‘add to cart’ button to pay using Credit card or PayPal. The download includes the unprotected functions used by the program: _CheckLastSeveral and _PatternCommentary together with plain text version of program 25 and the two functions.

The programs were developed in TradeStation 9.0 and work on intraday, daily, weekly, and monthly charts. The show me study may be applied to tick charts, but the pattern text may not display correctly due to an EasyLanguage drawing tool limitations.

When you apply the program to RadarScreen, please make sure that you click ” Load Additional Data for Accumulative Calculations.” Also set “additional Bars to Load.” In the video I set this to 100.

The patterns looked for are:

  • 3 White Soldiers
  • 3 Black Crows
  • Bullish Harami
  • Bearish Harami
  • Bullish Engulfing
  • Bearish Engulfing
  • Hammer
  • Hanging Man
  • Morning Doji Star
  • Evening Doji Star
  • Morning Star
  • Evening Star
  • Piercing Line
  • Dark Cloud
  • Shooting Star

In each case you can determine whether to search for particular patterns by setting a user input (1 = yes, 0 = no)–see the inputs below. The program works in RadarScreen, where you have the option of seeing if a patterns has occurred on the current ‘bar’ or whether one has appeared within a user input number of bars. I explain this in more detail in the video lower down the page.

This UNPROTECTED program (i.e. the TradeStation EasyLanguage show me study) is available for immediate download for $59.95 by clicking the ‘add to cart’ button to pay using Credit card or PayPal. The download includes the unprotected functions used by the program: _CheckLastSeveral and _PatternCommentary together with plain text version of program 25 and the two functions..

The programs were developed in TradeStation 9.0 and work on intraday, daily, weekly, and monthly charts. The show me study may be applied to tick charts, but the pattern text may not display correctly due to an EasyLanguage drawing limitation.

Stochastic filter

The program includes an optional Stochastic filter. If the user input StochFilter is set to TRUE the program only shows potentially ‘bullish’ patterns if oSlowK <= 20 and only shows potentially ‘bearish’ patterns if oSlowK >= 80.

The chart of the left (15 minute PPG) shows ‘Piercing’ under the bar. This is also displayed on the RadarScreen on the right. In this example the LastBar input is set to zero.

Commentary

If you enable the commentary capability in RadarScreen, you will also see a summary of candlestick patterns in the row that you clicked, similar to the following image:

Alerts

Alerts are also set up for both charts and RadarScreen. When you enable Alerts then you will be alerted each time a pattern occurs. Your alert settings will determine how the alert is presented.

User inputs

LastBar( 0), // If ShowMe study is applied to RadarScreen LastBar is the number of bars to ‘look back’
Length( 14), // Input to various Candlestick pattern functions
Percent( 5), // Input to various Candlestick pattern functions
ADJ(0.0003), // Determines position of text
Factor( 2),  // Input to various Candlestick pattern functions
StochFilter( FALSE) , // Determines if Stochastic filter is applied
Use3WhiteSoldiers( 1), // Use this Candlestick pattern (1 = yes, 0 = no)
Use3BlackCrows( 1), // Use this Candlestick pattern (1 = yes, 0 = no)
UseBullishHarami( 1), // Use this Candlestick pattern (1 = yes, 0 = no)
UseBearishHarami( 1), // Use this Candlestick pattern (1 = yes, 0 = no)
UseBullishEngulfing( 1), // Use this Candlestick pattern (1 = yes, 0 = no)
UseBearishEngulfing( 1), // Use this Candlestick pattern (1 = yes, 0 = no)
UseHammer( 1), // Use this Candlestick pattern (1 = yes, 0 = no)
UseHangingMan( 1), // Use this Candlestick pattern (1 = yes, 0 = no)
UseMorningDojiStar( 1), // Use this Candlestick pattern (1 = yes, 0 = no)
UseEveningDojiStar( 1), // Use this Candlestick pattern (1 = yes, 0 = no)
UseMorningStar( 1), // Use this Candlestick pattern (1 = yes, 0 = no)
UseEveningStar( 1), // Use this Candlestick pattern (1 = yes, 0 = no)
UsePiercingLine( 1), // Use this Candlestick pattern (1 = yes, 0 = no)
UseDarkCloud( 1), // Use this Candlestick pattern (1 = yes, 0 = no)
UseShootingStar( 1); // Use shooting star  (1 = yes, 0 = no)

Explanation of candlestick pattern inputs

For all the candlestick patterns calculated in this program Length is used to calculate the average body.

For Use3WhiteSoldiers and Use3BlackCrowsThreshold, Percent is the  proximity percent of the close to the high or low.

For ShootingStar, UseHammer, or UseHangingMan, the shadow or tail must be greater than Factor multiplied by body size.

For  UseMorningDojiStar or UseEveningDojiStar, Percent is the Doji threshold for the (open – close) as a percent of the range of the bar.

Program 25 applied to a 15 minute PLL chart on the left and RadarScreen on the right. The LastBar input is set to 10 so RadarScreen is displaying the names of patterns that have occurred on either the current bar or within 10 bars of the current bar. Notice how the labels on the chart or separated vertically.

Multiple patterns displayed in one cell of RadarScreen.

If a pattern occurs more than once within user input LastBar bars then its name is only displayed once in the RadarScreen cell. For example, in the image on the right the following patterns are shown as occurring within the last eleven bars (i.e. the LastBar input is set to 10 plus the current bar = 11) for symbol PLL: Bearish Engulfing, Hanging and Evening Star. Had one of these patterns occurred more than once, its name would only be displayed once in the cell.

The program makes use of TradeStation 9.0 method and TokenList functionality and has been tested on monthly, weekly, daily, intraday, and tick charts (although on lower value tick charts the limitations of the TradeStation drawing functionality may result in the text being drawn on an incorrect bar).

The video below describes these features in more detail.

Program 25 | Candlestick program applied to a chart and RadarScreen

Video Demonstration of TokenList and Example Program

In the following video and example program I demonstrate how to use the TradeStation 9.0 TokenList class. This video is available exclusively to Gold Pass members (if you are a Gold Pass member, please make sure you are logged in to be able to see the video).
This content is for Gold Pass members only.

TO THE BEST OF BILLY FIRE LLC’S KNOWLEDGE, ALL OF THE INFORMATION ON THIS PAGE IS CORRECT, AND IT IS PROVIDED IN THE HOPE THAT IT WILL BE USEFUL. HOWEVER, BILLY FIRE LLC ASSUMES NO LIABILITY FOR ANY DAMAGES, DIRECT OR OTHERWISE, RESULTING FROM THE USE OF THIS INFORMATION AND/OR PROGRAM(S) DESCRIBED, AND NO WARRANTY IS MADE REGARDING ITS ACCURACY OR COMPLETENESS. USE OF THIS INFORMATION AND/OR PROGRAMS DESCRIBED IS AT YOUR OWN RISK.

ANY EASYLANGUAGE OR POWERLANGUAGE TRADING STRATEGIES, SIGNALS, STUDIES, INDICATORS, SHOWME STUDIES, PAINTBAR STUDIES, PROBABILITYMAP STUDIES, ACTIVITYBAR STUDIES, FUNCTIONS (AND PARTS THEREOF) AND ASSOCIATED TECHNIQUES REFERRED TO, INCLUDED IN OR ATTACHED TO THIS TUTORIAL OR PROGRAM DESCRIPTION ARE EXAMPLES ONLY, AND HAVE BEEN INCLUDED SOLELY FOR EDUCATIONAL PURPOSES. BILLY FIRE LLC. DOES NOT RECOMMEND THAT YOU USE ANY SUCH TRADING STRATEGIES, SIGNALS, STUDIES, INDICATORS, SHOWME STUDIES, PAINTBAR STUDIES, PROBABILITYMAP STUDIES, ACTIVITYBAR STUDIES, FUNCTIONS (OR ANY PARTS THEREOF) OR TECHNIQUES. THE USE OF ANY SUCH TRADING STRATEGIES, SIGNALS, STUDIES, INDICATORS, SHOWME STUDIES, PAINTBAR STUDIES, PROBABILITYMAP STUDIES, ACTIVITYBAR STUDIES, FUNCTIONS AND TECHNIQUES DOES NOT GUARANTEE THAT YOU WILL MAKE PROFITS, INCREASE PROFITS, OR MINIMIZE LOSSES.

This UNPROTECTED program (i.e. the TradeStation EasyLanguage show me study) is available for immediate download for $59.95 by clicking the ‘add to cart’ button to pay using Credit card or PayPal. The download includes the unprotected functions used by the program: _CheckLastSeveral and _PatternCommentary together with plain text version of program 25 and the two functions..

The programs were developed in TradeStation 9.0 and work on intraday, daily, weekly, and monthly charts. The show me study may be applied to tick charts, but the pattern text may not display correctly due to an EasyLanguage drawing limitation.

Disclaimer The information, materials, products and services on this Web site are made available subject to the following terms and conditions. Billy Fire LLC reserves the right to change these terms and conditions at its sole discretion. This Web site and any downloads, videos, tutorials, programs and information contained herein is presented solely for educational, informational, and/or entertainment use and under no circumstances should be used for actual trading. We at Billy Fire LLC are not Broker/Dealers, Financial Advisers or Registered Analysts. No offer or solicitation to buy or sell securities, securities derivatives, futures products or off-exchange foreign currency (forex) transactions of any kind, or any type of trading or investment advice, recommendation or strategy, is made, given or in any manner endorsed by Billy Fire LLC. You are fully responsible for any investment or trading decisions you make. Futures and options trading has a large potential risk. You must be aware of the risks and be willing to accept them in order to invest in the futures and options markets. This Web site is neither a solicitation nor an offer to buy and/or sell futures or options. No representation is being made that any account will or is likely to achieve profits or losses similar to those discussed on this Web site. Past performance, whether actual or indicated by historical tests of strategies, is no guarantee of future performance or success. No warranties of profitability are being made or given. There is a possibility that you may sustain a loss equal to or greater than your entire investment regardless of which asset class you trade (equities, options futures or forex); therefore, you should not invest or risk money that you cannot afford to lose. CFTC RULE 4.41 - Hypothetical or simulated performance results have certain inherent limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not actually been executed, the results may have under- or over-compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profits or losses similar to those shown. Screen shots on this site are examples and are not meant to imply that any of the programs or tutorials available on this Web site will generate profitable trades. EasyLanguage or PowerLanguage trading strategies, signals, studies, indicators, showme studies, paintbar studies, probabilitymap studies, activitybar studies, functions (and parts thereof) and associated techniques referred to, included in or attached to this tutorial or program description are examples only, and have been included solely for educational, informational, and entertainment use. Billy Fire LLC does not recommend that you use any such trading strategies, signals, studies, indicators, showme studies, paintbar studies, probabilitymap studies, activitybar studies, functions (or any parts thereof) or techniques. The use of any such trading strategies, signals, studies, indicators, showme studies, paintbar studies, probabilitymap studies, activitybar studies, functions and techniques does not guarantee that you will make profits, increase profits, or minimize losses Billy Fire LLC assumes no liability for any damages, direct or otherwise, resulting from the use of this information and/or program(s) described, and no warranty is made regarding its accuracy or completeness. Use of this Web site including the information, tutorials and/or programs included on it is at your own risk. You shall indemnify and hold Billy Fire LLC harmless from any and all liability, loss, trading losses, costs, damage, or expense, including attorneys' fees you or third party may suffer (other than damage to your tangible property or injuries to employees occurring during the course of work) as a result of claims, demands, costs, or judgments arising out of third party and any other claims based on Billy Fire LLC's performance, including, but not limited to losses resulting from the use of Billy Fire LLC developed software, programs, web sites, tutorials, or the TradeStation charting and/or trading platform. Any testimonials on this Web site may not be representative of the experience of other clients and are not indicative of future results or success. This Web site contains or may contain references and links to other companies and/or their Web sites, none of which is under the control of Billy Fire LLC. Billy Fire LLC makes no representations, warranties or endorsements whatsoever about any other Web sites to which you may have access through the Billy Fire LLC Web site, or any products or services of those other companies, even if the products or services of those other companies or their Web sites are described or offered on the Billy Fire LLC Web site or integrated with Billy Fire LLC's products or services. TradeStation®, EasyLanguage® and PowerEditor® are registered trademarks of TradeStation Technologies, Inc. Other brand and product names which appear on this site are the trademarks or service marks of their respective owners, including: Microsoft® is a registered trademark in the United States Microsoft®Excel® is a registered trademark of Microsoft® Neither TradeStation Technologies nor any of its affiliates has reviewed, certified, endorsed, approved, disapproved or recommended, and neither does or will review, certify, endorse, approve, disapprove or recommend, any product or service that offers training, education or consulting regarding the use of EasyLanguage. Google