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

[amibroker] Re: Simple Interval function programming.....



PureBytes Links

Trading Reference Links

I found the problem and reposted the fixed code to get the desired 
results I was looking for...
Mark

TH=Interval(); 

rj15=IIf(TH<=900 and TH > 890,9,0); 

rj30=IIf(TH<=1800 AND TH > 1750,18,rj15); 

rj45=IIf(TH<=2700 AND TH > 2650,21,rj30); 

Plot(rj45,"",colorRed,styleLine); 



--- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" <ajf1111@xxxx> 
wrote:
> Mark,
>  
> Try this:
>  
> TH=Interval()/60;
>  
>  
>  
> -------Original Message-------
>  
> From: amibroker@xxxxxxxxxxxxxxx
> Date: Saturday, May 24, 2003 6:23:25 PM
> To: amibroker@xxxxxxxxxxxxxxx
> 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);
>  
>  
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>  
>  
>  
>  
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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 the Yahoo! Terms of 
Service.


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