Announcement

Collapse
No announcement yet.

indicator

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

  • indicator

    I have find on internet this indicator, is possible to built it in eSignal ??
    Indicator: Trade_For_A_Living



    Author: Clyde Lee, SYTECH Corporation, Copyright 2004



    Source: Book: Never on Thursday


    Author: Duane Davis


    Publisher: WinBooks



    Bought this book and found this interesting indicator and thought


    many of you might want to experiment.



    This is quite an extension of the original work.



    You may find this an excellent substitute for any overbought/oversold


    indicator that you are currently using.



    For daily data a stepback of 5 seems to work. For 5 minute data a


    stepback of 34/55 seems a good choice.



    Show us some work in this area please.



    Clyde



    }





    Input: StepBack (5), {Number of Bars back for differences for
    Oscillator}
    Smooth(0), {Number of bars smoothing of oscillator }
    OBought(80), {Overbought level 50-100 OR if negative the length }
    {for an exponential smoothing of the oscillator to }
    {use as overbought and oversold. }
    OSold(20); {Oversold level for the oscillator. }
    Vars: X(0), Y(0), Z(0), Osc(0);
    X=Highest(High,StepBack)-Open[StepBack];
    Y=Close-Lowest(Low,StepBack);
    Z=(Highest(High,StepBack)-Lowest(Low,StepBack))*2;
    Osc=(X+Y)/Z * 100;
    If Smooth>0 then Value1=XAverage2(Osc,Smooth)
    else Value1=Osc;
    Plot1(Value1,"tfal");
    If OBought<0 then Value2=XAverage2(Value1,-OBought)
    else Value2=OBought;
    Plot2(Value2,"OB");
    Plot3(OSold,"OS");
    If OBought<0 then Plot4(100-OSold,"OB1");
    If Plot1>=Value2 and Plot1[1]> Value2 then SetPlotColor(1,Red)
    else SetPlotColor(1,GetPlotColor(1));
    If (Plot1<=Value2 and Plot1[1]<Value2 and OBought<0) or (Plot1<Plot3 and
    Plot1[1]<Plot3 and OBought>0)
    then SetPlotColor(1,Green)
    else SetPlotColor(1,GetPlotColor(1));
    If OBought<0 then SetPlotColor(2,Blue);

  • #2
    Vciro,

    Do you have a link or more information? There is not enough info to explain the total concept of the code.
    Excellent book on JavaScript for beginners

    Comment


    • #3
      I posted a script that should be fairly close to the EasyLanguage code in File Share:

      http://share.esignal.com/groupconten...us&groupid=114

      Script is called TradeForALiving.efs.

      Chris

      Comment


      • #4
        indicator

        i haven't more information.
        i have tried the indicator indicate by cryza, but it show an syntax error.
        best regards, Ciro Vuolo.

        Comment


        • #5
          vciro:

          What is the syntax error??

          Chris

          Comment


          • #6
            error

            line 1 : illegal character
            ^

            Comment


            • #7
              Sounds like the file I uploaded got corrupted somehow. I just put a new one up there so you can download the new one and try again.

              If you still get the error then load the script into your Formula Editor and see if you can determine what it is generating the error.

              Chris

              Comment


              • #8
                Chris,

                In attempting to run the file, I get:

                line 61: ReferenceError: setShowTitleParameters is not defined

                So I look to my bible, "Help File for eSignal EFS (v2.5)" (Have you heard of this excellent reference? ;-), in which everything seems to be ok.

                Commenting out the line, everything appears to run fine, so what's up with my attempt to run the EFS file?

                Just curious, but grateful for all you have done,
                Greg

                Comment


                • #9
                  Hi Greg:

                  The function setShowTitleParameters() is a fairly new one so if your version of eSignal is a little out-of-date, that function will generate an error. So, the solution is either to REM it out (which you already did) or to upgrade to the current release of eSignal.

                  Chris

                  Comment


                  • #10
                    Chris,

                    Previously, support told me there were no changes from v7.4, b708, to the present build, but evidently that is incorrect. In another thread, someone else asked the same question, and I was about to answer my own question, but you beat me to it.

                    Thanks for your quick response,
                    Greg

                    Comment

                    Working...
                    X