File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -277,11 +277,11 @@ This code shows examples that work and don't work:
277
277
study("alertcondition arguments")
278
278
279
279
// ————— These strings will not work.
280
- // The rsi() value can only be known at compile time and it is a "series",
280
+ // The rsi() value can only be known at runtime time and it is a "series",
281
281
// so "wrongMsgArg1" becomes a "series string".
282
282
wrongMsgArg1 = "RSI value is:" + tostring( rsi(close, 14))
283
283
// This does not work because although the result can be calculated at compile time,
284
- // "tostring()" returns an "simple string" (a.k.a. "string"),
284
+ // "tostring()" returns a "simple string" (a.k.a. "string"),
285
285
// and automatic casting rules do not allow for that type to be cast to "const string".
286
286
wrongMsgArg2 = "Enter at: " + tostring(100.3)
287
287
// This fails because the condition can only be evaluated at compile time,
You can’t perform that action at this time.
0 commit comments