[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Re: plot nr7 on a indicator-> == not on any docs



PureBytes Links

Trading Reference Links

Should this "Reminder (Modulo operator)" actually be "Remainder (Modulo
operator)"?


-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com

On 03/02/07, Tomasz Janeczko <groups@xxxxxxxxxxxxx> wrote:
>
>  Hello,
>
> It *is* documented in AFL Reference manual (press F1).
>
> http://www.amibroker.com/guide/a_language.html
>
>
>  Operator precedence and the parentheses
>
> AFL supports parentheses in formulas.
>
> Parentheses can be used to control the operation precedence (the order in
> which the operators are calculated). AmiBroker always does operations within
> the innermost parentheses first. When 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 % Reminder (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
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- From: "murthysuresh" <money@xxxxxxxxxxxxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Saturday, February 03, 2007 3:14 PM
> Subject: [amibroker] Re: plot nr7 on a indicator-> == not on any docs
>
> > This is cool. thanks Graham.
> >
> > However i dont  find == feature in any of the docs. Are there hidden
> > undocumented features in amibroker that needs to be revealed? Any
> > pointers in this direction would be appreciated.
> >
> >
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxx> wrote:
> >>
> >> Bracket count was necessary, and the == instead of = to equate 2
> > values
> >> One thing remember the rest of the plotshapes function inputs in
> > case
> >> you want to plot them on some other type of chart.
> >>
> >> rang=High-Low;
> >> nr7=IIf(rang==LLV(rang,7),shapeDigit7,shapeNone);
> >> PlotShapes(nr7,colorGreen,0,L,0);
> >>
> >> also here is another way of writing it
> >> rang=High-Low;
> >> nr7=rang==LLV(rang,7);
> >> PlotShapes(nr7*shapeDigit7,colorRed,0,L,-16);
> >>
> >>
> >>
> >>
> >> On 03/02/07, murthysuresh <money@xxx> wrote:
> >> > Hello
> >> > I am trying to plot a NR7- smallest range in 7 days. But i keep
> > getting
> >> > error.
> >> > here is my code. can someone point where i did wrong.
> >> >
> >> > rang=High-Low;
> >> > nr7=IIf(rang=LLV(rang,7),shapeDigit7,shapeNone));
> >> > PlotShapes(nr7,colorGreen);
> >> >
> >> >
> >> >
> >> >
> >> > 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
> >> >
> >> >
> >> >
> >> >
> >>
> >>
> >> --
> >> Cheers
> >> Graham
> >> AB-Write >< Professional AFL Writing Service
> >> Yes, I write AFL code to your requirements
> >> http://www.aflwriting.com
> >>
> >
> >
> >
> >
> > 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
> >
> >
> >
> >
> > 
>

Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.22/666 - Release Date: 2/3/2007 3:31 PM