Sub-Super Script and Roman numerals LibraryLibrary "Sub_Super_Script_and_RomanNumerals_Library"
Library to transform numbers into Roman numerals / Super-Sub script / check if value is alpha or number
isnumber(input)
check to see if value is a number
Parameters:
input : (string/float/int) value to check
Returns: (na) if value is NOT a number and input (string/float/int) if value is a number
isalpha(input)
check a string if it is alpha(doesnt contain numbers)
Parameters:
input
Returns: (string) if string input does NOT contain numbers, return (na) if input string contains numbers
super(num)
convert a string's numbers from normal print to super-script
Parameters:
num : (string/int/float) input value to transform
Returns: string of input with numbers converted to super-script
sub(num)
convert a string's numbers from normal print to sub-script
Parameters:
num : (string/int/float) input value to transform
Returns: string of input with numbers converted to sub-script
roman(num, trunc)
convert a string of numbers, float, or int
Parameters:
num : (string) input number to transform
trunc : (bool | false) true to truncate float value, false to show roman numerals with decimals (XX.VI)
Returns: string of roman numerals representing the input (num)
Check
SPY Checker v2Using this indicator allows you to check the SPY for large gaps and candles (e.g. >1%) directly in your stock chart at first glance. The algorithm of the * SPY Checker v2* indicator was optimized in this new indicator as well as it using the new pine script version v4. For backwards compatibility reasons this indicator is published as v2.
It is now also possible to use this indicator for all stock charts and to get the SPY indication on them visible without opening the SPY chart explicitly. Additionally added a several days trading stop feature, which is visible on the chart through the green and red background color. This configuration is available in the indicator settings.
Hope this helps many of you to be more efficient in your SPY indication - have fun!