- This topic has 5 replies, 5 voices, and was last updated 1 month ago by .
- You must be logged in to reply to this topic.
How do you create the script for an indicator of an indicator, such as Stochastic of RSI?
V1 = RSI(BARS=14);
STOCH(V1, BAR1=10, BAR2=3)
Thanks Jamie. Also, see the first video here on Nested functions:
Thanks for the info!
I’m trying to apply indicators to a Show Plot script that I have made, but am running into some issues.
The Show Plot script is:
var1 = LRSLOPE(BARS=10);
var2 = LRINT(BARS=10);
When I apply a MA(10) I would expect it to plot along the Show Plot, what I get is in the attached.
I am also trying to add a PSAR to the Show Plot, it appears to plot the downward dots well, but puts the upward dots at or below zero on the Y axis.
Some functions have hidden Highs / Low values that don’t appear in view but can effect tools that reference them, when adding a tool to a single value plot like this i always recommend setting the calc style to Close only.
If you adjust the Moving Average (applied to the Show View) to use the Close only in its properties, it displays as you would expect.
With the PSAR script, i can’t repeat the issue you are using. Can you include the script and a screen shot of the result. (I am using PSAR().PSAR to test with)
Thanks for your help Matthew! Have got the MA and PSAR working.
Fixed the PSAR issue by setting the Show Plot formula as a variable nested inside a CLOSE() function as you recommended for the MA.
var3 = CLOSE((var1*10)+var2));
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
|cname||14 days||This cookie is set by Optuma. The cookies is used to store the users campaign selection for selecting the correct version of Optuma to trial and is "Necessary".|
|cookielawinfo-checbox-analytics||11 months||This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".|
|cookielawinfo-checbox-functional||11 months||The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".|
|cookielawinfo-checbox-others||11 months||This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.|
|cookielawinfo-checkbox-necessary||11 months||This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".|
|cookielawinfo-checkbox-performance||11 months||This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".|
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.