Scanning ADX(DMPlus) – ADX(DMMinus)

Optuma Forums Optuma Scripting Scanning ADX(DMPlus) – ADX(DMMinus)

This topic contains 2 replies, has 2 voices, and was last updated by Avatar Paul 2 weeks, 1 day ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #54195
    Avatar
    Paul
    • Topics: 3
    • Replies: 4
    • Posts: 7

    Hi,

    Thanks for helping out those of us who are still trying to get up to speed on scripting.

    I’m trying to create a scan of a list that subtracts the number of stocks ending the day with a DMMinus from the number of stocks with a DMPlus.  Simply, the scan counts the number of stocks with a DM+ for the day and subtracts the number with a DM- and returns the net amount.

    I’ve used the following two formulas, neither of which has worked in the scan:

    a1=ADX(BARS=14, ADXBARS=14);

    a1.DMPlus – a1.DMMinus

    and

    ADX(DEFAULT=DMPlus, BARS=14, ADXBARS=14) – ADX(DEFAULT=DMMinus, BARS=14, ADXBARS=14)

    Any help would be greatly appreciated.

    Thanks – Paul

    #54197
    Matthew
    Matthew
    • Topics: 4
    • Replies: 172
    • Posts: 176

    Hi Paul,

    When building a script to be used with scanning you need to make sure the output result is a Boolean (True / False) value.

    When you say you are after stocks ending the day with a DM Minus or DM Plus, do you mean where the ADX DM Plus line is higher than the DM Minis (and vice versa?)

    If so you could use the following script:

    You can then reverse the last line to find the other setup.

    #54203
    Avatar
    Paul
    • Topics: 3
    • Replies: 4
    • Posts: 7

    Matthew – thank you very much.  I really appreciate the help – Paul

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

You must be logged in to reply to this topic.

Pin It on Pinterest

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