PINE LIBRARY
업데이트됨

srcCalc

1 625
Library "srcCalc"
Provides functions for converting input strings 'open','high','low','close','hl2','hlc3','ohlc4','hlcc4' to corresponding source values.

get_src(src)
  Converts string to source float value
  Parameters:
    src: String to use (`close` is used if no argument is supplied).
  Returns: Returns the float value of the string
릴리즈 노트
v2

Added:
return_bool(op, left_val, right_val)
  Evaluates a conditional expression of 2 values given a string of the conditional operator.
  Parameters:
    op: Conditional operator string to use. (options: '>','>=','==','<=','<','!=')(default: '==')
    left_val: Left value of expression. (default: float 0.0)
    right_val: Right value of expression. (default: float 0.0)
  Returns: Returns the boolean value of conditional expression

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.