|
Category:
Several thousand DYO statements have been grouped into 31 Categories. The first step to implementing a design is to select a category on a line, which then displays appropriate additional control boxes.
Bar Value - Values associated with individual bars on the chart can be read. Select the value to be returned in the Selection list which shows more than 80 choices. Many statements include that ability to add the value in the Number field, or multiply by the value in the Number field. The following example reads the bar's Close value, and adds the Number field value which is a negative of the bar's Low value. The calculation stored in Global Variable [1] is the bar's Close - Low.

Bar Flag - This category contains Boolean relationships between bars and their values. For example, the Selection list has 'Higher High' which will return a Boolean True when a bar's high is higher than the prior bar. The selection list has over 130 relationships that can be read as Boolean flags.
Study Value - The values from studies that are present on a chart ahead of the DYO on the chart's object list can be read. Select the Study from the Selection drop-down list. Select the particular study's value from the 3rd drop-down list. For example, you could select the 'Stochastic' study from the Selection list, and then select the '%D Value' from the 3rd list.
Study Flag - Studies that are placed on the chart will report a variety of conditions. These conditions are Boolean flags that can be used in an implementation. Select the Study from the Selection drop-down list. Select the desired Study Flag from the 3rd drop-down list. For example, you could select 'Stochastic' from the Selection list, and select '%D Rising' from the 3rd list.
The notation of 'X>' means 'cross above' and the Boolean flag would be True on a single bar as an event. The notation of '>' means 'greater than' and the Boolean flag is a relationship that could be True on several bars in sequence. Example 1 Example 2 Example 3
| Notation |
Meaning |
Type |
| X> |
Cross Above |
Event |
| X< |
Cross Below |
Event |
| >, >= |
Greater than, Greater than or equal to |
Relationship |
| =, <> |
Equal to, Not Equal |
Relationship |
| <, <= |
Less than, Less than or equal to |
Relationship |
Number - Use this category to read a value from the Number field.
Always True - This Line will always execute. Possibly it is showing a Marker. The following example shows a marker on Line D which requires 2 colors. The 1st color comes from the Color box on Line D and the 2nd color comes from the Color box on the next line, which is Line E. Line E used the Always True category as a place holder for the purpose of showing the 2nd color box.

Expression - This category offers over 60 mathematical expressions for adding, subtracting, mutiplying and dividing values typically stored in Global Variables or the Number field. This is an oft used category.
Value' will refer to the Global Variable (GV) at the location indicated by the Read GV spinner value. 'Next' will refer to the next GV in sequence. 'Value' and 'Next' are adjacent GVs. '3rd' will refer to the third GV in sequence. 'Value', 'Next' and '3rd' are adjacent GVs.
'#' will refer to the value in the Number field. '[#]' will refer to a set of values, where # is the size of the set and is the value in the Number field. If [xx] is used in the Number field, then the value from the GV reference is used as the number. Chart and bar values referenced by the [..] tags can be used in the Number field. Add a minus sign prefix to change the value to a negative number for subtraction.
read more » DYO: Reference Tags
Function - This category contains more than 50 mathematical functions such as Sqrt for Square Root.
read more » DYO: Functions Category
Global Flag - Look in this category for Boolean logic statements testing relationships between values, and operations with other Boolean flags.
read more » DYO: Global Flags read more » DYO: Boolean Logic Examples
Global Action - This category contains statements for manipulating Global Variables, complex IF statements, and controlling various actions in the Ensign Windows program.
read more » DYO: Global Action
Chart Value - This category list statements that deal with values obtained from the chart's data set such as the Maximum High for a set of bars, values for Today's and Yesterday's High, Low, and Close, etc. The notation like Min Low[#] will return the Lowest Low value from a set of chart bar's where the set size is the value in the number field. The start of the set is with the current bar and progresses leftward. Example: Min Low[#] with #=2 will return the lower of this bar's low or the prior bar's low.
read more » DYO: Time Frame Type Values
Chart Flag - This category contains Boolean flags the deal with the chart, such as whether a bar is in a particular time period. There are tests for a bar's time stamp and its index position in the array of chart bars. Example
Quote Value - This category can be used to read any of the fields from the quote page. Leave the Selection field blank to have the Line default to the chart's symbol. Enter a Symbol in the Selection field to read values for some other symbol. Since values are obtained in real-time, the values will be for the content presently on the quote page. There is no back history for what the quote page might have had as a value say 30 minutes ago. Example
Quote Flag - Use this category to test the relationship of quote page values and return a Boolean flag.
DYO Value - This category has mathematical formulas that can be applied to the data array contained in another DYO Line. In the Stochastic example, Line C contained the raw stochastic values, and Line D was used to plot an Exponential Moving Average of the Line C values. The parameter for the average was the content of the Number field, which in the example was a 7.

In the next example, Line A contains an array of bar midpoints. Line B will find the highest midpoint in a set of 7 values from Line A. Line C will find the lowest midpoint in the set of 7 values from Line A.

DYO Flag - This category has Boolean flags for other DYO Lines, such as the flag on another DYO Line changes its Boolean state, or changes direction in its study values. Example 1 Example 2
None - Use this category selection when a DYO line is not used. This selection hides the selection boxes for the Line. Also, when the DYO is evaluated, a Line with a None category selection is skipped.
Do Next IF - Use this category selection to conditionally execute or skip the next DYO Line. If the Boolean test evaluates to a True, the next DYO Line is executed. The next DYO Line is skipped if the text evaluates to a False.
Abort IF False - Further execution through the DYO Lines is aborted if the Boolean text evaluates to a False. Execution continues when the test is True.
Go To x IF - The statements in these categories implement conditional branching of program execution to another DYO line. Multiple lines can be skipped or branching can loop back to an earlier DYO line.
read more » DYO: Go To and Looping
|