Close
Skip to content

Program 35 | Setting trading zones on multiple charts

Program 35 is designed to allow a user to set levels on one chart and for those levels to be, almost, instantaneously available on a second chart. The program, developed for TradeStation 9.0 (it will work with higher versions but the ‘enable use of multiple CPU cores’ setting must not be selected for this program to work),  uses the global dictionary, the timer, an event handler, and vectors to store and transfer data from one chart to another.

_Program35 SenderNew applied to a 30 minute GBPUSD sending chart and _Program35 ReceiverNew applied to a 5 minute GBPUSD receiver chart

Then the ‘sending’ indicator is first applied to the ‘sending’ chart, horizontal lines are drawn evenly spaced vertically throughout the window. The values of the lines are drawn on the right of the lines. The lines are colored based on user inputs. The text pertaining to a particular lines is drawn in the same color as the line. Lines are drawn at the same levels as on the sending chart on the receiving chart and the values are drawn towards the right of the chart.

If a line is moved on the sending chart, the corresponding line is also moved on the receiving chart (see the video below for a demonstration).

The idea behind the program is that a user could determine levels or zones on the sending chart using whatever methodology he prefers, and that those same levels would become automatically available on the receiving chart.

Both UNPROTECTED programs (i.e. the TradeStation EasyLanguage sender and receiver indicators) DEVELOPED FOR VERSION 9.0 together with an example workspace and a link to a user video are available for immediate download for $69.95. Click the ‘add to cart’ button to pay using Credit card or PayPal. Gold Pass members are eligible for 20% off this price when they type in their special discount code (see //markplex.com/gold-pass-content/ to get the latest code).

How the program works

Program 35 applied to a Google sending renko chart and a 5 minute receiving chart

On the sending chart the program calculates the highest and lowest prices visible in the current window.  It divides the difference of these two values by the user input NumSR and then draws lines at the lowest value plus multiples of this calculated value to draw NumSR  evenly spaced throughout the window. The values of the lines are drawn on the right of the lines.

The horizontal lines are colored based on the user inputs: Color1, Color2, Color3, Color4, Color5, Color6, Color7, Color8, Color9, and Color10. The text pertaining to a particular lines is drawn in the same color as the line.

Program 35 applied a three line break chart on the sending chart and a 5 minute chart on the receiving chart

The sending chart stores levels information and color data in vectors which are stored into a global dictionary. Another global dictionary is updated when a change is made a line (i.e. a user manually moves the line). The receiving program uses an event handler to determine whether there has been a change of position of the horizontal lines on the sending chart, if so, the positions of the corresponding lines are updated on the receiving chart.

User inputs

_Program35 SenderNew

int NumSR( 5 ), // The number of horizontal lines to draw on chart (maximum = 20 )
int Color1( Red ), // Color of line 1
int Color2( Red ), // Color of line 2
int Color3( Yellow ), // Color of line 3
int Color4( Yellow ), // Color of line 4
int Color5( Magenta ), // Color of line 5
int Color6( Magenta ), // Color of line 6
int Color7( Cyan ), // Color of line 7
int Color8( Cyan ), // Color of line 8
int Color9( Green ), // Color of line 9
int Color10( Green ), // Color of line 10
string gDictName( GetSymbolName+”Vector” ); // name of global dictionary

_Program35 ReceiverNew

string gDictName( GetSymbolName+”Vector” );

Both UNPROTECTED programs (i.e. the TradeStation EasyLanguage sender and receiver indicators) DEVELOPED FOR VERSION 9.0 together with an example workspace and a link to a user video are available for immediate download for $69.95. Click the ‘add to cart’ button to pay using Credit card or PayPal. Gold Pass members are eligible for 20% off this price when they type in their special discount code (see //markplex.com/gold-pass-content/ to get the latest code).

Video demonstration of program 35

Both UNPROTECTED programs (i.e. the TradeStation EasyLanguage sender and receiver indicators) DEVELOPED FOR VERSION 9.0 together with an example workspace and a link to a user video are available for immediate download for $69.95. Click the ‘add to cart’ button to pay using Credit card or PayPal. Gold Pass members are eligible for 20% off this price when they type in their special discount code (see //markplex.com/gold-pass-content/ to get the latest code).

Program 35 applied to @ES tick charts

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.