Announcement

Collapse
No announcement yet.

Add'l Help With Count Bars, Please?

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

  • #16
    Diane
    FWIW even though I am one of the moderators of these forums I am not an employee of eSignal.
    In looking at your chart I noticed that both counts are not set up to reset if vPrice is greater than vLower or lesser than vUpper (ie where the yellow circles are drawn). I don't know if this is intended or not. If not then you will need to add either one of the following examples in your third condition. This is so that the count gets reset at every change of state.
    Alex

    PHP Code:
    //if you want to reset the count but not draw the numbers
    if(vPrice>vLower&&vPrice<vUpper){
        
    drawShapeRelative(0,vPrice,Shape.CIRCLE,null,Color.yellow,null);
        if(
    vFlag!=0vCounter=1;
        
    vFlag 0;
    }

    //or if you want to reset the count and draw the numbers
    if(vPrice>vLower&&vPrice<vUpper){
        
    drawShapeRelative(0,vPrice,Shape.CIRCLE,null,Color.yellow,null);
        if(
    vFlag!=0vCounter=1;
        
    vFlag 0;
        if(
    vCounter<14drawTextRelative(your parameters);

    Comment


    • #17
      Good Morning, Alex, (I'm on central time),
      Thanks for checking out my chart & thanks for your information. Initially, I was using the yellow circles to indicate a no-trend area, but, after revisiting your example chart & this new info, I'm going to revise my study with this information. Hope you have a good day!(Seems you must work 7 days a week, but I know that can't be right. And I still think you should get a raise no matter who you work for).Thanks, again.
      Diane

      Comment


      • #18
        Alex,
        Your way is definitely better. Thank you.
        Diane

        Comment


        • #19
          Diane
          As always you are most welcome and thank you for the compliment
          Upon further review of the script I noticed that the version of the T3 Average you are using is one that computes incorrectly in real time. In fact if you let it run for a while (even in Tick Replay) and then reload the efs the plot of the section that was run in real time will change. In addition the counter could reset incorrectly in real time if the conditions changed intrabar.
          Given the extent of changes required to fix all the above I modified the efs and am attaching it with comments included in the script itself. Note that the count now executes only on completed bars (the logic itself is unchanged) while the shapes are drawn in real time. As far as I can see it should all be working correctly now
          Alex
          Attached Files

          Comment


          • #20
            Alex,
            WOW! I can really see the difference using the completed bar. Thank you for your eagle eye! With my extremely limited knowledge, I would never have caught the problem. Thank you for taking your valuable time to redo the efs, & for everything you have done for me this weekend. At this point, you're probably ready for a serious vacation!
            Diane

            Comment


            • #21
              Hi Alex,
              I don't mean to question your incredible expertise, but I have 1 question:
              in the formula, where it says: if(vPrice_1<=vLower_1){
              if(vFlag!=2--shouldn't that be -1?
              & (vFlag=2--maybe -1 also?
              Thanks,
              Diane
              Last edited by Diane P; 08-14-2005, 02:55 PM.

              Comment


              • #22
                Diane
                It actually does not matter so long as we first check for the flag to be a unique value (or string) that is different from what we will then set it to. However given that throughout this thread we refer to -1 you may want to replace 2 with -1.
                I have also replaced the posted efs with one that contains that change
                Alex

                Comment


                • #23
                  Thanks, Alex. Hope you have a great night.
                  Diane

                  Comment

                  Working...
                  X