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

[amibroker] Re: addtocomp && filling holes



PureBytes Links

Trading Reference Links





Below is coding that allows the  <FONT 
size=4>Seq10e2up2e10 OR SeqR14toR14e15 conditions to 
have occurred upto three days before the RSIEMA2cross occurs.  Is 
there a lot more elegant and simple way to do this?<FONT 
size=3>
An  IsNotThere(Array) would do what I want.  Is there one that I 
missed that can be made to work.  I still have not been able to grasp doing 
loops.  If looping is a good way to do this, I would sure appreciate seeing 
the below IIF coding made into a looping function.  Then, by knowing what 
it is designed to do, I should be able to finally understand how looping 
works.  Ron D
Day3a<FONT 
size=4>=IIf(<FONT 
color=#0000ff size=4>Ref(Seq10e2up2e10 OR 
SeqR14toR14e15,-3<FONT 
size=4>),<FONT face="Bookman Old Style" color=#ff00ff 
size=4>1,0<FONT 
size=4>);
Day3<FONT 
size=4>=IIf(<FONT 
color=#0000ff size=4>Ref(Seq10e2up2e10 OR 
SeqR14toR14e15,-<FONT face="Bookman Old Style" color=#ff00ff 
size=4>3),<FONT face="Bookman Old Style" 
color=#ff00ff size=4>1,<FONT color=#ff00ff 
size=4>0);
Day2a<FONT 
size=4>=IIf(<FONT 
color=#0000ff size=4>Ref(Seq10e2up2e10 OR 
SeqR14toR14e15,-1<FONT 
size=4>),<FONT face="Bookman Old Style" color=#ff00ff 
size=4>1,<FONT face="Bookman Old Style" 
size=4>day3a);
Day2<FONT 
size=4>=IIf(<FONT 
color=#0000ff size=4>Ref(Seq10e2up2e10 OR 
SeqR14toR14e15,-<FONT face="Bookman Old Style" color=#ff00ff 
size=4>2),Day<FONT face="Bookman Old Style" 
size=4>3,0<FONT 
size=4>);
Day1a=<FONT face="Bookman Old Style" color=#0000ff 
size=4>IIf(<FONT 
face="Bookman Old Style" color=#0000ff size=4>Ref<FONT 
face="Bookman Old Style" size=4>(Seq10e2up2e10 OR 
SeqR14toR14e15,-<FONT face="Bookman Old Style" color=#ff00ff 
size=4>1),Day2,Day2a);
Day1=<FONT face="Bookman Old Style" color=#0000ff 
size=4>IIf(<FONT 
face="Bookman Old Style" color=#0000ff size=4>Ref<FONT 
face="Bookman Old Style" size=4>(<FONT face="Times New Roman" 
size=4>Seq10e2up2e10 OR SeqR14toR14e15<FONT 
face="Bookman Old Style" size=4>,-<FONT face="Bookman Old Style" 
color=#ff00ff size=4>1<FONT face="Bookman Old Style" 
size=4>),Day2,<FONT face="Bookman Old Style" color=#ff00ff 
size=4>0);
Day0a=<FONT face="Bookman Old Style" color=#0000ff 
size=4>IIf(<FONT 
face="Times New Roman" size=4>Seq10e2up2e10<FONT face="Bookman Old Style" 
size=4> OR Seq<FONT face="Times New Roman" 
size=4>R14toR14e15,Day1,Day1a);
Day0=<FONT face="Bookman Old Style" color=#0000ff 
size=4>IIf(<FONT 
face="Times New Roman" size=4>RSIEMA2cross<FONT face="Bookman Old Style" 
size=4>,Day0a,<FONT face="Bookman Old Style" color=#ff00ff 
size=4>0<FONT face="Bookman Old Style" 
size=4>);


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








Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.