- Desktop
- Scripting
- Formulas and Scripting Functions
- MOD() Function
MOD() Function
Overview
Section titled “Overview”The modulo function MOD(x,y) returns the remainder after x has been divided by y. For example, MOD(23,5) will return a value of 3, where 23 ÷ 5 is 4 remainder 3.
In Optuma, you can use a price in the MOD function, eg close:
MOD(CLOSE(),VALUE=5)or technical value, eg 50 period MA:
MOD(MA(BARS=50),VALUE=10)Your privacy choices
We use cookies and similar technologies to make the site work, see how it's used, and improve it. Analytics and advertising cookies only run with your consent — see our Privacy Policy for details.