MACD Cross above signal line when value < 0

Optuma Forums Optuma Scripting MACD Cross above signal line when value < 0

This topic contains 4 replies, has 2 voices, and was last updated by  John 4 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #46919

    John
    • Topics: 3
    • Replies: 4
    • Posts: 7

    Hi
    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?
    Thanks.

    #46923
    Matthew
    Matthew
    • Topics: 3
    • Replies: 69
    • Posts: 72

    Hi John,

    Do you mean when the Oscillator crosses above the Average when both lines are below zero?  If so, the following script will work…

    Below is an example of where this script would show as True (shaded green zone)…

    Ex6

     

    #46927

    John
    • Topics: 3
    • Replies: 4
    • Posts: 7

    Yes, that’s it.  What do I adjust to pick up a cross any time in the last X bars?

    #46931
    Matthew
    Matthew
    • Topics: 3
    • Replies: 69
    • Posts: 72

    Hi John,

    If you’re using the script in a scan, you would adjust the Date Range of the scan rather than the script itself.

    Ex7

    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.

     

    #46935

    John
    • Topics: 3
    • Replies: 4
    • Posts: 7

    Too easy.  Thanks for your help Matthew.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Pin It on Pinterest

Share This

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close