Announcement

Collapse
No announcement yet.

Basic studies

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

  • Basic studies

    Hello,

    I have a question about basic studies.

    When I choose for ex. Stocastic from basic studies, and then I want to add few more horizontal line to it, without considering those ones already included(20 and 80), how can I do that?

    Thanks

    Best regards

  • #2
    Re: Basic studies

    Hi Marknav,

    Originally posted by Marknav
    Hello,

    I have a question about basic studies.

    When I choose for ex. Stocastic from basic studies, and then I want to add few more horizontal line to it, without considering those ones already included(20 and 80), how can I do that?

    Thanks

    Best regards
    Here is the original code basicStoch.efs from this folder C:\Program Files\eSignal\Formulas\EFS 2 Basic

    PHP Code:
    /*********************************************************
    By Alexis C. Montenegro for eSignal © December 2004       
    Use and/or modify this code freely. If you redistribute it
    please include this and/or any other comment blocks and a 
    description of any changes you make.                      
    **********************************************************/

    function preMain() {

        
    setPriceStudy(false);
        
    setStudyTitle("Stochastic");
        
    setCursorLabelName("%K",0);
        
    setCursorLabelName("%D",1);
        
    setDefaultBarFgColor(Color.blue0);
        
    setDefaultBarFgColor(Color.red1);
        
    setPlotType(PLOTTYPE_LINE,0);
        
    setPlotType(PLOTTYPE_LINE,1);
        
    setDefaultBarThickness(1,0);
        
    setDefaultBarThickness(1,1);
        
    addBand80PS_SOLID1Color.black,"Upper");
        
    addBand20PS_SOLID1Color.black,"Lower");
    }

    function 
    main() {
        return new Array (
    stochK(14,1,3),stochD(14,1,3));

    Now, I will add three additional bands:

    PHP Code:
    /*********************************************************
    By Alexis C. Montenegro for eSignal © December 2004       
    Use and/or modify this code freely. If you redistribute it
    please include this and/or any other comment blocks and a 
    description of any changes you make.   
    //modified to add an additional 3 bands s.hare 9 14 2006
    **********************************************************/

    function preMain() {

        
    setPriceStudy(false);
        
    setStudyTitle("Stochastic");
        
    setCursorLabelName("%K",0);
        
    setCursorLabelName("%D",1);
        
    setDefaultBarFgColor(Color.blue0);
        
    setDefaultBarFgColor(Color.red1);
        
    setPlotType(PLOTTYPE_LINE,0);
        
    setPlotType(PLOTTYPE_LINE,1);
        
    setDefaultBarThickness(1,0);
        
    setDefaultBarThickness(1,1);
        
    addBand80PS_SOLID1Color.black,"Upper");
        
    addBand20PS_SOLID1Color.black,"Lower");
        
    addBand60PS_SOLID1Color.blue,"Upper1");//modified 9 14 2006
        
    addBand40PS_SOLID1Color.blue,"Lower1");//modified 9 14 2006
        
    addBand50PS_SOLID2Color.red,"Lower2");//modified 9 14 2006
    }

    function 
    main() {
        return new Array (
    stochK(14,1,3),stochD(14,1,3));

    I hope this helps. I attached the modified file as well
    Attached Files

    Comment


    • #3
      Hi, Thanks.

      Still a doubt.

      When I right click on the modified stocastic, and then choose EDIT, I can't determine from that window at what level horizontal lines should be displayed( are preconfigured) . While in the basic stocastic I can choose where to place them, but the choice is only between two lines and no more.


      Also If I want to change the setting of the stocastic I can't.

      I'm going to include a picture of what I see.
      Attached Files

      Comment


      • #4
        Originally posted by Marknav
        Hi, Thanks.

        Still a doubt.

        When I right click on the modified stocastic, and then choose EDIT, I can't determine from that window at what level horizontal lines should be displayed( are preconfigured) . While in the basic stocastic I can choose where to place them, but the choice is only between two lines and no more.


        Also If I want to change the setting of the stocastic I can't.

        I'm going to include a picture of what I see.
        In basic studies, you are limited in what you can modify, as you pointed out. What I showed you was how to add a line to an efs (without provision to modify it from the edit studies window).

        If you want to add this and also have the ability to edit parameters from the edit studies window, you will have to learn how to create an efs that meets your particular requirements. To that end, I would recommend going through the product training available here.

        In addition, if you look in the EFS2 advanced folder and pull up the stochastic efs in that folder, you will find it is likely closer to what you want.

        Comment

        Working...
        X