Or you could design your code in such a way that it wouldn't trigger buy and sell when OHLC are close...
--- In [email protected], "Terry" <[EMAIL PROTECTED]> wrote: > > If you are getting simultaneous buy and short triggers, design your code > to "pre-trade" the system, possibly using a loop, but not necessarily. > Just use the identical code, similar to this: > > myBuy = cond1; > mySell = cond2; > myShort = cond3; > myCover = cond4; > > Then do this (shown in pseudo code) > > If myBuy AND myShort THEN myBuy = myShort = False; > > Buy = myBuy; > Sell = mySell; > Short = myShort; > Cover = myCover; > > -- > Terry > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of bestbobleonard > Sent: Saturday, August 26, 2006 08:58 > To: [email protected] > Subject: [amibroker] OHLC range is narrow (flat) and causing false > signals (got a fix?) > > > A frequent cause of my errors, is when > OHLC is in such a narrow range then almost any technical screen > (both buy and sell) will be triggered. > > For example: CNS between 6/2/06 and 6/9/06. > > I can look at this make a judgment that it is not significant > but I was wondering if someone has a method that can just skip > these annoying cases?? > > Thanks > BobLeonard > > > > > > > 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 > 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/
