Announcement

Collapse
No announcement yet.

EFS question

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

  • EFS question

    I'm having a brain drain today and for some reason can't figure out how get this efs to work with the current interval . This is the code
    function preMAin() {
    setStudyTitle("Range Vol ");
    setDefaultBarFgColor(Color.yellow, 0);
    setPlotType(PLOTTYPE_LINE, 0);
    }

    function main () {
    var vH = high();
    var vL = low();
    var Interval = getInterval();
    var vRangeVol = 0;

    vRangeVol = (vH-vL)/Interval;

    return vRangeVol;
    }

    I thought getInterval would do it but it doesn't, I know this because when I change var Interval to be 200 (since I'm using it on 200T setting) it works . Thanks.

  • #2
    I would add a line

    debugPrintln(Interval)

    If the interval is 200T, you need to strip the T off before you divide by Interval.

    Comment


    • #3
      Thanks but the result didn't turn out as good as the idea, seems no better than trade velocity. Will say this, an early warning indicator would seem to be an averaged MoVo.
      Attached Files
      Last edited by theplumber; 02-26-2005, 08:57 PM.

      Comment

      Working...
      X