Design Your Own™

Ensign Windows has a powerful feature for designing your own studies.   Use this feature to implement the logic for a study, or create special visual effects.   There are hundreds of operations available divided into 16 categories.   Use the drop down boxes on the form to select an operation to implement a study's mathematics or logic.  Several examples are illustrated on this page.   Please read the information about Global Variables.
Opening Gap

This example finds the opening gap between the prior session close and today's day session open at the time stamp entered on Line A.   An gap Up is colored with a green band and a gap Down is colored with a red band.

Line A finds the bar Index (position in the data set) for the opening bar and stores the index in GV [1].   Edit the day session open time entered as the number on Line A to adapt this example to other markets.

Line B stores the index for the bar prior to the opening bar.

Line C tests for a Gap Down at the opening bar, and if present the gap between the opening bar's High and the prior bar's Low is drawn in red.   Line D and Line E obtain the two prices for the spread marker.

Line G test for a Gap Up at the opening bar, and if present the gap between the opening bar's Low and the prior bar's High is drawn in green.   Line H and Line I obtain the two prices for the spread marker.

Template:  OpeningGap


5-MinuteTime Zones

This example can be used with constant tick charts, constant volume charts, or Momentum Bars (constant range charts).  Although the bars span a variable amount of time, the zone coloring changes every 5-minutes.

Line A gets the Bar's Time and divides by 5 to create 5-minute periods, and stores it in GV [1].   Line B truncates the division from Line A and resaves the integer in GV [1].   Line C does a modulo 4 operation to return a remainder of 0, 1, 2, or 3.    To change the time period for the color grouping, edit the Line A Value to the number of minutes for the period.

Lines D through G plot a different zone color for each of the 4 possible results from Line B's modulo 4 operation.

Template:  5MinZones


Band Examples

 

This DYO form shows three Band examples.  The spread marker will use the two values obtained from adjacent lines on the DYO form.  For example, the spread marker on Line A will use the Line A value and the Line B value.

Lines A and B plot the spread between the Open of a bar and the Close of the prior bar (Bar Offset = -1).

Lines C and D plot the spread of the Today's Open and Yesterday's Close.  This shows the opening gap.  The label marks these prices with a letter and looks up the values from Line C and Line D with the [C] and [D] notation.

Lines E and F plot a spread between two prices that have been manually entered in the number fields.


Pesavento Break

The Pesavento Patterns study is an excellent way to find and mark the swings on a chart.   This example will highlight in blue the bars which break above a prior swing high in an up trend.  In a down trend, the bars that trade below a prior swing low will be highlighted in yellow.

Line A gets the prior swing price and stores this value in Global Variable [1].  This price is marked with a horizontal red line and represents the trigger level for the break out test.

Line B tests for a bar's High being above the swing price.   Line C tests for the current Pesavento trend to be rising.   Line D highlights a bar in blue when both conditions from Line B and C are True simultaneously.

Lines E, F and G are a mirror image of the logic on lines B, C and D.    A bar whose Low is below the swing price and in a down trend is highlighted in yellow.

Template:   PesaventoBreak


Copyright © 2008 by Ensign Software, Inc.