Announcement

Collapse
No announcement yet.

Displaying arrows over/under price

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

  • Displaying arrows over/under price

    I downloaded the script below and was wondering if there was a way to display the arrows under price for a bullish arrow and over price for a bearish arrow. If so, can someone show me how to do so. I made some adjustments but was only able to display the whole stochastic with arrows over price.

    Thank you so much.
    Attached Files

  • #2
    I use and offset function that can be called... like this.

    PHP Code:

    //  Draw Above current High
    drawShapeRelative(0, (high()+fMakeGOffset(3)),.........);

    //  Draw Below current Low
    drawShapeRelative(0, (low()-fMakeGOffset(3)),.........);


    function 
    fMakeGOffset(lookbacklength) {
      var 
    x;
      var 
    vSum 0;
      for (
    x=-1> -(lookbacklength+1); x--) {
          
    vSum += (high(x)-low(x));
      }
       
    //  generate the average range of the bars
      
    vSum vSum/lookbacklength;
       
    //  Calc offset range
      
    vSum = (vSum 0.33);

      return 
    vSum;

    Brad Matheny
    eSignal Solution Provider since 2000

    Comment

    Working...
    X