Announcement

Collapse
No announcement yet.

Junk lines in study window, Hekin-Ashi

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

  • Junk lines in study window, Hekin-Ashi

    Hi,
    I made small change to eSignal_HeikinAshi.esf and I get junk lines in the study window or just dots.

    I wanted to return a different value to be displayed in the cursor window. For a test I made the following change:

    test = high() - low();
    var retArray = new Array(4);
    retArray[0] = haHigh.toFixed(2)*1;
    // retArray[1] = haLow.toFixed(2)*1;
    retArray[1] = test.toFixed(2)*1; //Replaced line with this
    retArray[2] = haOpen.toFixed(2)*1;
    retArray[3] = haClose.toFixed(2)*1;

    It is like the scale is off?

    Some times I get blue lines going up and down at angles, sometimes I get horizontal junk lines?


    Any Ideas?

    Thank You for any help
    Tom

  • #2
    Re: Junk lines in study window, Hekin-Ashi

    Originally posted by windswepttom
    Hi,
    I made small change to eSignal_HeikinAshi.esf and I get junk lines in the study window or just dots.

    I wanted to return a different value to be displayed in the cursor window. For a test I made the following change:

    test = high() - low();
    var retArray = new Array(4);
    retArray[0] = haHigh.toFixed(2)*1;
    // retArray[1] = haLow.toFixed(2)*1;
    retArray[1] = test.toFixed(2)*1; //Replaced line with this
    retArray[2] = haOpen.toFixed(2)*1;
    retArray[3] = haClose.toFixed(2)*1;

    It is like the scale is off?

    Some times I get blue lines going up and down at angles, sometimes I get horizontal junk lines?


    Any Ideas?

    Thank You for any help
    Tom

    High() - Low() could be a whole lot smaller than Close() which could cause your chart to squish.

    Try:

    test = ( high() + low() ) * .50 ;

    See if the problem persists.

    HTH.

    Comment


    • #3
      I did some more testing and I found out if you return any value not close the the values used in the drawLineRelative function, it throws the scaling off. for example al the values are between 710 and 713 and you return a value of 699 the bars get real small.

      So then I added another element to the array at the end and kept the first 4 elemants the same. I got the same results. If I made the 5th element in the same range everything was fine. But, if I put a value of say 650 in it, then all I got was dots.

      Comment


      • #4
        windswepttom,
        Haven't tried your code, but wanted to see if you were aware of the scaling option on Advanced Charts.
        Rt click chart , choose Scaling / then choose Scale Price Data Only.
        Maybe turn off Auto Scaling.

        Comment

        Working...
        X