Skip to content

Tutorial 154 | A simple Market Depth Provider tutorial

A Gold Pass member asked for a tutorial about how to create a custom indicator using the Market Depth Provider that calculated the sum of level 1 through level 5 ask volume and the sum of level 1 through level 5 bid volume and then create and plot the ratio of the Ask Side/Bid Side.

This tutorial only applies to TradeStation. It was written in version 9.5 and has been tested in version 9.5 and 10.

The software only works with real time data.

Tutorial 154 applied to an @VX chart in TradeStation 10

The tutorial 154 ELD is available for free download by Gold Pass members in the Gold Pass area below.

Tutorial 154 notes

Tutorial 154 uses the tool box to create a Market Depth Provider. The load property is set to true and the symbol property to symbol. An update event is created. For every update the program goes through a For loop to sum the contracts in the first few bid levels and ask levels.  The number of levels is based on the MaxLevels input.

The ratio of SumAskSize / SumBidSize is plotted.

Video summary of tutorial 154

Part 2 | Calculate and plot the highest value of the ratio for each bar

Part 2 of the tutorial shows how to calculate and plot the maximum and minimum values of the ratio for each bar. As with the first part of the tutorial the values are only plotted as bars develop in real time.

A chart where the indicator discussed in part 2 has been applied for a while. The green plot is the maximum value of the ratio for each bar. The red plot is the minimum value of the plot for each bar.

Gold Pass area

If you are a Gold Pass member you can download the tutorial ELD file below, please make sure that you are logged in with your Gold Pass user name and password.
This content is for members only.
THESE INDICATORS, SHOW ME STUDIES, STRATEGIES AND OTHER PROGRAMS HAVE BEEN INCLUDED SOLELY FOR EDUCATIONAL PURPOSES.

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.