Announcement

Collapse
No announcement yet.

Direction Dots

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

  • Direction Dots

    Hi,

    The following script (tradestation format) plots dots above and below a price bar dependant upon direction. I have attempted to write an efs for it, but am still learning. If this text looks familiar to anyone and they can assist is writing the efs, I would appreciate it.

    ******************

    {This text plots dots above and below the price bar dependant on market direction}


    INPUTS : PRICE (CLOSE), LEN(9),CONSTNT (4),BEGINBAR(20),ENTRYPT(3),sell_color(magenta),bu y_color(magenta);
    VARS : CENTER (0),UPPER (0),LOWER (0), AVERNGE (0) ;
    VALUE3= (CENTER + UPPER)/2; {SELLLINE}
    VALUE4= (CENTER + LOWER)/2; {BUYLINE}
    CENTER = (CENTER * (LEN - 1) + PRICE) / LEN;
    AVERNGE = (AVERNGE * (LEN - 1) + HIGH-LOW) / LEN;
    UPPER = CENTER + AVERNGE * CONSTNT ;
    LOWER = CENTER - AVERNGE * CONSTNT ;
    CONDITION1= RSI(C,21) < 51;
    IF CURRENTBAR > BEGINBAR THEN BEGIN
    IF CONDITION1 THEN
    PLOT1(VALUE3,"SELLLINE",sell_color);
    CONDITION11= RSI(C,21) > 49;
    IF CONDITION11 THEN
    PLOT2(VALUE4,"BUYLINE",buy_color);

    **************************************

    Thanks,

    DaTr8dr

  • #2
    Check this out...
    Attached Files

    Comment


    • #3
      Wrong color scheme, sorry
      Attached Files

      Comment


      • #4
        dloomis,

        thanks for the reply. When I import this efs, I get a column of red and green dots all the way to the right of the chart. Is this what I am supposed to see?

        Thanks,

        DaTr8dr

        Comment


        • #5
          my bad, sorry
          Attached Files

          Comment


          • #6
            dloomis,

            I took your second file and modified it by substituting "drawShaperelative" for "drawShapeAbsolute". This placed the green/red dots above and below the price bars. Now I will have to look further since your formula places a green/red dot on every bar. You will notice that in the original text below there was a perios when the RSI was >49 and <51 that no dot would be painted.

            You have started me in the right direction. I will attempt to work this out.

            Thanks,

            DaTr8dr

            Comment


            • #7
              Here is a picture from Tradestation that I am trying to get close to. You will notice that there are many times that no dots, above or below the price bar, are present.

              Thanks,

              DaTr8dr
              Attached Files

              Comment


              • #8
                Please try this...
                Attached Files
                Regards,
                Jay F.
                Product Manager
                _____________________________________
                Have a suggestion to improve our products?
                Click Support --> Request a Feature in eSignal 11

                Comment


                • #9
                  they look the same to me

                  Hi Jay,

                  your posted efs plots dots that look like mine, jagged.

                  I was hoping for smoother lines.

                  Thanks.

                  DaTr8dr
                  Attached Files

                  Comment


                  • #10
                    I dont know what we were thinking when we first set this up, but the formulas were all wrong.

                    At least this one pots the dots in a similar way to the chart you posted and uses the correct formula logic.

                    Let me know what you think.
                    Attached Files

                    Comment


                    • #11
                      Adding the colored dots wasn't so hard after all, here is a cleaned up version.
                      Attached Files

                      Comment


                      • #12
                        Thank you!! You guys are the best.

                        DaTr8dr

                        I promise not to bother you again,,,,until the next time. LOL.

                        Really, thanks.

                        DaTr8dr again

                        Comment


                        • #13
                          Not quite there.

                          I am using the latest eps this morning in real time. I have noticed that it draws the dots in jagged form and when you reload, it then aligns up the dots in a more uniform pattern.

                          Any suggestions?

                          Comment


                          • #14
                            Something else

                            I have also noticed that with your efs, when the RSI is between 49 and 51, there are no double dot postings, above and below the price bar.

                            When the RSI is between 49 and 51, this should plot a dot above the price bar and below the price bar.

                            Thanks for your help.

                            Comment


                            • #15
                              I am not sure why the problem you describebd earlier is fixed on reload, but this efs should draw a dot above and below the chart if the rsi is btwn 49 and 51,
                              Attached Files

                              Comment

                              Working...
                              X