How do I add custom indicators to condition wizard?


0
0

How do I add my custom indicators to the MarketWatch/StudyAlert/thinkscript editor, not seting alerts on the indicator itself. My custom indicators show up under the condition wizard but then it popes up error (rec usage is not allowed in this context) or (Error processing referenced script XXX: No such function: XXX at 1:1
Expected double at 1:14)

RESOLVED
Marked as spam
Posted by (Questions: 7, Answers: 13)
Asked on December 28, 2018 10:25 am
464 views
1
Private answer

Two things. When you see this error: “rec usage is not allowed in this context” it means the code cannot be used for Study Alerts or for Conditional Orders. There is no workaround. When you see this error: “Error processing referenced script XXX: No such function: XXX at 1:1 Expected double at 1:14” It means you are trying to reference a custom study instead of copy/pasting the entire code. You cannot reference a custom study the way you can a built-in study. The only workaround is to include the entire code. But if you get the “rec usage” error while doing that you still have no work around.

Marked as spam
Posted by (Questions: 37, Answers: 4086)
Answered on December 28, 2018 4:03 pm