try Filter = 1; -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com
On 01/01/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Try changing it a bit. No sure but it should work: > IndexNum1 = Lastvalue(ValueWhen(Buy==True,BarIndex(),1)); > same for IndexNum2 ... > > > ---- Mohammed <[EMAIL PROTECTED]> wrote: > > Hi Ara, > > > > I Write the following Code, > > > > Buy = Cross(MACD(), Signal()); > > Sell = Cross(Signal(), MACD()); > > > > IndexNum1 = ValueWhen(Buy==True,BarIndex(),1); > > IndexNum2 = ValueWhen(Sell==True,BarIndex(),1); > > > > > > Filter = 0; > > > > AddColumn( Close, "Close" ); > > AddColumn( IndexNum1 , "IndexNum1"); > > AddColumn( IndexNum2 , "IndexNum2"); > > > > > > But nothing show? > > > > Please help. > > Regards,
