GetPivotStudy

ICE Data Services -

GetPivotStudy() Advanced GET Study Functions

Creates object, which allows to get values of indicator Advanced GET Pivots in EFS scripts.

 

Syntax

GetPivotStudy(   )

 

Parameters

No Parameters
 

Member(s)

Syntax: Returned value:
GetMAStudy.PIVOTS Returns values of Pivots:
 1 - Primary Pivot from Up to Down Trend
-1 - Primary Pivot from Down to Up Trend
 2 - Major Pivot from Up to Down Trend
-2 - Major Pivot from Down to Up Trend
 3 - intermediate Pivot from Up to Down Trend
-3 - Intermediate Pivot from Down to Up Trend
 4 - Minor Pivot from Up to Down Trend
-4 - Minor Pivot from Down to Up Trend

 

Notes

Only available in versions 7.9 or later.

This function is not [yet] supported in versions 11.X.

 

Code Example

Advanced GET Pivot Indicator:
function preMain(){
	setPriceStudy(true);
	setStudyTitle("Pivots");
setShowCursorLabel(false); setDefaultFont("Arial", 11, Color.blue, Text.CENTER | Text.BOLD); } var Pivots = new GetPivotsStudy(); function main(){ var nPivots = Pivots.getValue(GetPivotsStudy.PIVOTS); if (nPivots == null) return; if (nPivots == 1) drawText("P", AboveBar1, Color.blue, null, "PrimaryU" + getCurrentBarCount()); if (nPivots == 2) drawText("J", AboveBar1, Color.blue, null, "MajorU" + getCurrentBarCount()); if (nPivots == 3) drawText("I", AboveBar1, Color.blue, null, "InterU" + getCurrentBarCount()); if (nPivots == 4) drawText("M", AboveBar1, Color.blue, null, "MinorU" + getCurrentBarCount()); if (nPivots == -1) drawText("P", BelowBar1, Color.red, null, "PrimaryD" + getCurrentBarCount()); if (nPivots == -2) drawText("J", BelowBar1, Color.red, null, "MajorD" + getCurrentBarCount()); if (nPivots == -3) drawText("I", BelowBar1, Color.red, null, "InterD" + getCurrentBarCount()); if (nPivots == -4) drawText("M", BelowBar1, Color.red, null, "MinorD" + getCurrentBarCount()); return; }
 


See Also

Advanced GET Studies