Skip to content

Program 35 (GlobalVariable.dll) | Transfer levels from one chart to another

Program 35 (GlobalVariable.dll version) use the GlobalVariable DLL to transfer horizontal line levels from one chart to another (or several others). If a symbol is changed the indicators do not need to be turned off and applied in a specific order like they do with the ADE version. Program 35 (GlobalVariable.dll version) consists of two programs:  _Program35 GV Sender and _Program35 GV Receiver. They allow a user to set levels on one chart by moving horizontal lines with a mouse and for those levels to be, almost, instantaneously available on a second chart. The programs, developed for TradeStation 9.1  and up and for them to work the GlobalVariable.dll must be installed. You can find out how to do this here: https://community.tradestation.com/Discussions/Topic.aspx?Topic_ID=113573

Program 35 programs applied to a Google Renko chart and a Google three line break chart
Program 35 programs applied to a Google Renko chart and a Google three line break chart

Unlike the ADE version of program 35, this version does not require that the sending and receiving programs are applied in any specific order. This is helpful, if you change chart symbols frequently and you do not want to keep reapplying the programs.

Lines are drawn at the same levels as on the sending chart on the receiving chart and the text values that show the price levels of the lines 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.1 and higher are available for immediate download for $29.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).

A program 35 (Globalvariable version) workspace showing one 'sender' chart and 3 'receiver' charts
A program 35 (Globalvariable version) workspace showing one ‘sender’ chart and 3 ‘receiver’ charts

How the program works

When the sending chart initializes the sending 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.

The program use the new TradeStation drawing objects. On the sending charts the program knows when a particular drawing object is clicked and dragged. When this event occurs the data stored in the global variable is updated.  The receiving program uses the TradeStation timer to check for updates to the line levels or the colors of the lines stored in the global variable. When it detects a change it moves a line or changes its color as appropriate. The data is stored in the global variable as named integers or named doubles.

The receiving program can be applied to more that one ‘receiving’ chart.

User inputs

_Program35 GV Sender

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 UniqueName( “List” ); // Unique name used when creating named integers and named doubles

_Program35 GV Receiver

string UniqueName( “List” ); // Unique name used when creating named integers and named doubles

Both UNPROTECTED programs (i.e. the TradeStation EasyLanguage sender and receiver indicators) DEVELOPED FOR VERSION 9.1 and higher are available for immediate download for $29.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 (GlobalVariable.dll version)

Both UNPROTECTED programs (i.e. the TradeStation EasyLanguage sender and receiver indicators) DEVELOPED FOR VERSION 9.1 and higher are available for immediate download for $29.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).

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.