How to get independant .afl parameters in several charts , that run the same .afl code ?

0 votes
asked Jun 27, 2017 in AmiBroker by pyhrus

     I wish to get indepedant .afl parameters , when I run the same .afl code on different charts .

It appears  that .afl parameters are linked to the 'Id' number of a Chart .

The problem is that it seems we have not access to those 'Id' window graph numbers , that  appeared locked

once a windows graph has been created  .

    Hencemore  'Id' numbers seems to be generated ramdomly , sometimes keeping the same 'Id' from the pevious chart , sometimes not  , when creating a new chart .

    Anyone can propose a real solution to get such a  functionality with AmiBroker ?

       Using templates for example , or an else way ?

1 Answer

0 votes
answered Jun 27, 2017 by fxshrat (1,200 points)

If you want independent chartIDs then you have to use File - New - Blank chart or Blank pane

Apparently you are using "Default chart" multiple times. Or you have applied a saved chart template multiple times.

You can check chartID via CTRL+R and then if being in parameters window go to Axes&Grids tab and at the bottom you can see the chart id of a pane.

Alternatively you can check chartID using following code

printf( "Chart ID: %g", GetChartID() );

then open Window - Interpretation to see output.