Reply To: CAD vs CAD with a 12 EMA

Optuma Forums Optuma Scripting CAD vs CAD with a 12 EMA Reply To: CAD vs CAD with a 12 EMA

#61909
MathewMathew
  • Topics: 32
  • Replies: 1,654
  • Posts: 1,686

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

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