Announcement

Collapse
No announcement yet.

Problem with Wizard EFS

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

  • Problem with Wizard EFS

    I just made up this simple formula w/ the wizard... why do the most recent price bars vanish of the chart?


    --MIKE
    Attached Files

  • #2
    Hello Mike,

    Is the background color for your chart set to Black? Your formula is changing some of the bars to black, or a very dark color, so you won't be able to see them against a black background.
    Jason K.
    Project Manager
    eSignal - an Interactive Data company

    EFS KnowledgeBase
    JavaScript for EFS Video Series
    EFS Beginner Tutorial Series
    EFS Glossary
    Custom EFS Development Policy

    New User Orientation

    Comment


    • #3
      Background is white. When I select candlesticks I get wierd looking candlesticks for the most recent few bars. THey look like hollow bricks. The rest of the chart looks great. This problem is only happening on the most recent few bars.. for some stocks its between 1-5 of the most recent bars.

      Seems like some kind of wierd error...


      --MIKE

      Comment


      • #4
        I would suggest posting a screen shot, maybe by looking at the problem something will become evident.

        Comment


        • #5
          here is a snapshot
          Attached Files

          Comment


          • #6
            This is how it looks with candlesticks... very wierd
            Attached Files

            Comment


            • #7
              The current bars are getting painted white.

              click here
              Jason K.
              Project Manager
              eSignal - an Interactive Data company

              EFS KnowledgeBase
              JavaScript for EFS Video Series
              EFS Beginner Tutorial Series
              EFS Glossary
              Custom EFS Development Policy

              New User Orientation

              Comment


              • #8
                Wierd... why is this happening what the fix?

                Comment


                • #9
                  Is it simply a beta bug?


                  Can someone kindly write me up the EFS not using the wizard?

                  Paint bar blue if:

                  ((close() - low()) / (high() - low()) * 100) >50

                  close> yesterday's high

                  close> yesterday's close

                  close>open


                  Paint bar red if:

                  ((close() - low()) / (high() - low()) * 100) <50

                  close<yesterday's low

                  close< yesterday's close

                  close<open


                  Paint bar grey if:

                  Inside bar (today's bar is inside yesterday's bar)





                  ---MIKE

                  Comment


                  • #10
                    this seems to work, check it out.

                    Per your instructions I didnt use the FM, honest I didnt, really

                    var vLastAlert = -1;

                    function preMain() {

                    setPriceStudy(true);
                    setStudyTitle("mikexny");
                    }

                    function main() {
                    if (
                    (close()-low())/(high()-low()) > 0.50 &&
                    close() > high(-1) &&
                    close() > close(-1) &&
                    close() > open()
                    ) onAction1()

                    if (
                    (close()-low())/(high()-low()) < 0.5 &&
                    close() < low(-1) &&
                    close() < close(-1) &&
                    close() < open()
                    ) onAction2()

                    if (
                    high() < high(-1) &&
                    low() > low(-1)
                    ) onAction3();
                    return null;
                    }

                    function onAction1() {
                    setPriceBarColor(Color.RGB(0,0,255));
                    vLastAlert = 1;
                    }
                    function onAction2() {
                    setPriceBarColor(Color.RGB(255,0,0));
                    vLastAlert = 2;
                    }
                    function onAction3() {
                    setPriceBarColor(Color.RGB(160,160,164));
                    vLastAlert = 3;
                    }

                    //the ELSE satatements were removed after not using the FM

                    Comment

                    Working...
                    X