Skip to content

Tutorial 205 | How to convert tutorial 23 (line break) and tutorial 173 (supertrend) into functions

T205

You may also be interested in

Tutorial 153 | How to ‘convert an indicator into a function’

Tutorial 205 demonstrates how to convert tutorial 23 (line break) and tutorial 173 (Markplex supertrend) into functions.

In the first part of the tutorial and the first video, I look at tutorial 23. In the second part and video I demonstrate converting tutorial 173.

In the tutorial, I convert the tutorial program into a function. A plot form the original program and the plot from an indicator that calls the tutorial 23 function can be seen in subgraph 3
In the tutorial, I convert the tutorial program into a function. A plot form the original program and the plot from an indicator that calls the tutorial 23 function can be seen in subgraph 3

In the following video I copy the tutorial 23 code into a new function and then make some chnages to the code.

Explanation of tutorial 205 part 1. Converting tutorial 23 to function

Tutorial 205 part 2. Converting tutorial 173 to a function

In this image the plot of the orginal indicator is plotted and a plot is made with an indicator calling the function. Both plots are the same values.
In this image the plot of the orginal indicator is plotted and a plot is made with an indicator calling the function. Both plots are the same values.

Tutorial 205 part 2. Converting tutorial 173 to a function

Download the tutorial 205 TradeStation EasyLanguage functions and calling indicators

If you want to save yourself some typing,  the tutorial 205 code is available for immediate download for $44.95 by clicking the following button. You can pay using PayPal or credit card. The program works with TradeStation 9.5 and 10. 

The download consists of:

  • _Tutorial23FN (function)
  • _Tutorial23FNCall (indicator that calls the _Tutorial23FN function
  • _Tutorial173FN (function)
  • _Tutorial173FNCall )indicator that calls the _Tutorial173FN function)

See tutorial 43 which demonstrates how to import an ELD into TradeStation.

MARKPLEX CORPORATION ASSUMES NO LIABILITY FOR ANY DAMAGES, DIRECT OR OTHERWISE, RESULTING FROM THE USE OF THIS INFORMATION, AND NO WARRANTY IS MADE REGARDING ITS ACCURACY OR COMPLETENESS. USE OF THIS INFORMATION IS AT YOUR OWN RISK.

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.