Security

Security 함수는 내/외부 데이터를 요청(request)하여, 활용하기 위해 활용됩니다. 높은 활용도가 있기 때문에 반드시 숙지하고 있어야 하는 함수입니다.

  1. request.security : security 함수는 많은 요청수(request.)중 하나로, 높은활용도가 있기 때문에 별도 페이지로 구성하였습니다. ruquest.security 는 request.security(symbol, timeframe, expression, gaps, lookahead, ignore_invalid_symbol, currency) 로 구성되어 있으며, 이중 필수 param인 symbol. timeframe 만을 작성하여, src를 호출할 수 있습니다.

//@version=5
indicator("request.security", overlay = false)

//예) 비트코인, 일봉, 종가
btc_d_close = request.security("bitfinex:btcusd", "D", close)

plot(btc_d_close)

2. security 함수는 별도의 변수선언 없이 바로 계산된 값을 출력시킬수도 있습니다.

Last updated