Announcement

Collapse
No announcement yet.

Ichimoku is SUPPOSED to have the Cloud 26 periods ahead

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Ichimoku is SUPPOSED to have the Cloud 26 periods ahead

    I instaqlled the Ichimoku file that was sent to me. More and more people are using Ichimoku. I specifically signed up and paid $200 on eSignal so that I could plot Ichimoku. But it is wrong. The cloud is stopping right where the last price is, but it is supposed to be plotted 26 time period ahead.

    I would like if you can fix this or I am going to have to ask for a refund since the only reason I joined was to chart Ichimoku. It's only a matter of time until you get the same complaint.

  • #2
    Re: Ichimoku is SUPPOSED to have the Cloud 26 periods ahead

    traderneil
    See this thread in which you will find a script that draws the cloud past the most recent bar
    FYI I found it by searching the forum for the keyword ichimoku
    Alex


    Originally posted by traderneil
    I instaqlled the Ichimoku file that was sent to me. More and more people are using Ichimoku. I specifically signed up and paid $200 on eSignal so that I could plot Ichimoku. But it is wrong. The cloud is stopping right where the last price is, but it is supposed to be plotted 26 time period ahead.

    I would like if you can fix this or I am going to have to ask for a refund since the only reason I joined was to chart Ichimoku. It's only a matter of time until you get the same complaint.

    Comment


    • #3
      it should be the default since that's the classic way the formula is supposed to be designed by I guess I will do the search even though I shouldn't have to.

      Comment


      • #4
        how to download EFS file

        I downloaded EFS file now how do I installit.

        Comment


        • #5
          Re: how to download EFS file

          traderneil
          Save the file in the Formulas folder [or any one of its subfolders] then right click the chart, select Formulas from the context menu, navigate to the folder in which you have saved the formula and then click it. This will apply it to the chart
          Alex


          Originally posted by traderneil
          I downloaded EFS file now how do I installit.

          Comment


          • #6
            Originally posted by traderneil
            it should be the default since that's the classic way the formula is supposed to be designed by I guess I will do the search even though I shouldn't have to.
            When you say "default" we don't really manage the public domain EFS files. We do load some as defaults in our installer and for those we might do some optimization but otherwise, EFS is an open language so hundreds, if not thousands, of people contribute to the universe of EFS files available.

            Thanks.

            Comment


            • #7
              ok now the Ichimoku is working and it's plotting ahead.

              However, the shading is only striped or dots. Is it possible to have one with a solid shading? then that's all the configuration I need for Ichimoku. thanks guys!

              Comment


              • #8
                lost ichimoku ETS

                I am not on a new hard drive with no access to old drive. Can someone please guide me to the Ichimoku file (with the cloud moving forward please) and also if there happens to be one with an option to shade the cloud solid rather than dots or stripes i would be much thankful

                Comment


                • #9
                  Here's the thread with that EFS. Hopefully someone who codes in EFS can assist with your other request.

                  Thanks.

                  Comment


                  • #10
                    Hi,

                    In the attached code I added "Colored Background" to "sCloud" followed by background color and thickness selection.

                    As far as I know "setBarBgColor()" cannot be extended past the last bar on the chart so I used "drawLineRelative()" instead to plot beyond the last bar.

                    NOTE: the defauld is a line so you must select "Colored Background" from the "Ichimoku Kumo Style" menu instead of "Solid Line" or "Dotted Line".

                    Then right under that you can select the background color and thickness of the background lines used past the last bar on the chart.

                    PHP Code:
                    //http://forum.esignal.com/showthread.php?s=&postid=127091
                    /*********************************
                    Provided By:  
                        eSignal (Copyright Â© eSignal), a division of Interactive Data 
                        Corporation. 2007. All rights reserved. This sample eSignal 
                        Formula Script (EFS) is for educational purposes only and may be 
                        modified and saved under a new file name.  eSignal is not responsible
                        for the functionality once modified.  eSignal reserves the right 
                        to modify and overwrite this EFS file with each new release.
                        
                    Version: 2.0  (8/7/2007)

                    Notes:
                        8/7/2007
                        * Study has been updated to utilize EFS2 functionality
                        * Additional formula parameters added to match built-in
                            study parameters found in FutureSource Workstation 
                            Ichimoku study.
                    **********************************/
                    /**********************************
                    4/28/2010
                    added "Colored Background" to "sCloud" followed by
                    background color and thickness selection as requested
                    in forum thread [url]http://forum.esignal.com/showthread.php?s=&postid=127091[/url]
                    ***********************************/

                    // Global Variables
                    var aFPArray      null;
                    var 
                    xTurn          null;
                    var 
                    xStd           null;
                    var 
                    xLS1           null;
                    var 
                    xLS2           null;
                    var 
                    xKumoStyle  null;

                    var 
                    bInit false;  // Initialization flag
                    var vCntr 0;      // bar counter
                    var vICntr 0;     // line counter for drawn lines

                    function preMain() {

                        
                    setPriceStudy(true);
                        
                    setStudyTitle("Ichimoku Kinko Hyo1");
                        
                    setCursorLabelName("Tenkan Sen"0);
                        
                    setCursorLabelName("Kijun Sen"1);
                        
                    setCursorLabelName("Chikou Span"2);
                        
                    setCursorLabelName("Senkou Span A"3);
                        
                    setCursorLabelName("Senkou Span B"4);
                        
                    setDefaultBarFgColor(Color.red0);
                        
                    setDefaultBarFgColor(Color.blue1);
                        
                    setDefaultBarFgColor(Color.magenta2);
                        
                    setDefaultBarFgColor(Color.lightgrey3);
                        
                    setDefaultBarFgColor(Color.purple4);
                        
                    setShowTitleParameters(false);
                        
                        var 
                    0;
                        
                    aFPArray = new Array();
                        
                        
                    aFPArray[i] = new FunctionParameter("nTrnPeriod"FunctionParameter.NUMBER);
                        
                    aFPArray[i].setName("Tenkan Sen Periods");
                        
                    aFPArray[i].setLowerLimit(1);
                        
                    aFPArray[i].setDefault(9);
                        ++
                    i;
                        
                        
                    aFPArray[i] = new FunctionParameter("nStdPeriod"FunctionParameter.NUMBER);
                        
                    aFPArray[i].setName("Kijun Sen Periods");
                        
                    aFPArray[i].setLowerLimit(1);
                        
                    aFPArray[i].setDefault(26);
                        ++
                    i;
                        
                        
                    aFPArray[i] = new FunctionParameter("nLS2Period"FunctionParameter.NUMBER);
                        
                    aFPArray[i].setName("Senkou Span B Periods");
                        
                    aFPArray[i].setLowerLimit(1);
                        
                    aFPArray[i].setDefault(52);
                        ++
                    i;

                        
                    aFPArray[i] = new FunctionParameter("nOffset"FunctionParameter.NUMBER);
                        
                    aFPArray[i].setName("Displacement");
                        
                    aFPArray[i].setLowerLimit(0);
                        
                    aFPArray[i].setDefault(26);
                        ++
                    i;
                        
                        
                    aFPArray[i] = new FunctionParameter("sCloud"FunctionParameter.STRING);
                        
                    aFPArray[i].setName("Ichimoku Kumo Style");
                        
                    aFPArray[i].addOption"Colored Background" );
                        
                    aFPArray[i].addOption"Solid Line" );
                        
                    aFPArray[i].addOption"Dotted Line" );
                        
                    aFPArray[i].setDefault("Solid Line");
                        ++
                    i;

                        
                    aFPArray[i] = new FunctionParameter("cCloudBkgd"FunctionParameter.COLOR);
                        
                    aFPArray[i].setName("Ichimoku Kumo Background Color");
                        
                    aFPArray[i].setDefault(Color.paleyellow);//enabled when sCloud == "Colored Background"
                        
                    ++i;

                        
                    aFPArray[i] = new FunctionParameter("nThickBkgd"FunctionParameter.NUMBER);
                        
                    aFPArray[i].setName("Line Thickness: Background");
                        
                    aFPArray[i].setLowerLimit(1);
                        
                    aFPArray[i].setDefault(4);//enabled when sCloud == "Colored Background"
                        
                    ++i;
                            
                        
                    aFPArray[i] = new FunctionParameter("cCloudUp"FunctionParameter.COLOR);
                        
                    aFPArray[i].setName("Ichimoku Kumo Color Up");
                        
                    aFPArray[i].setDefault(Color.grey);
                        ++
                    i;
                        
                        
                    aFPArray[i] = new FunctionParameter("cCloudDown"FunctionParameter.COLOR);
                        
                    aFPArray[i].setName("Ichimoku Kumo Color Down");
                        
                    aFPArray[i].setDefault(Color.grey);
                        ++
                    i;

                        
                    aFPArray[i] = new FunctionParameter("nColorTrn"FunctionParameter.COLOR);
                        
                    aFPArray[i].setName("Line Color: Tenkan Sen");
                        
                    aFPArray[i].setDefault(Color.green);
                        ++
                    i;
                            
                        
                    aFPArray[i] = new FunctionParameter("nColorStd"FunctionParameter.COLOR);
                        
                    aFPArray[i].setName("Line Color: Kijun Sen");
                        
                    aFPArray[i].setDefault(Color.blue);
                        ++
                    i;
                            
                        
                    aFPArray[i] = new FunctionParameter("nColorDelay"FunctionParameter.COLOR);
                        
                    aFPArray[i].setName("Line Color: Chikou Span");
                        
                    aFPArray[i].setDefault(Color.magenta);
                        ++
                    i;
                            
                        
                    aFPArray[i] = new FunctionParameter("nColorLS1"FunctionParameter.COLOR);
                        
                    aFPArray[i].setName("Line Color: Senkou Span A");
                        
                    aFPArray[i].setDefault(Color.lightgrey);
                        ++
                    i;
                            
                        
                    aFPArray[i] = new FunctionParameter("nColorLS2"FunctionParameter.COLOR);
                        
                    aFPArray[i].setName("Line Color: Senkou Span B");
                        
                    aFPArray[i].setDefault(Color.purple);
                        ++
                    i;

                        
                    aFPArray[i] = new FunctionParameter("nThickTrn"FunctionParameter.NUMBER);
                        
                    aFPArray[i].setName("Line Thickness: Tenkan Sen");
                        
                    aFPArray[i].setLowerLimit(1);
                        
                    aFPArray[i].setDefault(2);
                        ++
                    i;
                            
                        
                    aFPArray[i] = new FunctionParameter("nThickStd"FunctionParameter.NUMBER);
                        
                    aFPArray[i].setName("Line Thickness: Kijun Sen");
                        
                    aFPArray[i].setLowerLimit(1);
                        
                    aFPArray[i].setDefault(1);
                        ++
                    i;
                            
                        
                    aFPArray[i] = new FunctionParameter("nThickDelay"FunctionParameter.NUMBER);
                        
                    aFPArray[i].setName("Line Thickness: Chikou Span");
                        
                    aFPArray[i].setLowerLimit(1);
                        
                    aFPArray[i].setDefault(1);
                        ++
                    i;
                            
                        
                    aFPArray[i] = new FunctionParameter("nThickLS1"FunctionParameter.NUMBER);
                        
                    aFPArray[i].setName("Line Thickness: Senkou Span A");
                        
                    aFPArray[i].setLowerLimit(1);
                        
                    aFPArray[i].setDefault(1);
                        ++
                    i;
                            
                        
                    aFPArray[i] = new FunctionParameter("nThickLS2"FunctionParameter.NUMBER);
                        
                    aFPArray[i].setName("Line Thickness: Senkou Span B");
                        
                    aFPArray[i].setLowerLimit(1);
                        
                    aFPArray[i].setDefault(1);
                    }

                    function 
                    main(    nTrnPeriodnStdPeriodnLS2PeriodnOffsetsCloudcCloudBkgdnThickBkgd,  
                                    
                    cCloudUpcCloudDown,nColorTrnnColorStdnColorDelaynColorLS1
                                    
                    nColorLS2nThickTrnnThickStdnThickDelaynThickLS1nThickLS2) {

                        if (
                    bInit == false) {
                            
                    setDefaultBarFgColor(nColorTrn0);
                            
                    setDefaultBarFgColor(nColorStd1);
                            
                    setDefaultBarFgColor(nColorDelay2);
                            
                    setDefaultBarFgColor(nColorLS13);
                            
                    setDefaultBarFgColor(nColorLS24);
                            
                    setDefaultBarThickness(nThickTrn0);
                            
                    setDefaultBarThickness(nThickStd1);
                            
                    setDefaultBarThickness(nThickDelay2);
                            
                    setDefaultBarThickness(nThickLS13);
                            
                    setDefaultBarThickness(nThickLS24);
                            
                    xTurn middleDonchian(nTrnPeriod);    
                            
                    xStd  middleDonchian(nStdPeriod);    
                            
                    xLS1  offsetSeries(efsInternal("calcLS1"xStdxTurn), nOffset);
                            
                    xLS2  offsetSeries(middleDonchian(nLS2Period), nOffset);
                            
                            
                    xKumoStyle PS_SOLID;
                            
                            if(
                    sCloud != null && sCloud == "Dotted Line"xKumoStyle PS_DOT;
                            
                            
                    bInit true;
                        }
                        
                        
                    // added by gekko71
                        
                    if ( isLastBarOnChart() ) { 
                        
                            if(
                    nOffset 0) {
                                var 
                    i;
                                for(
                    i=0i<nOffset; ++i) {
                                
                                    var 
                    vSenkouACurr xLS1.getValue(i);
                                    var 
                    vSenkouANext xLS1.getValue(i+1);
                                    var 
                    vSenkouBCurr xLS2.getValue(i);
                                    var 
                    vSenkouBNext xLS2.getValue(i+1);
                        
                                    if(
                    vSenkouACurr vSenkouBCurr) { 
                                        if(
                    == (nOffset 1)) 
                                            
                    drawLineRelative((i+1), vSenkouANext, (i+1), vSenkouBNextxKumoStyle1cCloudUp"CloudUpExt"+(i+1));
                                            
                                        if(
                    sCloud == "Colored Background"drawLineRelative(ivSenkouACurrivSenkouBCurrxKumoStylenThickBkgdcCloudBkgd"CloudUpBkgrd"+i);
                                        else 
                    drawLineRelative(ivSenkouACurrivSenkouBCurrxKumoStyle1cCloudUp"CloudUpExtCurr"+i);
                                    }
                                    if(
                    vSenkouACurr vSenkouBCurr) {
                                        if(
                    == (nOffset 1)) 
                                            
                    drawLineRelative((i+1), vSenkouANext, (i+1), vSenkouBNextxKumoStyle1cCloudDown"CloudDownExt"+(i+1));
                                        if(
                    sCloud == "Colored Background"drawLineRelative(ivSenkouACurrivSenkouBCurrxKumoStylenThickBkgdcCloudBkgd"CloudDnBkgrd"+i);
                                        
                                        else 
                    drawLineRelative(ivSenkouACurrivSenkouBCurrxKumoStyle1cCloudDown"CloudDownExtCurr"+i);
                                    }
                                    
                    drawLineRelative(ivSenkouACurr, (i+1), vSenkouANextPS_SOLID1nColorLS1, (i+"A"));
                                    
                    drawLineRelative(ivSenkouBCurr, (i+1), vSenkouBNextPS_SOLID1nColorLS2, (i+"B"));
                                }
                            }
                        }
                        
                        if(
                    getBarState() == BARSTATE_NEWBAR) {
                            
                    vCntr++;
                            
                    vICntr++;
                            if (
                    vICntr 350vICntr 0;
                        }

                        var 
                    nTurningLine xTurn.getValue(0);
                        var 
                    nStandardLine xStd.getValue(0);
                        var 
                    nLeadingSpan1 xLS1.getValue(0);
                        var 
                    nLeadingSpan2 xLS2.getValue(0);
                        
                        if (
                    nTurningLine == null || nStandardLine == null || nLeadingSpan1 == null || nLeadingSpan2 == null) return;
                            
                        if(
                    nLeadingSpan1 nLeadingSpan2){
                            if(
                    sCloud == "Colored Background"setBarBgColor(cCloudBkgd,0,nLeadingSpan2,nLeadingSpan1);
                            else {
                                
                    drawLineRelative(0nLeadingSpan10nLeadingSpan2xKumoStyle1cCloudUp"CloudUp" vICntr);
                            }
                        }
                        if(
                    nLeadingSpan1 nLeadingSpan2){
                            if(
                    sCloud == "Colored Background"setBarBgColor(cCloudBkgd,0,nLeadingSpan1,nLeadingSpan2);
                            else {
                                
                    drawLineRelative(0nLeadingSpan10nLeadingSpan2xKumoStyle1cCloudDown"CloudDown" vICntr);
                            }
                        }
                        if (
                    nOffset 0) {
                            
                            var 
                    nNum 0;
                            
                            if(
                    getBarState() == BARSTATE_NEWBARnNum 1;
                            
                            if(
                    getBuildNumber()>636){
                                
                    setBar(Bar.Value, -nOffset2close(0));
                            } else {
                                
                    setBar(Bar.Value, (-nOffset nNum), new Array(nullnullclose(0), nullnull));
                            }
                        
                            return new Array(
                    nTurningLinenStandardLinenullnLeadingSpan1nLeadingSpan2);
                        } else {
                            return new Array(
                    nTurningLinenStandardLineclose(0), nLeadingSpan1nLeadingSpan2);
                        }
                    }

                    function 
                    calcLS1xSTDxTRN ) {
                        return (
                    xSTD.getValue(0) + xTRN.getValue(0)) / 2;

                    Wayne
                    Attached Files
                    Last edited by waynecd; 04-28-2010, 03:03 PM.

                    Comment


                    • #11
                      Wayne,

                      Thanks for tackling that one. Much appreciated.

                      Can you also post the EFS file itself to make it a bit easy for the non-coders?

                      Thanks.

                      Comment


                      • #12
                        Hi Scott,

                        Here it is.

                        Can you explain how to post a picture and attach an efs file both at the same time in the same post.

                        Thanks,

                        Wayne
                        Attached Files
                        Last edited by waynecd; 04-28-2010, 03:45 PM.

                        Comment


                        • #13
                          I don't believe you can attach two files to the same post. One solution is to load the screenshot into fileshare (or equivalent site) and then by using the [img] command to insert an image, insert the url from fileshare into the post. Then, add the EFS as the attachment.

                          Thanks.

                          Comment

                          Working...
                          X