MVMED returns the median value of a specified set of variables for a single day.
SYNTAX:
MVMED(Cj, Cn:Cw, Cy, ...)
where :
Cx is a conditional variable x
NOTES:
Each variable must be specified as a Conditional Variable (use "C" instead of "V").
The variables may be referenced two different ways; single variables separated by commas or a range specified by a beginning variable, a colon, and an ending variable. These two methods can be combined. (i.e., C14:C22 will include all variables whose numbers fall between Variable 14 and Variable 22)
When specifying a range of variables, there can be gaps in the series of existing variables. For instance, if the specified range is C11:C17 and variable 14 does not exist, the function will calculate the remaining variables.
This function only works properly when all variables are the same frequency, i.e. all daily, all hourly, etc...
This function will handle up to 199 variables.
EXAMPLES:
Example 1: V123 = MVMED(C70,C71,C1001:C1004, C1011)
Vairable 123 will contain the daily median value of variables 70,71,1001,1002,1004 and 1011 as shown below:
NOTE: There is no variable 1003, so the range "C1001:C1004" does not include it.
Example 2 with MDL Rules:
V = MVMED(C5261, C5263:C5265)
On calculated variables, it is possible to elect to cascade MDL rules or not. Below is an example of cascading MOST frequent MDL symbol, ALL MDL symbols, and NONE or no MDL symbols.
V9651 - Most Frequent MDL Symbol
V9652 - All MDL Symbols
V9653 - No MDL Symbols
Example 3: Using Daily Detail (4 Hour) variables
V11379 = MVMED(C11377,C11378)
where V11379,V11377, and V11378 are all 4-hour daily detail variables. Note, to calculate values must be in the same data slot, not necessarily the same time.