Reply To: Using multiple MA's in Back Tester

Optuma Forums Optuma Scripting Using multiple MA's in Back Tester Reply To: Using multiple MA's in Back Tester

  • Topics: 7
  • Replies: 8
  • Posts: 15

Thanks Matthew, that’s sort of the idea. However, as I learned, you have to be more specific about what constitutes a change in slope.  So, I have one condition for the 20MA which looks like this

m1 = MA(BARS=20, CALC=Close);

h1 = LOWESTLOW(m1,BARS=10);

c1 = (m1 – h1) / m1 * 100;

c1 CrossesAbove .50 

The script for the shorter term, 10MA, is basically the same.  So, how would I write the formula to identify those conditions both being met, as you described?

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.