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

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



PureBytes Links

Trading Reference Links

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