MACD Cross above signal line when value < 0

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

  • This topic has 4 replies, 2 voices, and was last updated 3 years ago by John.
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
    • Topics: 5
    • Replies: 366
    • Posts: 371

    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
    • Topics: 5
    • Replies: 366
    • Posts: 371

    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