Announcement

Collapse
No announcement yet.

Juric functions in EFS2

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

  • Juric functions in EFS2

    Hi,

    Are there EFS2 versions of the following Juric functions?

    JurikDMXStudy()
    JurikJMAStudy()
    JurikRSXStudy()
    JurikVELStudy()

    Also, I've tried the following three versions of the same script but they return null values for JuricJMAStudy().

    Any ideas as to why they don't plot?
    PHP Code:
    debugClear();
    var 
    vJMA1 = new JurikJMAStudy(5, -100,0"Close");
    function 
    preMain() {
        
    setPriceStudy(true);
        
    setStudyTitle("JMA (5)");
        
    setCursorLabelName("JMA1"0);
    }
    var 
    bInit false;
    function 
    main() {
        if(
    bInit == false){
            
    vJMA1 = new JurikJMAStudy(5, -100"Close");
            
    bInit true;
        }
        
    debugPrintln(vJMA1.getValue(JurikJMAStudy.JMA));
    //    return new Array(vJMA1.getValue(JurikJMAStudy.JMA));//prints out NULL for all values
        
    return vJMA1.getValue(JurikJMAStudy.JMA);

    or
    PHP Code:
    debugClear();
    function 
    preMain() {
        
    setPriceStudy(true);
        
    setStudyTitle("JMA (5)");
        
    setCursorLabelName("JMA1"0);
    }
    var 
    bInit false;
    var 
    vJMA1 null;
    function 
    main() {
        if(
    bInit == false){
            
    vJMA1 = new JurikJMAStudy(5, -1000"Close");
            
    bInit true;
        }
        
    debugPrintln(vJMA1.getValue(JurikJMAStudy.JMA));//prints out NULL for all values
    //    return new Array(vJMA1.getValue(JurikJMAStudy.JMA));
        
    return vJMA1.getValue(JurikJMAStudy.JMA);

    or
    PHP Code:
    debugClear();
    var 
    vJMA1 = new JurikJMAStudy(5, -100,0"Close");
    function 
    preMain() {
        
    setPriceStudy(true);
        
    setStudyTitle("JMA (5-Price1)");
        
    setCursorLabelName("JMA1"0);
    }
    var 
    bInit false;

    function 
    main() {
        if(
    bInit == false){
            
            
    bInit true;
        }
        if(
    vJMA1.getValue(JurikJMAStudy.JMA) != null) var vJMA1Plot vJMA1.getValue(JurikJMAStudy.JMA);
        
    debugPrintln(vJMA1Plot);
        return 
    vJMA1Plot;

    Thanks

    Wayne
    Last edited by waynecd; 10-06-2009, 11:24 AM.

  • #2
    Wayne,

    I had a client ask me about the Juric indicators about 3 weeks ago. I told him I had to check with the developer. I sent two emails and left two messages for assistance. I never received any reply.

    At this point, you need to contact them for further assistance (and good luck).
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment


    • #3
      Thanks Doji,

      They may have disabled the function to increase their sales.

      I'll try to get an answer and if I do I will post it here.

      Wayne

      Comment


      • #4
        This code will plot. You need to declare the study WITHIN the main function, and before anything else gets processed, i.e., when getBarState() == BARSTATE_ALLBARS. This code, along with many other coding examples, is provided with the Jurik tools package for eSignal.

        /////////////////////////////////////////////////////////////////////////

        function preMain() {
        setStudyTitle("JMA");
        setDefaultBarFgColor(Color.cyan, 0);
        setDefaultBarThickness(2);
        setPriceStudy(true);
        }

        function main(Price, JMA_len, JMA_phase, offset) {
        var vValue;

        /* input validation */

        if (Price == null) Price = "close"; else if (typeof(Price) != "string") return;
        if (JMA_len == null) JMA_len = 7; else if (JMA_len < 0) JMA_len = 0;
        if (JMA_phase == null) JMA_phase = 50; else JMA_phase = Math.min(100,Math.max(-100,JMA_phase)) ;
        if (offset == null) offset = 0; else offset = Math.round(offset) ;

        /* initialization */

        if (getBarState() == BARSTATE_ALLBARS) {
        myJMAstudy = new JurikJMAStudy(JMA_len,JMA_phase,offset,Price);
        }

        /* core program */

        vValue = myJMAstudy.getValue(JurikJMAStudy.JMA);
        if (vValue == null) return;

        return vValue;
        }
        Last edited by Mark Jurik; 10-15-2010, 12:50 AM.

        Comment

        Working...
        X