Hello,

Change 200 in the param function with any higher number you want. Time to read 
the User's Guide:
http://www.amibroker.com/f?param

P = ParamField("Price field",-1);

Periods = Param("Periods", 15, 2, 200, 1, 10 ); // change 200 with anything you 
want to increase maximum parameter

Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), 
ParamStyle("Style") ); 


Best regards,
Tomasz Janeczko
amibroker.com
  ----- Original Message ----- 
  From: Jan Malmberg 
  To: [email protected] 
  Sent: Sunday, April 06, 2008 12:04 AM
  Subject: [amibroker] Maximum bars question.


  Hi everyone,

   

  I was wondering, AmiBroker only allows 200 bars to be used when displaying 
Moving Averages for instance, although the program will display more than that 
if you add tons of MAs, which I've tried.

   

  My question is, when writing AFL, can I ask the program to use more than 200 
daily bars in the formulas, or should I use some neat coding trick to use 
weekly values mixed with daily values (which I will then have to do).

   

  Best regards,

  Jan Malmberg

   

Reply via email to