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

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



PureBytes Links

Trading Reference Links

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