0 of 4 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 4 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Average score |
|
Your score |
|
Fill in the blank the following statement
What keyword is used to write conditional statements in Pine Script?:
bool variable = na
buyCondition
variable := true
variable := false
Fill in the blank the following statement
Use the ternary operator to complete this conditional statement:
variable = condition value_if_true value_if_false
Which version of Pine Script introduced the switch statement?
What is the vale of the result in this switch statement?
i_type = input.string('WMA', 'ma Type', options=['ema', 'sma', 'wma'])
wma = ta.wma(close, 14)
sma = ta.sma(close, 20)
ema = ta.ema(close, 20)
result = switch i_type
'ema' => ema
'sma' => sma
=> wma
It’s a tricky one. Look closely.