- This topic has 4 replies, 2 voices, and was last updated 3 years ago by .
- You must be logged in to reply to this topic.
What scan criteria would I use to pick up when there is a cross above the signal line that occurs when the value is somewhere below zero?
And what is the name of that value on the Y axis?
Do you mean when the Oscillator crosses above the Average when both lines are below zero? If so, the following script will work…
V1 = MACD() ;
V1.Oscillator CrossesAbove V1.Average
V1.Oscillator < 0
Below is an example of where this script would show as True (shaded green zone)…
Yes, that’s it. What do I adjust to pick up a cross any time in the last X bars?
If you’re using the script in a scan, you would adjust the Date Range of the scan rather than the script itself.
Using Last Week for example is the same as setting the script to show if a Cross has occurred within the last 5 trading days.
Too easy. Thanks for your help Matthew.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
|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.