본문으로 이동
AlertaChartAlertaScript / docs
AlertaScript / 구문과 타입
이 페이지의 내용동작 원리실전 적용코드 예제

AlertaScript / 문서

구문과 타입

명확한 선언과 인수.

동작 원리

=는 선언, :=는 재할당입니다. int, float, bool, string, color는 서로 다른 타입입니다.

실전 적용

na로 초기화할 때 타입을 명시하세요. 함수 시그니처를 따르고 input.int 같은 타입 입력을 사용합니다.

코드 예제

AlertaScript
indicator("Typed inputs", overlay=true)int length = input.int(20, "Length", minval=1)float source = closebool rising = close > openplot(ta.ema(source, length), "EMA", color=rising ? color.green : color.red)
AlertaScript

검색 결과가 없습니다.

이름, 별칭 또는 키워드로 검색하세요.