Lipi Reference
Lipi

Functions

str.upper()

Converts a string to upper case; the other half of the pair with str.lower. It takes the string and nothing else.

Syntax · 1 of 4

                str.upper(const string source) → const string
              

Arguments

source required const string String to be converted.

Return Type

const string

Syntax · 2 of 4

                str.upper(input string source) → input string
              

Arguments

source required input string String to be converted.

Return Type

input string

Syntax · 3 of 4

                str.upper(simple string source) → simple string
              

Arguments

source required simple string String to be converted.

Return Type

simple string

Syntax · 4 of 4

                str.upper(series string source) → series string
              

Arguments

source required series string String to be converted.

Return Type

series string

Example


          //@lipi=2
indicator("str.upper Example", overlay=true)
if barstate.islast {
    label.new(bar_index, high, text=str.upper(syminfo.ticker))
}