함수
조건
이 묶음의 이름 9개예요.
형식과 예를 함께 적었어요.
ta.crossover
a가 b를 위로 뚫은 봉에서 참
crossover(a: Source, b: Source): Condta.crossover(fast, slow)ta.crossunder
a가 b를 아래로 뚫은 봉에서 참
crossunder(a: Source, b: Source): Condta.cross
어느 쪽이든 교차한 봉
cross(a: Source, b: Source): Condta.rising
앞의 length봉 모두보다 높을 때
rising(src: Source, length: number): Condta.falling
앞의 length봉 모두보다 낮을 때
falling(src: Source, length: number): Condta.pivothigh
고점(양옆보다 높음). right봉 뒤 확인되는 봉에 값, 나머지는 NaN
pivothigh(src: Source, left: number, right: number): Seriesta.pivotlow
저점. pivothigh와 같은 방식
pivotlow(src: Source, left: number, right: number): Seriesta.barssince
조건이 마지막으로 참이었던 뒤 지난 봉 수
barssince(cond: Bool): Seriesta.valuewhen
조건이 참이던 봉의 src 값 (0 = 가장 최근)
valuewhen(cond: Bool, src: Source, occurrence?: number): Series