CAD vs CAD with a 12 EMA

Optuma Forums Optuma Scripting CAD vs CAD with a 12 EMA

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #61887
    AvatarStephen
    • Topics: 4
    • Replies: 4
    • Posts: 8

    How do I test CAD(chaikin a/d) vs the 12 period exponential moving average of CAD?
    CAD() > CAD(MA( BARS=12))?

    #61909
    MathewMathew
    • Topics: 32
    • Replies: 1,648
    • Posts: 1,680

    Hi Stephen,

    That script would give you the CAD of the Moving Average. Use this instead:

    This is the Moving Average of the CAD.

    When you say “Test” are you using the signal tester to compare them? Or are you looking for a signal when the CAD crosses above the MA of the CAD? If so, remember that greater than is true for every day while the CAD is above the MA. We call that a “condition”. A signal is a discrete event that happens once. Try this code instead

    On running this though, there may be issues because volume is being used in this value. See how you go but you may need to divide c1 by 10000000

    All the best

    Mathew

    #61935
    AvatarStephen
    • Topics: 4
    • Replies: 4
    • Posts: 8

    thank you

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