Use the Modulo operator. From the help file: parentheses are not used, the precedence is as follows (higher precedence listed first):
No Symbol Meaning 1 ++ Post-increment/pre-increment (i++ works like i = i + 1) 2 -- Post-decrement/pre-decrement (i-- works like i = i - 1 ) 3 [ ] Array element (subscript) operator 4 ^ Exponentiation 5 - Negation - Unary minus 6 * Multiplication 7 / Division 8 % Remainder (Modulo operator) 9 + Addition 10 - Subtraction 11 < Less than 12 > Greater than 13 <= Less than or equal to 14 >= Greater than or equal to 15 == Equal to 16 != Not equal to 17 & Bit-wise "And" (AFL 2.1+) 18 | Bit-wise "Or" (AFL 2.1+) 19 NOT Logical "Not" 20 AND Logical "And" 21 OR Logical "Or" 22 = Variable assignment operator I you don't know what modulo is then you'll need to google it. d > -----Original Message----- > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of dralexchambers > Sent: Friday, March 23, 2007 1:00 PM > To: [email protected] > Subject: [amibroker] How would I do this > > How do I find the next price that ends with xxx50 (GBPUSD) from > today's open price, so: > > Open (today) = 1.8999 > > varABOVE = 1.9050 > varBELOW = 1.8950 > > Thanks - alex > > > > Please note that this group is for discussion between users only. > > To get support from AmiBroker please send an e-mail directly to > SUPPORT {at} amibroker.com > > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > http://www.amibroker.com/devlog/ > > For other support material please check also: > http://www.amibroker.com/support.html > > Yahoo! Groups Links > > > >
