Functions are one type of formula component. Functions can be found on the Add Studies window or in the Toolbox on Formula Builder.
Absolute Value (Abs)
This function is available on the Add Study window and in the Formula Toolbox.
Displays the Absolute value (the distance from zero or the number without its sign) of the chart output.
Example: Abs(Mom(@,10))
Parameter

Description

Display

Opens a subwindow with display properties:
Color = Select a line color.
Weight = Type a value for line thickness.
Display = Select line style: line, histogram, or dash.
ShareScale = Assign a behavior for functions and studies sharing the vertical scale:
Auto = System determine whether sharing is feasible.
On = Scale is shared regardless of the functions and studies displayed.
Off = Scale is not shared.

MarkIt

Opens the Specify Conditions for Marking Bar window.

Price

Price used for calculations.

OB/OS

Opens a subwindow with properties for overbought and oversold indicators.
Color = Select a line color.
Weight = Type a value for line thickness.
Type = Select fixed or dynamic.
Std Dev = Choose a multiplier of the Standard Deviation used to derive high and low.
Lookback = Choose the number of bars that should be compared to the current bar.
Level = Assign a percentage value of average OB/OS to be used to calculate predictor OB/OS levels.
Display = Click this check box to display the line on the chart.
Style = Choose a line style: line, long dash, or short dash.

Accumulation (Accum)
This function is available on the Add Study window and in the Formula Toolbox.
Accumulation adds successive chart values until a user specified condition is met. At that point, the Accumulation value is reset to zero and the process repeated.
Example: Accum(@,none)
Parameter

Description

Display

Opens a subwindow with display properties:
Color = Select a line color.
Weight = Type a value for line thickness.
Display = Select line style: line, histogram, or dash.
ShareScale = Assign a behavior for functions and studies sharing the vertical scale:
Auto = System determine whether sharing is feasible.
On = Scale is shared regardless of the functions and studies displayed.
Off = Scale is not shared.

MarkIt

Opens the Specify Conditions for Marking Bar window.

Price

Price used for calculations.

Reset

Condition that, when true, resets the Accumulation study to zero.

OB/OS

Opens a subwindow with properties for overbought and oversold indicators.
Color = Select a line color.
Weight = Type a value for line thickness.
Type = Select fixed or dynamic.
Std Dev = Choose a multiplier of the Standard Deviation used to derive high and low.
Lookback = Choose the number of bars that should be compared to the current bar.
Level = Assign a percentage value of average OB/OS to be used to calculate predictor OB/OS levels.
Display = Click this check box to display the line on the chart.
Style = Choose a line style: line, long dash, or short dash.

Aggregate
This function is available only in the Formula Toolbox.
Aggregation allows you to trade similar instruments in two or more exchanges and let the system manage where you get filled.
Example: AGGR(CLE&ET, L1, 1/2 of 1/32, 1:1, 1)
NOTE: This function is used with the DOMTrader, Order Ticket, etc. It’s not available on a chart.
Parameter

Description

Calc Mode

Identifies how you would like the formula calculated, by legs or currency.

Tick Size

Use Auto or enter a tick size value.

Trade Ratio

Quantity for each leg.

Rollover

If turned on, when one leg expires, all legs roll over to the same month.
 ArcCos (ACos)
This function is available only in the Formula Toolbox.
ArcCos expresses the Cosine function in radians between 0 and pi. For example, the ArcCos of 1 equals 0, the ArcCos of 0 = pi/2 and the ArcCos –1 = pi.
The cosine function takes the selected chart value, converts it into radians and calculates a cosine value. For example, the cosine value of 1090 is .99.
This value is calculated as follows:
1090/(2*pi) = 173.478 Calculates the laps around the unit circle
.478 * (2*pi) = 3.00894 Takes the leftover lap and converts it to radians
Cos(3.00894) radians = .991214531 Calculates the Cosine for the corresponding radians
Therefore,
ArcCos(.991214531) = 3.00894 radians
Example: ACos(@)
Parameter

Description

Price

Price used for calculation.

Share with your friends: 