**AGet.elliottWaves()**Advanced GET Studies

Returns the series or values of theGET Elliott Wavesstudy.

Elliott Waves, the "E" part of GET (Gann Elliott Trader), is one of the core studies of GET. The simplified Elliott Wave theory states that you will have a 5 wave sequence in a direction, some kind of corrective pattern (most of the time), and then a new 5 wave sequence in the opposite direction.

__Syntax__AGet.elliottWaves(Wave4Overlap,Wave13Ratio,NumberBars,Alternate,ReturnSeries[,sym() | inv()][,BarIndex] )

__Parameters__Parameter:

*Description: Default:*

*Wave4Overlap*

*An integer which represents the percentage that Wave 4 can overlap Wave 1 before the Wave count is considered invalid and has to be recalculated.*

n/a

*Wave13Ratio*

*An integer which represents the maximum percent-level of the length of Wave 3 that the Wave 1 can be labeled. This percentage is important in the way the Wave 4 time channels and PTI are calculated. The default Wave 1-3 ratio is 50%. This means if you take the length of Wave 3, the Wave 1 could be labeled anywhere up to 1/2 the length of Wave 3. This does not mean that it will be labeled right at the 50% mark, but it could be labeled anywhere from the 1% up to the 50% level according to this percentage. If you decrease this number to 20%, this means that the Wave 1 has to be labeled somewhere between 1% and 20% of the length of Wave 3.*

n/a

*NumberBars*

*An integer which represents the number of Bars to calculate Elliott Waves.*

n/a

*Alternate*

*Allows to choose the mode for the calculation of the study. To choose use the follwing constants:*

ELLIOTTWAVES_ORIGINAL = 0

ELLIOTTWAVES_AGGRESSIVE = 1

ELLIOTTWAVES_SHORTTERM = 2

ELLIOTTWAVES_LONGTERM = 3

ELLIOTTWAVES_ORIGINAL = 0

ELLIOTTWAVES_AGGRESSIVE = 1

ELLIOTTWAVES_SHORTTERM = 2

ELLIOTTWAVES_LONGTERM = 3

n/a

*ReturnSeries*

*Allows to choose what series of the GET Elliott Waves study should be returned. To choose use the follwing constants:*

ELLIOTTWAVES_PTI = 0

ELLIOTTWAVES_PROJECTION1 = 1

ELLIOTTWAVES_PROJECTION2 = 2

ELLIOTTWAVES_MAJOR = 3

ELLIOTTWAVES_INTERMEDIATE = 4

ELLIOTTWAVES_MINOR = 5

ELLIOTTWAVES_WAVE4CHANNEL1 = 6

ELLIOTTWAVES_WAVE4CHANNEL2 = 7

ELLIOTTWAVES_WAVE4CHANNEL3 = 8

ELLIOTTWAVES_PTI = 0

ELLIOTTWAVES_PROJECTION1 = 1

ELLIOTTWAVES_PROJECTION2 = 2

ELLIOTTWAVES_MAJOR = 3

ELLIOTTWAVES_INTERMEDIATE = 4

ELLIOTTWAVES_MINOR = 5

ELLIOTTWAVES_WAVE4CHANNEL1 = 6

ELLIOTTWAVES_WAVE4CHANNEL2 = 7

ELLIOTTWAVES_WAVE4CHANNEL3 = 8

n/a

*sym() | inv()*

*[Optional] Function of sym() or inv() to determine symbol/interval source for the study.*

Base sym/int

*BarIndex*

*[Optional] Bar index of series to retrieve.*

n/a

__Return Value(s)__Returns a Series Object when

*nBarIndex*is

__not__specified.

Returns a single value whennBarIndexis specified.

The set of values for a major, intermediate or minor seriesare represented by the following constants:(on the bar on which the wave is identified)1, 2, 3, 4 and 5 for up waves 1 through 5and corresponding negative values for down waves 1 through 5.6, 7, 8 for up waves A, B and Cand corresponding negative values for down waves A, B and C.Series return a value 0 on the bar on which the wave is undefined.

__Notes__Only available in versions 11.8 or later.

__Code Example__Creating and Using Series Example:

var bInit = false;var xSer = null;var i = 0;setPriceStudy(true);function main(){ if(bInit == false){ xSer =AGet.elliottWaves(0, 50, 300, ELLIOTTWAVES_ORIGINAL, ELLIOTTWAVES_MAJOR); bInit = true; }; if (isLastBarOnChart()){ clearText(); recalculate(function(){ var nSer = xSer.getValue(0); var masks = ["1", "2", "3", "4", "5", "A", "B", "C"]; [1, 2, 3, 4, 5, 6, 7, 8].forEach(function(Element,Index){ if (Math.abs(nSer) == Element){ var location = nSer > 0 ? AboveBar1 : BelowBar1; var color = Element > 5 ? Color.red : Color.blue; drawTextRelative(0,location,masks[Index],color,null, Text.PRESET|Text.CENTER|Text.BOLD,"Arial",11,"Wave" + i++); } }); }); }; }

__See Also__Advanced GET Study Functions

AGet.elliottTrigger()