Determining whether a bar on a chart is between two times is relatively straightforward when the start time is lower than the end time, but what about when the end time is lower than the start time? In other words that start time is today and the end time is tomorrow.
In tutorial 73 I created a simple tutorial to demonstrate how to calculate and draw the highest high and lowest low between two times where the start time was lower than the end time. This tutorial modifies the program created in tutorial 73 so that it will also work if the start time is today and the end time is tomorrow.
This technique should be of use to you as you develop programs that are partially dependent on time of day.
If you are a Gold Pass member you may copy and paste the program below the video.
Tutorial 81 Video
Download this program
The UNPROTECTED program (i.e. TradeStation EasyLanguage indicator) DEVELOPED IN VERSION 9.0 of TradeStation are available for immediate download for $12.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).
If you are a Gold Pass member you can also copy the program below at no additional charge:
This content is for members only.The UNPROTECTED program (i.e. TradeStation EasyLanguage indicator) DEVELOPED IN VERSION 9.0 of TradeStation are available for immediate download for $12.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.