Thanks to everyone. I have the formula working now. I appreciate the help.
Tom --- In [email protected], Graham <[EMAIL PROTECTED]> wrote: > > " I am trying to use a condition that will only be true if the StochK() > has dropped below 20 from 89 within 15 bars.." > > I assume this means you want to know the bars it took to fall below 20 > if the StochK came from above 89 in that fall? > > Try this > > Drop = BarsSince(StochK() >= 89); > Condition3 = Cross( 20, StochK()) and Drop < 15; > > This does not look that the last peak of StochK was >89, just looks > back to the last time it was >=89, but for your purposes this should > be sufficient, hopefully. > > -- > Cheers > Graham > AB-Write >< Professional AFL Writing Service > Yes, I write AFL code to your requirements > http://e-wire.net.au/~eb_kavan/ab_write.htm > > > On 3/7/06, professor77747 <[EMAIL PROTECTED]> wrote: > > I am trying to use a condition that will only be true if the StochK() > > has dropped below 20 from 89 within 15 bars. I have tried these > > statements. > > > > Drop=HighestBars(StochK() > 80); > > Condition3 = Drop < 15; > > > > However, when I add them to my formula, there are no buy signal when I > > had them before I added these lines of code. > > > > Can anyone help/ > > > > Thanks, > > Tom > > > > > > > > > > > > > > > > Please note that this group is for discussion between users only. > > > > To get support from AmiBroker please send an e-mail directly to > > SUPPORT {at} amibroker.com > > > > For other support material please check also: > > http://www.amibroker.com/support.html > > > > > > Yahoo! Groups Links > > > > > > > > > > > > > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> Try Online Currency Trading with GFT. Free 50K Demo. Trade 24 Hours. Commission-Free. http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM --------------------------------------------------------------------~-> Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For other support material please check also: http://www.amibroker.com/support.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: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
