Announcement

Collapse
No announcement yet.

GetElliottTriggerStudy( Term ) function

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • GetElliottTriggerStudy( Term ) function

    Hello! I need help, please. I am trying to use built-in efs called, "GetElliottTriggerStudy( Term )". What is the parameter "Term" in
    GetElliottTriggerStudy( Term )? I want to read Elliott Trigger values at current bar in my custom efs. Could you also show me how to use its members like study.getValue(GetElliottTriggerStudy.TRIG)?
    Thank you for your help.

  • #2
    mlee
    The parameter is true/false (see sample code enclosed below)
    As far as I know .TRIG is the only member.
    Alex

    PHP Code:
    var study = new GetElliottTriggerStudy(false);//parameter is true/false

    function main(){

        return 
    study.getValue(GetElliottTriggerStudy.TRIG);
    }

    //study.getValue(GetElliottTriggerStudy.TRIG);//return current value
    //study.getValue(GetElliottTriggerStudy.TRIG,-1);//returns prior bar's value
    //study.getValue(GetElliottTriggerStudy.TRIG,-2);//value two bars ago etc 

    Comment

    Working...
    X