Program 20 | CCI trend break strategy

Program 20 applied to a 5 minute IBM chart

Program 20 applied to a 5 minute IBM chart

Program 20 consists of an unprotected TradeStation EasyLanguage strategy that generates trades based on the crossing of CCI ‘trend’ lines.Trend lines are calculated by joining CCI pivot points and then continuing the imaginary line until crossed by the CCI. An example of this concept may be found in tutorial 60 and tutorial 63.

In addition long trades are only instigated when the CCI is below a value specified in the user input CCILowFilter and short trades are only instigated when the CCI value is greater than a value specified in the user input CCIHighFilter as well as user defined filters evaluating to TRUE (see below).

The program includes a user input for the number for the contracts bought or sold, together with inputs defining two targets and how many contracts to exit at the first target. The program includes a trailing stop and a user input to define its value.

Like some of our other strategies, the program’s ‘source’ code includes a section where the user can easily define filters. As mentioned above, for a long trade to occur LongFilter1, LongFilter2 , and LongFilter3 must evaluate to true (assuming the other conditions are in force as described above). For a short trade to occur ShortFilter1, ShortFilter2, and ShortFilter3 must evaluate to true (assuming the other conditions are in force as described above).

The program is tested with Look Inside Bar Backtesting and Intra Bar Order Generation switched off.

I explain the functionality in more detail in the video, lower down the page.

This unprotected strategy is available for immediate download. You may pay by Credit Card or PayPal. I have commented the code. It has been tested it on intraday, daily, weekly and monthly charts for futures, stocks and forex.

The program works in TradeStation versions 8.7, 8.8, and 9.0. I have commented the code. It has been tested it on intraday, daily, weekly and monthly charts for futures, stocks and forex. The download includes the following bonuses:

  • The program created in tutorial 63
  • A video demonstrating how I went about converting the program created in tutorial 63 into a strategy.

A MultiCharts version of the strategy is also available for $165-. this does not include the bonuses (i.e. tutorial 63 and the bonus video).

THE STRATEGY AND INDICATOR HAVE BEEN INCLUDED SOLELY FOR EDUCATIONAL PURPOSES.

CLICK HERE FOR SPECIAL DISCOUNTS ON MARKPLEX.COM STRATEGIES.

User Defined Filters

One of the keys to using this program is to define filters within the program.

The default filters are set up as follows:

LongFilter1 = TRUE;
LongFilter2 = TRUE;
LongFilter3 = TRUE;

// Short filters
ShortFilter1 = TRUE;
ShortFilter2 = TRUE;
ShortFilter3 = TRUE;

In other words, they don’t have any effect.

If you wanted to create a stochastic filter you would need to modify the code as follows:

// Long filters
// Stochastic variables
Vars: oFastK( 0 ), // Variable for Multiple Output Function for Stochastic function
oFastD( 0 ), // Variable for Multiple Output Function for Stochastic function
oSlowK( 0 ), // Variable for Multiple Output Function for Stochastic function
oSlowD( 0 ); // Variable for Multiple Output Function for Stochastic functionValue1 = Stochastic( H, L, C, 10, 3, 3, 1, oFastK, oFastD, oSlowK, oSlowD ) ;
LongFilter1 = oSlowk < 25;
LongFilter2 = TRUE;
LongFilter3 = TRUE;// Short filters
ShortFilter1 = oSlowk > 75;
ShortFilter2 = TRUE;
ShortFilter3 = TRUE;

In other words, LongFilter1 is TRUE if oSlowk is less than 25 and ShortFilter1 is TRUE if oSlowk is greater than 75.

Say you wanted to add an additional CCI filter, for example to filter trades such that we would only go long if the candlestick pattern must have occurred within MaxAfterCandle bars, any other conditions set evaluate to TRUE, and the CCI is less than -150 then you would need to add the following code:

Value2 = CCI( 14 );
LongFilter2 = Value2 < -150;

This unprotected strategy is available for immediate download. You may pay by Credit Card or PayPal. I have commented the code. It has been tested it on intraday, daily, weekly and monthly charts for futures, stocks and forex.

The program works in TradeStation versions 8.7, 8.8, and 9.0. I have commented the code. It has been tested it on intraday, daily, weekly and monthly charts for futures, stocks and forex. The download includes the following bonuses:

  • The program created in tutorial 63
  • A video demonstrating how I went about converting the program created in tutorial 63 into a strategy.

THE STRATEGY AND INDICATOR HAVE BEEN INCLUDED SOLELY FOR EDUCATIONAL PURPOSES.

A MultiCharts version of the strategy is also available for $165-. this does not include the bonuses (i.e. tutorial 63 and the bonus video).

CLICK HERE FOR SPECIAL DISCOUNTS ON MARKPLEX.COM STRATEGIES.

The strategy is explained in detail in the video below.

Inputs

The inputs could be considered to be grouped into 4 different types:

Trend line determination

CCI trend lines are calculated by analyzing CCI pivots. The following inputs are used in this calculation.

LeftStrength( 2 ), // Left strength of pivot
RightStrength( 2 ), // Right strength of pivot
Length( 25 ), // Lookback length when looking For pivots

Trade management

The following inputs determine how many contracts are bought or sold, how many are taken off at the first target, the value of the first and second targets, and the trailing stop value.

Cts( 10), // Number of contracts to be traded
TrailVal( 61 ), // Trail value – expressed as multiple of minimum price move
Tgt1( 141 ), // First target – expressed as multiple of minimum price move (i.e. Target1 = Tgt1 * MinMove / PriceScale)
Tgt2( 1 ), // Second target – incremental to the first target (i.e. Target2 = Tgt2 * MinMove / PriceScale + Target1)
FirstTgtCts( 1 ), // The number of contracts to be taken off at first target

CCI trade filter

To instigate a trade the program checks whether MarketPosition is flat, looks for a trend line break, ensures user defined filters evaluate to TRUE and, for a long trade, makes sure the CCI is less than or equal to the CCILowFilter input, or a short trade makes sure the CCI is greater than or equal to the CCIHighFilter input.
CCILowFilter( -100 ),
CCIHighFilter( 100 ),
CCILength( 14), // CCI length

Presentation

If the user input ShowLines is set to TRUE then a line representing the trailing stop level is drawn for all trades, if FALSE, it is just drawn for the current date,

ShowLines( False ); // If set to TRUE, trailing stops are shown for all trades, otherwise just for the current date

Screen Images

Program 20 applied to a 15 minute @ES chart. ShowLines is set to TRUE so the trailing stop is visible.

Program 20 applied to a 15 minute @ES chart. ShowLines is set to TRUE so the trailing stop is visible.

In order to see a bigger image, simply click on the image you would like to enlarge. Once open, to close the enlarged image, click the cross at the top right hand corner.

A performance report after optimization of strategy on a 5 minute @ES chart with 2 years of data. Commission set at $2.50 per contract and slippage at $12.50 per contract.

A performance report after optimization of strategy on a 5 minute @ES chart with 2 years of data. Commission set at $2.50 per contract and slippage at $12.50 per contract.

This unprotected strategy is available for immediate download. You may pay by Credit Card or PayPal. I have commented the code. It has been tested it on intraday, daily, weekly and monthly charts for futures, stocks and forex.

The program works in TradeStation versions 8.7, 8.8, and 9.0. I have commented the code. It has been tested it on intraday, daily, weekly and monthly charts for futures, stocks and forex. The download includes the following bonuses:

  • The program created in tutorial 63
  • A video demonstrating how I went about converting the program created in tutorial 63 into a strategy.

THE STRATEGY AND INDICATOR HAVE BEEN INCLUDED SOLELY FOR EDUCATIONAL PURPOSES.

A MultiCharts version of the strategy is also available for $165-. this does not include the bonuses (i.e. tutorial 63 and the bonus video).

CLICK HERE FOR SPECIAL DISCOUNTS ON MARKPLEX.COM STRATEGIES.

See a video demonstration below.

TO THE BEST OF MARKPLEX CORPORATION’S KNOWLEDGE, ALL OF THE INFORMATION ON THIS PAGE IS CORRECT, AND IT IS PROVIDED IN THE HOPE THAT IT WILL BE USEFUL. HOWEVER, MARKPLEX CORPORATION 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. MARKPLEX CORPORATION. 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 strategy is available for immediate download. You may pay by Credit Card or PayPal. I have commented the code. It has been tested it on intraday, daily, weekly and monthly charts for futures, stocks and forex.

The program works in TradeStation versions 8.7, 8.8, and 9.0. I have commented the code. It has been tested it on intraday, daily, weekly and monthly charts for futures, stocks and forex. The download includes the following bonuses:

  • The program created in tutorial 63
  • A video demonstrating how I went about converting the program created in tutorial 63 into a strategy.

THE STRATEGY AND INDICATOR HAVE BEEN INCLUDED SOLELY FOR EDUCATIONAL PURPOSES.

A MultiCharts version of the strategy is also available for $165-. this does not include the bonuses (i.e. tutorial 63 and the bonus video).

Video demonstration of program 20

This unprotected strategy is available for immediate download. You may pay by Credit Card or PayPal. I have commented the code. It has been tested it on intraday, daily, weekly and monthly charts for futures, stocks and forex.

The program works in TradeStation versions 8.7, 8.8, and 9.0. I have commented the code. It has been tested it on intraday, daily, weekly and monthly charts for futures, stocks and forex. The download includes the following bonuses:

  • The program created in tutorial 63
  • A video demonstrating how I went about converting the program created in tutorial 63 into a strategy.

A MultiCharts version of the strategy is also available for $165-. this does not include the bonuses (i.e. tutorial 63 and the bonus video).

CLICK HERE FOR SPECIAL DISCOUNTS ON MARKPLEX.COM STRATEGIES.

If you would prefer to pay be check, please make a check payable to Billy Fire LLC and mail to Billy Fire LLC, 14781 Pomerado Road, #110, Poway CA 92064 together with a valid email address. I will email download instructions to you.

Please email any bugs that you may discover to support@markplex.com.

TO THE BEST OF MARKPLEX CORPORATION’S KNOWLEDGE, ALL OF THE INFORMATION ON THIS PAGE IS CORRECT, AND IT IS PROVIDED IN THE HOPE THAT IT WILL BE USEFUL. HOWEVER, MARKPLEX CORPORATION 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. MARKPLEX CORPORATION. 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.

Disclaimer The information, materials, products and services on this Web site are made available subject to the following terms and conditions. Markplex Corporation 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 Markplex Corporation 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 Markplex Corporation. 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. Markplex Corporation 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. Markplex Corporation 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 Markplex Corporation 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 Markplex Corporation's performance, including, but not limited to losses resulting from the use of Markplex Corporation 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 Markplex Corporation. Markplex Corporation makes no representations, warranties or endorsements whatsoever about any other Web sites to which you may have access through the Markplex Corporation 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 Markplex Corporation Web site or integrated with Markplex Corporation'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.

By continuing to use and navigate our sites, services, applications, tools or messaging, you are agreeing to our Terms and Conditions and the use of cookies, web beacons and similar technologies as described in our Privacy Policy and Privacy Policy on the use of cookies.