I think this does what you want, thanks to Dick Hoierman.   Ron D
basis = C; // ema(C, 9);

perf1 = basis / Ref(basis, -1) * 100 - 100;

perf5 = basis / Ref(basis, -5) * 100 - 100;

perf30 = basis / Ref(basis, -30) * 100 - 100;

//AddTextColumn( FullName(), "FullName" ); 

AddColumn (Close, "Close",1.2);

AddColumn (Ref(Close,-1), "Close-1",1.2);

AddColumn(perf1, "perf1%", 1.2);

AddColumn(perf5, "perf5%", 1.2);

AddColumn(perf30, "perf30%", 1.2);

AddColumn(Volume, "Volume", 1.0);

Filter = 1; // dummy



  ----- Original Message ----- 
  From: John 
  To: [email protected] 
  Sent: Friday, July 13, 2007 3:40 PM
  Subject: [amibroker] Formula that will give me the % change in stock price


  Hi 
  I am looking for a formula that will give me the percentage change in a 
  stocks price during a period i can select of week - month or year.
  I am hoping there is an existing formula that i can use in AmiBroker..



   

Reply via email to