Announcement

Collapse
No announcement yet.

Building a Candlestick efs

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

  • #31
    shogun
    You may also want to add a statement such as
    if(getCurrentBarIndex()<-200)
    return;

    at the beginning of main() to limit how many 2-day candles you are drawing as the efs can otherwise consume a lot of resources.

    Garth
    Why don't you post a continuous version also so both are available.

    Alex

    Comment


    • #32
      garth

      having thought about it i can see where you are coming from i was not thinking from that angle, the way alex has done the script is as i originally wanted ,so by merging two bars and then going onto the next two, if you have a idea how to turn it into your version it might be good to compare to see which works best,

      also i have just put in a simple buy/sell Strategy to see how it works in the backtester and it works fine , so i am a very happy bunny, as in the past i have had problems using " Math.max & Math.min" in the backtester,

      Comment


      • #33
        garth these are my adjustments to turn the two day bar into your idea of the two day overlaping bar, see what you think, it is still in the candle form as i am not sure how to draw boxes around each two day bar ,



        Attached Files

        Comment


        • #34
          shogun
          The attached variation of your efs draws boxes around the 2-day bar
          Alex

          Attached Files

          Comment


          • #35
            shogun
            You could also color the body of the candle inside the box using the background color.
            Note that this is just an example to show what is possible as I am not sure the logic of the colors is using the correct values
            Alex

            Attached Files

            Comment


            • #36
              excellent alex, i see you have reduced the getCurrentBarIndex -50 to free up the cpu, i had two charts on with it running and it was using 60-100% cpu, i have also changed it to 3 & 4 day bar and it works fine, i was trying to put in a edit studies for the days in each bar but we would have to think of a way to recalculate the Math.max/min

              from Math.max(high(0),high(-1),high(-2),high(-3))

              to Math.max(high(0) to high(x))
              were x = length of the bar ( say 4)

              any ideas, ? is it possible.

              Comment


              • #37
                I want to apologize for my absence from the board here and replying to to questions others have. I have been working on some big projects and had to get focused to get them done. I should see some relief in the next few weeks.
                Excellent book on JavaScript for beginners

                Comment


                • #38
                  fibgann and plumber ...

                  ... you candle charts on this thread are very interesting - is there a script for them? - thank you :-)

                  love the bertram post!

                  Comment


                  • #39
                    Potye2,

                    Who's charts are you refering to?


                    Fibbgann
                    Excellent book on JavaScript for beginners

                    Comment


                    • #40
                      i am referring to

                      the charts on this thread from fibbgann and from theplumber - both are interesting, but the fibbgann ones are most interesting - rgs -p

                      Comment


                      • #41
                        Here is that efs, at the current time being its recommended not to rely on triggers for the following. Thsi was designed mainly for the ES #F at this time.

                        Only use for regular market session hrs.
                        9:30 AM EST. 4:00 PM EST.
                        "No pre or after market use"

                        Consolidation areas give to many triggers, be aware of these market conditions.


                        We plan to address some issues with this in the months to come.

                        One can obtain more details here.

                        Fibbgann
                        Attached Files
                        Excellent book on JavaScript for beginners

                        Comment


                        • #42
                          Updated to version 2 using 3 minute for best signals, 5 minute is possible.

                          One can obtain more details here.
                          Attached Files
                          Last edited by FibbGann; 09-01-2004, 06:22 AM.
                          Excellent book on JavaScript for beginners

                          Comment


                          • #43
                            Found a bug in the efs below so I replaced it with the fixed version.

                            If you downloaded the "MTM Futures trigger V2" before 8:30 AM on 9/01/2004, download it again.

                            Sorry,

                            Fibbgann
                            Last edited by FibbGann; 09-01-2004, 07:04 AM.
                            Excellent book on JavaScript for beginners

                            Comment

                            Working...
                            X