How to reference a custom study


Category:
0
0

I tried to create a study to show me the event of cross over in the RSI but I have modified the RSI to include a median line at 50% and renamed it RSI_50 and created it from the on board RSI that thinkorswim provides and it worked fine.

However I tried to create a study to see the crossovers.

declare lower;

plot signal = RSI_50().”RSI” crosses below 70;

plot exit = RSI_50().”RSI” crosses above 30;

I get an error:

Invalid statement: Unexpected part of function call at 5:24
No such function: RSI_50 at 5:15
No such function: RSI_50 at 5:15
Invalid statement: Unexpected part of function call at 5:24

if i remove the _50 from the statements it works but it’s not using the my rebuild of the study which I named RSI_50.

I am providing attachments of code.

Attachments:
Marked as spam
Posted by (Questions: 1, Answers: 0)
Asked on November 30, 2023 12:13 pm
97 views
0
Private answer

Notice I have updated the title of your question to fully explain what you are trying to achieve. The title you entered did not describe the context of your request. Just keep this in mind for future posts in this forum. The title you entered was "Having a problem" and that is completely inadequate for posts in this forum.

So the issue is you have created a custom chart study on Thinkorswim. Then you are trying to reference that custom study from another custom study. This is not supported in the current version of Thinkorswim. You can only reference chart studies which are included with Thinkorswim. Which is exactly what you discovered. There is no fix for this. It is simply not possible to do what you have attempted. You must use the entire code from your original custom chart study.

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on November 30, 2023 5:18 pm