# Tutorial 73 | Finding the highest and lowest price between a start and end time

I was asked by a Gold Pass member to create a simple tutorial of how to find the highest and lowest prices between two specified times. I covered similar material before in tutorial 68, but I have simplified it even further in this new tutorial.

The program (a TradeStation EasyLanguage indicator) allows the user to input a start and end time. It then calculates the highest and lowest price values between (and including) these times. It then plots these values.

The following video demonstrates the tutorial 73:

### Copy and paste this program

If you are a Gold Pass member you can copy and paste the program below for free:

The UNPROTECTED indicator (i.e. the TradeStation EasyLanguage is fully functional, commented and you can see the source code) is available for for IMMEDIATE download for \$19.95- by clicking the ‘add to cart’ button.

The download includes two bonus programs. In the first bonus program the code has been modified to allow the start time to be on the day before. The second bonus video draws lines between the start and end times (rather than plotting them). This program is meant for minute charts (rather than tick or seconds charts).

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.

The programs work in MultiCharts.

Is it possible to just plot the LastPeriodHigh and LastPeriodLow between the StartTime and EndTime?

Yes it is possible. First of all remember that the LastPeriodHigh and LastPeriodLow refer to the previous period.

To achieve this you need to made two small changes.

Change the plot statements to:

```If T >= StartTime and T <= EndTime then
Begin
Plot1( LastPeriodHigh );
Plot2( LastPeriodLow );
End;```

and, for each plot go to the indicator Style page (In TradeStation 10: Studies – Edit Studies select _Tutorial73 and click Customize. Select the Style tab) then for Plot1 and Plot2 make sure that “Don’t automatically connect plot lines” is selected (highlighted in yellow the following image).