Floor Trader Pivots
All functions · nseries package
FloorTraderPivot
func (s Series) FloorTraderPivot(h, l, c Series) Series
FloorTraderPivot computes the floor trader pivot point as (H+L+C)/3. The receiver is not used. The high, low and close series h, l and c are right-aligned at the most recent bar: with m the length of the shortest of them, the last m bars of each are combined, and the result has the length of h with zeros in its first len(h)-m positions, so an empty h, l or c gives a zero-filled series. Series are paired by position only; see “Time alignment” in the manual.
FloorTraderR1
func (s Series) FloorTraderR1(h, l, c Series) Series
FloorTraderR1 computes the first floor trader resistance level, R1 = 2*P - L. The receiver is not used; h, l and c are right-aligned at the most recent bar exactly as for FloorTraderPivot.
FloorTraderR2
func (s Series) FloorTraderR2(h, l, c Series) Series
FloorTraderR2 computes the second floor trader resistance level, R2 = P - S1 + R1, which is P + (H - L) in exact arithmetic. The receiver is not used; h, l and c are right-aligned at the most recent bar exactly as for FloorTraderPivot.
FloorTraderR3
func (s Series) FloorTraderR3(h, l, c Series) Series
FloorTraderR3 computes the third floor trader resistance level, R3 = H + 2*(P - L), mirroring FloorTraderS3 (S3 = L - 2*(H - P)). The receiver is not used; h, l and c are right-aligned at the most recent bar exactly as for FloorTraderPivot.
FloorTraderS1
func (s Series) FloorTraderS1(h, l, c Series) Series
FloorTraderS1 computes the first floor trader support level, S1 = 2*P - H. The receiver is not used; h, l and c are right-aligned at the most recent bar exactly as for FloorTraderPivot.
FloorTraderS2
func (s Series) FloorTraderS2(h, l, c Series) Series
FloorTraderS2 computes the second floor trader support level, S2 = P - R1 + S1, which is P - (H - L) in exact arithmetic. The receiver is not used; h, l and c are right-aligned at the most recent bar exactly as for FloorTraderPivot.
FloorTraderS3
func (s Series) FloorTraderS3(h, l, c Series) Series
FloorTraderS3 computes the third floor trader support level, S3 = P - R2 + S1, which is L - 2*(H - P) in exact arithmetic. The receiver is not used; h, l and c are right-aligned at the most recent bar exactly as for FloorTraderPivot.