Program 1 | Fibonacci Zig Zag Confluence

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).

Fibonacci-Confluence Show-Me Study

by Martyn Whittaker

Overview

Some technical analysts believe that the Fibonacci levels drawn between high and low ‘pivots’ or ‘turning points’ hold special significance. This program seeks to find Fibonacci levels that are close to those found previously on the chart (within a specified user inputted tolerance) and highlights these levels.

This program is available for immediate download for $74.95 by clicking the following button to pay using PayPal or credit card. The program works with versions 8.7 and above, including TradeStation version9.1.

This Fibonacci-Confluence show-me study works by drawing percentage based zig zag lines and each time a new zig zag line is confirmed, Fibonacci levels are calculated. An array is created which stores Fibonacci levels. If a new Fibonacci level is found to be within a certain tolerance of an existing Fibonacci level stored in the array, it is ‘merged’ with the existing line. This is done by increasing the thickness parameter of the line. Lines are extended to the right if their thickness parameter is greater than an input value. The maximum thickness of a line plotted is TradeStation line thickness 4.

The following image shows the program applied to a 60 minute chart of the S&P 500 e-mini.

The zig-zag lines can be seen going from one low pivot to next high pivot and to the next low pivot. The last zig-zag line is still in formation, in other words, if a lower pivot is formed before the next high pivot that exceeds the required percentage change, then the last zig-zag line is extended to the next lower pivot. The Fibonacci levels are plotted and labeled based on the previous (confirmed) zig-zag line. The dark blue lines represent the the ‘significant’ Fibonaci levels based on previous Fibonacci levels calculated for each confirmed zig-zag line.

The following video explains the use of the program in more detail.

This program is available for immediate download for $74.95 by clicking the following button to pay using PayPal or credit card. The program works with versions 8.7 and above, including TradeStation version9.1.

The program is ‘unprotected,’ in other words, you will be able to see the program. If you would prefer to pay be check, please make a check payable to Billy Fire LLC and mail to 14781 Pomerado Road, #110, Poway CA 92064 together with a valid email address. I will email download instructions to you.

I have included extensive comments in the code to help you understand how it works..

Details of the program

The zig zag

The following program inputs control the way the zig zag works:

ShowZigZag( TRUE )

This is set to true if you want the zig zag lines to be shown or false if you do not. The zig zag is calculated anyway in order to calculate the Fibonacci levels.

ZigZagCol( DarkGray)

This determines the color of the zig zag lines, if plotted.

LeftStrength( 3 )

This specifies the number of bars that must be higher than pivot to the left of the pivot, for the bar to constitute a pivot

RightStrength( 3 )

This specifies the number of bars that must be higher than pivot to the right of the pivot

RetracePerc( 10 )

The RetracePerc input is best explained by way of example. Assume that the last low pivot has been determined, and we are now drawing an up zig zag line. In order to start a new down zig zag line, a new low pivot must be formed at the last high pivot multiplied by (1 – RetracePerc / 100). In the same way, if we assume that the last high pivot has been determined, and we are now drawing a down zig zag line. In order to start a new up zig zag line, a new high pivot must be formed at the last low pivot multiplied by (1 + RetracePerc / 100). This is similar to the way the standard TradeStation indicator: ZigZag % works, except that the first Markplex zig zag is calculated in a different way and the TradeStation indicator calculated zig zags based on close, rather than high and low values. It also does not allow you to specify the left and right number of bars that are required to confirm a pivot.

Fibonacci Calculation

The program calculates the Fibonacci levels using the following factors:

The number of decimal places displayed in the Fib levels for the most recent confirmed zig zag on the right of the chart

DrawFibs( FALSE )

Set to TRUE to see Fib levels on most recent CONFIRMED (i.e. not going to change) zigzag

Calculation and display of significant Fibonacci lines

NumberPivots( 10 )

The number of Fibonacci combination lines to be included in the array (up to 500)

CombineVal( 0 )

Numeric value above or below Fibonacci line for existing line to be combined

CombineCol( Blue )

Color of combined lines

LineSensitivity( 0 )

If the ‘thickness’ of the combined significant Fibonacci line is equal to or greater than this number then the line is extended to the right

SrtArray( TRUE )

If set to TRUE the significant Fibonacci line array is sorted prior to evaluating Fibonacci levels that have just been discovered on the formation of the new zig zag line.

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

This program is available for immediate download for $74.95 by clicking the following button to pay using PayPal or credit card. The program works with versions 8.7 and above, including TradeStation version9.1.

The program is ‘unprotected,’ in other words, you will be able to see the program. If you would prefer to pay be check, please make a check payable to Billy Fire LLC and mail to 14781 Pomerado Road, #110, Poway CA 92064 together with a valid email address. I will email download instructions to you.

I have included extensive comments in the code to help you understand how it works..

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.

Member Login

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