[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re : EL question



PureBytes Links

Trading Reference Links

Dans un courrier daté du 15/06/98 19:58:01  , vous avez écrit :

<< 
 input: dat(980615), tim(1430), barsbak(20);
 var: barnum(0), toggle(0)
 
 if date = dat and time = tim then begin
   barnum = barsbak;
   toggle = 1;
 end else
 if toggle = 1 then barnum = barnum + 1;
 
 {then you can refer to close[barnum]}
 
 >   Would someone tell me how to reference a bar that is x number of bars
 > back from a date and time that are inputs? In other words, say the bar has
 > the date of 980615 and the time of 1430, on a 20 minute chart I want to
 > reference the 20th bar back from that. This is for an indicator I am
writing.
 >   Thanks any help on this,
 > David Cicia
 
 -- 
    Dennis
 
  >>

============================================
Or :
if date = dat and time = tim then value1=something[20]; 

!!!!!

Pierre Orphelin
www.sirtrade.com