Cond can never be true since you are looking for today's high to be lower than the lowest high of last 6 bars. The lowest high value includes today's high, so it will not work
----- Original Message ----- From: "gonzagags" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, February 29, 2008 9:58 AM Subject: [amibroker] simple doubt > Hello > I just cannot understand many things > I've tried this very simple code: > //--------------------------------------- > cond1=H < LLV( High, 6 ); > cond=Cond1; > Buy=Ref(Cond, -1); > BuyPrice=Max (Ref(H,-1),O); > //--------------------------------------- > > and there's no buy! > I try the analysis window, and the system never buy, never sell,.. no > response > > Where could be the problem? in setings, somewhere? > > Thanks > > > > > > 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > http://www.amibroker.com/devlog/ > > For other support material please check also: > http://www.amibroker.com/support.html > > Yahoo! Groups Links > > >
