Recent content by Pivotas

  1. P

    counting bars

    pivothighbarvs and pivotlowbarvs returns the number of bars ago that the pivothigh and pivotlow occurred. The value of -1 or 1 are only returned if a pivot did not occur within the length you specified. The barvs with the lowest count of bars ago will be the last one plotted. There are several...
  2. P

    counting bars

    Assuming you are using Tradestation, there are 2 ShowMe studies called PivotHigh, PivotLow. Open them up and look at the language they use to define their different plots. They call upon the functions PivotHighVSBar and PivotLowVSBar. These functions return the bar number of the High or Low...
  3. P

    counting bars

    If you already have an indicator that plots pivot points, that indicator is keeping track of the bar number at which the pivot occurred. Subtracting that number from the current bar number will get you the "bars since" number. Because you are using the last occurance of the pivot, when a new...
Top