♥ 0 |
Hi Pete, the within reserved word only functions with an integer or length. Do you think it would be possible to write an expression that would achieve the same results as the within function while using a variable in place of an integer or length? Thanks.
Marked as spam
|
Private answer
"within" is not a function. It is merely a "reserved word". https://toslc.thinkorswim.com/center/reference/thinkScript/Reserved-Words/within It is inserted into the code when using the Condition Wizard. I never use it directly when I write code so I have no experience that would enable me to assist you. I use a completely different type of code structure to accomplish the same thing. Without a real world example I can't even perform basic trouble shooting techniques to answer your question. However using the example provided in the link above I can tell you I would write that same example like this:
Marked as spam
|
Please log in to post questions.
def previousClose = close[1];
Same exact statement as
def previousClose = GetValue(close, 1);