Program 72 | PivotTester

Pivot line tester

Program 72 looks for high and low pivots. Each time a pivot is found it is compared with previous pivots. If it is not within a user defined price from a previous pivot a new horizontal pivot line is drawn which is extended to the right of the chart. If the new pivot IS within a user defined price from a previous pivot the thickness of the existing horizontal line is increased. If the price crosses a pivot line, that line is discontinued. The color of the lines is determined by whether they were drawn for a low pivot or a high pivot.

The possible implication is that a thicker line represents a ‘strong’ support or resistance, and once broken might suggest a break-out from a trading range.

On this 60 minute EURUSD chart the blue lines are drawn for high pivots and the orange for low. The thicker lines show potential support or resistance. When price crosses a line it is stopped.

In order to reduce the total number of drawing objects on the chart, the oldest objects are deleted after 500 objects have been added.

Program 72 actually consists of two programs.

The first ( _P72_PivotTester) uses a two dimensional array to keep track of the pivot lines and uses the legacy TradeStation drawing functions (such as TL_New(….)). This version of the program is compatible with Multicharts.

The second program (_P72_PivotTester w BNPoint) uses a vector to keep track of drawing objects. It uses the new TradeStation drawing object technlogy (such as BNPoint). This version will work with tick/second/ volume charts.

Both the programs are available for immediate download. The first program is available for free for Gold Pass members.

Video demonstration

Program download

_P72PivotTester is available for for IMMEDIATE download for $29- by clicking the following ‘add to cart’ button.

_P72PivotTester
_P72PivotTester
_P72PivotTester looks for unbroken support and resistance on minute and higher time frame charts.
Price: $29.00

_P72PivotTester w BNPoint  is available for for IMMEDIATE download for $39- by clicking the following ‘add to cart’ button.

_P72PivotTester w BNPoint
_P72PivotTester w BNPoint
_P72PivotTester looks for unbroken support and resistance on any charts.
Price: $39.00

These TradeStation EasyLanguage programs are fully functional and unprotected, i.e. you can see the source code.

After download the program can be opened, you will be able to see the program code and modify it. After purchase you will be redirected to a download page, so don’t close the browser.

If you are a Gold Pass member _P72PivotTester is available at no cost in a Gold Pass member’s area below.

Technical differences between the two programs

The functionality between the two programs are very similar. The main differences between the two are their technical architecture and the fact that this program will not work accurately on charts that use sub-minute time stamps due to the limitations of the TL_New function.

_P72_PivotTester Technical lessons
  • Create and cycle through an array
  • Draw horizontal lines using TL_New.
  • Query and modify the thickness of line
  • Use TL_SetExtRight to extend lines to the right
  • Set the end of a line when crossed by price action
_P72_PivotTester w BNPoint Technical lessons
  • Use a vector (rather than an array)
  • Using namespaces
  • Using BNPoint and Trendline.Create
  • Query and modify trend line thickness/weight and color
  • Deleting drawing objects

_P72PivotTester applied to a daily EURGBP chart

_P72PivotTester w BNPoint applied to a 53s @ES chart. Note that the program is able to deal accurately with pivots to the second accuracy

_P72PivotTester w BNPoint applied to a to a 500 tick @ES chart

Gold Pass area

This content is for members only.

_P72PivotTester inputs

  • int Multiplier( 2 ), // Define how many times the minimum move a pivot can be from a previous pivot for a merge
  • int LeftStrength( 3 ), // Left strength of a pivot
  • int RightStrength( 3 ), // Right strength of a pivot
  • int HiPivLineCol( Red ), // Lines that started as a high pivot given this color
  • int LoPivLineCol( Green ); // Lines that started as a low pivot given this color

_P72PivotTester w BNPoint inputs

  • int Multiplier( 2 ), // Define how many times the minimum move a pivot can be from a previous pivot for a merge
  • int LeftStrength( 3 ), // Left strength of a pivot
  • int RightStrength( 3 ), // Right strength of a pivot
  • string HiPivLineCol( “Red” ), // Lines that started as a high pivot given this color
  • string LoPivLineCol( “Green” ); // Lines that started as a low pivot given this color

Notice that the inputs are virtually the same between the two programs except that the color of lines’ inputs are integers in the first program and strings in the second. This reflects the different ways of dealing with color in the legacy code.

When using _P72PivotTester w BNPoint, make sure that ‘Show empty daily trading periods for traditional chart types’ and ‘Show empty intraday session periods for traditional chart types’ are not selected. These can be found by clicking View – Chart Analysis Preferences

tutorial103-chart-analysis-prefs

If these are selected, the chart includes blank bars which ‘confuse’ the bar number for BNPoints.

Note that _P72PivotTester w BNPoint was developed for TradeStation 9.5 and above and is not compatible with MultiCharts because of some of the drawing technology used.

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.