Reply To: help creating criteria for scanning

Optuma Forums Optuma Scripting help creating criteria for scanning Reply To: help creating criteria for scanning

  • Topics: 33
  • Replies: 182
  • Posts: 215

Sorry Trevor – V2 should have been on it’s own line:

// calculate the 20EMA;
V1 = MA(BARS=20, STYLE=Exponential, CALC=Close);
// calculate the 3 perdiod momentum of V1;
// Create the true/false condition, offset 3 bars;
V2[3] CrossesAbove 0

You can change the offset to 3 days before V2[-3] but you can’t really test on that because you won’t know that the cross will actually happen 3 days later. Hope that makes sense.

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.