Hi, Sorry, You can replace "periods" by 50 if you wish. I just forgot to include that.
barhh1 = HHVBars( High, *50* ) ; bi1 = BarIndex() ; y11 = LinearReg( C, barhh ) ; y01 = LinRegIntercept( C, barhh ) ; sl1 = LineArray( bi1-barhh1+0, y01, bi1, y11, 0, True ); Still, it is not working, even if barhh1 is defined... Louis 2008/9/16 Ara Kaloustian <[EMAIL PROTECTED]> > y11 and y01 use "barhh" which is not defined. > > You have defined "barhh1" > > > > ----- Original Message ----- > *From:* Louis P. <[EMAIL PROTECTED]> > *To:* [email protected] > *Sent:* Tuesday, September 16, 2008 2:46 PM > *Subject:* [amibroker] What is wrong? > > Hi, > > What is wrong in the following formula? > > barhh1 = HHVBars( High, Periods ) ; > bi1 = BarIndex() ; > y11 = LinearReg( C, barhh ) ; > y01 = LinRegIntercept( C, barhh ) ; > sl1 = LineArray( bi1-barhh1+0, y01, bi1, y11, 0, True ); > > > Thanks, > > Louis > > p.s. There was "Selectedvalue" in the first four lines but I don't want to > plot it on the chart based on where I am on that chart, but simply set the > variable so I can use the stuff later. > > >
