Knowledgebase
MovingAverageEnvelope
Posted by Mohammad Rahhal on 04 April 2012 04:02 PM

Syntax

Public Function MovingAverageEnvelope(applyTo As ENUM_APPLIED_PRICE, period As Integer, Ma As ENUM_MA_METHOD, Shift As Integer) As Integer

Moving Average Envelopes consist of moving averages calculated from the underling price, shifted up and down by a fixed percentage.

Moving Average Envelopes (or trading bands) can be imposed over an actual price or another indicator.

When prices raises above the upper band or fall below the lower band, a change in direction may occur when the price penetrates the band after a small reversal from the opposite direction.

Parameters

Key Description
applyTo The value can be one of ENUM_APPLIED_PRICE
Period Period as integer value
Ma The value can be one of the ENUM_MA_METHOD
Shift Shift as integer


Return value

Returns the handles of a technical indicator, in case of failure returns a empty string.


See Also


Back to VTL Server Script Index

(0 votes)
This article was helpful
This article was not helpful

Comments (0)
Post a new comment 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Hybrid Solutions