Announcement

Collapse
No announcement yet.

Macd Bb

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

  • Macd Bb

    Tradestation users have an indicator made by someone called "MACD BB"

    I searched the files section and didnt see anything. Does eSignal use Easy Language? I know that it is coded in that, and the sourcecode is here .

    If we have a programmer around, I heard this indicator is awesome.
    Last edited by KuJaX; 02-20-2004, 04:51 PM.

  • #2
    KuJax,
    I think you should go ahead and post the EasyLanguage code here and maybe someone will have the time to start translating it to JavaScript over the weekend.

    By the way, did you see my question regarding how Mel uses that setup which Jason so kindly made for us? Jason is going to try to get Mel to give us some input, but perhaps you have some insight in the meantime?

    Thanks, Bob

    Comment


    • #3
      rmclean - JasonK just barely got done with the new version, and I havent gotten it in yet. I will definately let people know how it goes, and give JasonK a big thanks.

      Code:
      inputs: 
      	F<SPAN class='Span_HiLite'>a</SPAN>stLen( 12), 
      	SlowLen( 26), 
      	Length(  10 ),
      	StDv(1);
      
      V<SPAN class='Span_HiLite'>A</SPAN>RS:
      	BB_<SPAN class='Span_HiLite'>Macd</SPAN>(0),
      	<SPAN class='Span_HiLite'>A</SPAN>vg(0),
      	SDev(0),
      	Upper_b<SPAN class='Span_HiLite'>a</SPAN>nd(0),
      	Lower_b<SPAN class='Span_HiLite'>a</SPAN>nd(0);	 
      
      BB_<SPAN class='Span_HiLite'>Macd</SPAN>= <SPAN
       class='Span_HiLite'>MACD</SPAN>( Close, F<SPAN class='Span_HiLite'>a</SPAN>stLen, SlowLen ) ;
      <SPAN class='Span_HiLite'>A</SPAN>vg = X<SPAN
       class='Span_HiLite'>A</SPAN>ver<SPAN class='Span_HiLite'>a</SPAN>ge(BB_<SPAN
       class='Span_HiLite'>Macd</SPAN>,Length);
      SDev = StdDev( BB_<SPAN class='Span_HiLite'>Macd</SPAN>, 
      Length ) ;
      Upper_B<SPAN class='Span_HiLite'>a</SPAN>nd = <SPAN class='Span_HiLite'>A</SPAN>vg + StDv * SDev ;
      Lower_B<SPAN class='Span_HiLite'>a</SPAN>nd = <SPAN class='Span_HiLite'>A</SPAN>vg - StDv * SDev ;
      
      Plot1(BB_<SPAN class='Span_HiLite'>Macd</SPAN>);
      Plot2(Upper_B<SPAN class='Span_HiLite'>a</SPAN>nd);
      Plot3(Lower_B<SPAN class='Span_HiLite'>a</SPAN>nd);

      Comment


      • #4
        KuJaX,
        OOPS, sorry, I didn't see the link you put in your first post...

        Looking at the TS Code now, but I am not any kind of an expert and I have a couple of projects in the pipeline myself...

        Bob

        Comment


        • #5
          Kujax
          The code you posted seems to contain a lot of unrelated formatting commands.
          You may want to try to post it again as a simple text document.
          Alex

          Comment


          • #6
            Originally posted by Alexis C. Montenegro
            Kujax
            The code you posted seems to contain a lot of unrelated formatting commands.
            You may want to try to post it again as a simple text document.
            Alex
            TRADESTATION code LINK

            Comment


            • #7
              also attached TXT file with coding in it.
              Attached Files

              Comment


              • #8
                any interest boil up? I know of some people along with me would love to see this implemented into an EFS!

                Comment


                • #9
                  Kujax
                  Here below is the Easy Language script without all the formatting code

                  inputs:
                  FastLen( 12),
                  SlowLen( 26),
                  Length( 10 ),
                  StDv(1);

                  VARS:
                  BB_Macd(0),
                  Avg(0),
                  SDev(0),
                  Upper_band(0),
                  Lower_band(0);

                  BB_Macd= MACD( Close, FastLen, SlowLen ) ;
                  Avg = XAverage(BB_Macd,Length);
                  SDev = StdDev( BB_Macd, Length ) ;
                  Upper_Band = Avg + StDv * SDev ;
                  Lower_Band = Avg - StDv * SDev ;

                  Plot1(BB_Macd);
                  Plot2(Upper_Band);
                  Plot3(Lower_Band);


                  Attached you can find the efs for the MACD_BB study.
                  All parameters for the MACD and BB can be modified through Edit Studies
                  Alex

                  Attached Files

                  Comment


                  • #10
                    FWIW attached is the same MACD_BB efs created in this instance using only the Formula Wizard.
                    This shows that despite some limitations this tool can be quite handy in creating EFS(s) even when unfamiliar with javascript
                    Alex
                    Attached Files

                    Comment


                    • #11
                      Awesome,

                      Can't wait to test it out! Thanks Alexis C. Montenegro!

                      What do you mean by "without all the formatting code"?

                      Comment


                      • #12
                        Kujax

                        What do you mean by "without all the formatting code"?

                        Compare the script I enclosed (in blue text) in my prior reply and the ones that were posted previously and you will see that mine is missing all the text formatting code (ie <SPAN>Hilite..etc) which is not part of Easy Language
                        Alex

                        Comment


                        • #13
                          MACD_BB

                          Alexis,

                          Great job with this indicator. I was wondering if you could make it so that the red line, the macd, is dots instead of a line? Also, if the dots could change to green when above the upper band and red when below the lower band.

                          Thanks for your time and effort.

                          Michael

                          Comment


                          • #14
                            Michael
                            In this same thread there is a version of the efs that was written using the Formula Wizard. You may want to try to modify that version yourself using the Formula Wizard. Once you have done that you can then port the logic over to the version that was written using the Editor.
                            If you run into problems post the code as you have modified it and someone will guide you through fixing it.
                            Alex

                            Comment

                            Working...
                            X