PureBytes Links
Trading Reference Links
|
Hello,
Always remember that = is ASSIGNMENT operator.
You are using ASSIGNMENT instead of equality check ( == )
so your code overwrites values retreived by Interval() call.
TH=Interval();
rj15=IIf(TH == 900,9,0); // Use == (equality check) instead of = (assignment) !
rj30=IIf(TH == 1800,18,rj15);
rj45=IIf(TH == 2700,21,rj30);
Plot(rj45,"",colorRed,styleLine);
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "mleonsprint" <mleonsprint@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, May 25, 2003 12:23 AM
Subject: [amibroker] Simple Interval function programming.....
> I programmed up something simple (I thought) using the interval
> function so that when different intervals were being used the
> indicator would adjust to it... Except my interval does not seem to
> be changing when I am using different time frames, Do I have it
> coded wrong? Any thoughts?
>
> Thanks for your help
>
> Mark
>
> TH=Interval();
>
> rj15=IIf(TH=900,9,0);
>
> rj30=IIf(TH=1800,18,rj15);
>
> rj45=IIf(TH=2700,21,rj30);
>
> Plot(rj45,"",colorRed,styleLine);
>
>
>
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/CNxFAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|