Announcement

Collapse
No announcement yet.

BW Squat formula request again

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

  • BW Squat formula request again

    Again, could someone help me write a formula that will mark a bar if it meets the following conditions?


    If current bar (H - L) / Vol is < previous bar (H - L) / Vol

    AND

    current bar Vol is > previous bar Vol

    THEN

    place a black diamond above the bar.

    Thankyou,

    Rogersonfarm

  • #2
    You didnt say please, but the ty was there, so try this...
    Attached Files

    Comment


    • #3
      Please try this, I forget the volume part, thanks.
      Attached Files

      Comment


      • #4
        BW Squat Bars

        Hi,

        Could someone please help me out with this formula?

        If current bar (H - L) / Vol is < previous bar (H - L) / Vol

        AND

        current bar Vol is > previous bar Vol

        THEN

        color the bar blue?

        It appears as though someone has done the formula in this thread but I need the bar to be colored blue, and they programmed it so that a shape appears above the bar. Thank you very much for your help!

        Troy
        Last edited by tcp; 08-29-2003, 11:11 AM.

        Comment


        • #5
          Troy
          The enclosed code should do what you asked
          Alex

          PHP Code:
          function preMain() {
           
              
          setPriceStudy(true);
              
          setStudyTitle("Squat");
              
          setShowCursorLabel(false);
              
          setColorPriceBars(true);
              
          setDefaultPriceBarColor(Color.black);
          }

          function 
          main() {

              if (((
          high()-low())/volume()) < ((high(-1)-low(-1))/volume(-1))&&
              
          volume() > volume(-1)){
              
          setPriceBarColor(Color.blue)
              }
              return 
          null;

          Comment


          • #6
            Thank you very much for all of your help, I really appreciate it!

            Troy

            Comment


            • #7
              Hi Alex,

              Thanks again for your help, the formula for the squats works good. I do have one problem, though. You made a formula a few months back for turning price bars different colors based on Bill Williams AO and AC indicators. I have the bars turning green, red or grey depending on those indicators. I need to run the AO-AC formula with the Squat formula. Right now, I can only run one or the other. The AO-AC formula you wrote is located on page 5 of New Study Suggestions under the thread of "Bill Williams indicators to use on eSignal". Thanks!

              Troy

              Comment


              • #8
                Troy
                You have two solutions.
                One is to modify the Squat Bars formula so that it does not paint a bar but draws a shape on the signal bars (you can use the farmer-roger efs as an example), the other is to simply integrate the conditions of the Squat Bars formula in the AO-AC formula.
                In either case it is literally a cut and paste job.
                Alex
                Last edited by ACM; 09-02-2003, 12:55 AM.

                Comment


                • #9
                  BW SQUATs

                  CAN SOMEONE SUPPLY THIS STUDY. I AM NOT SURE WHICH IS CORRECT AND IF YOU CAN ATTACH A .EFS

                  Thanks for the help!

                  Comment


                  • #10
                    tjkm
                    Click here and you can find a collection of Bill Williams studies compiled by Chris Kryza
                    Alex

                    Comment

                    Working...
                    X