Select Page

# Reply To: help creating criteria for scanning

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

#46575

Darren
• Topics: 31
• Replies: 172
• Posts: 203

Hi Trevor,

To be able to scan the formula will require a true/false condition, so what would be the signal in your example? If it’s when the momentum crosses above zero this would be the formula:

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

Here’s the above used as a Show Bar tool (blue lines) showing 3 days after the indicator crossed 0. Is that what you had in mind?

### 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