함수

조건

이 묶음의 이름 9개예요.
형식과 예를 함께 적었어요.

ta.crossover

a가 b를 위로 뚫은 봉에서 참

형식
crossover(a: Source, b: Source): Cond
예
ta.crossover(fast, slow)

ta.crossunder

a가 b를 아래로 뚫은 봉에서 참

형식
crossunder(a: Source, b: Source): Cond

ta.cross

어느 쪽이든 교차한 봉

형식
cross(a: Source, b: Source): Cond

ta.rising

앞의 length봉 모두보다 높을 때

형식
rising(src: Source, length: number): Cond

ta.falling

앞의 length봉 모두보다 낮을 때

형식
falling(src: Source, length: number): Cond

ta.pivothigh

고점(양옆보다 높음). right봉 뒤 확인되는 봉에 값, 나머지는 NaN

형식
pivothigh(src: Source, left: number, right: number): Series

ta.pivotlow

저점. pivothigh와 같은 방식

형식
pivotlow(src: Source, left: number, right: number): Series

ta.barssince

조건이 마지막으로 참이었던 뒤 지난 봉 수

형식
barssince(cond: Bool): Series

ta.valuewhen

조건이 참이던 봉의 src 값 (0 = 가장 최근)

형식
valuewhen(cond: Bool, src: Source, occurrence?: number): Series

npm · GitHub