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
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
Note di rilascio:
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
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