Eski:

Here is an example of doing what you indicated, i.e., reference a moving 
average coded in the price pane in a 2nd pane.  The users guide discusses these 
static variable functions, as well as the var...() type functions for dynamic 
variables.  The library has many examples that use these functions.

Price pane:
x = ma(c, 13);
staticvarset("pricepanema", x);
plot(x, ....

2nd pane:
mafrompricepane=staticvarget("pricepanema");
plot(mafrompricepane, .... //same plot as price pane


Bill
  ----- Original Message ----- 
  From: Eski Movsinuit 
  To: [email protected] 
  Sent: December 07, 2009 3:24 PM
  Subject: Re: [amibroker] how to reference another pane's data array





  Hi fimdot,

  I don't get it.

  What I am trying to do is like this:
  On the price pane, I have array1 and array2 defined. (Array1 and Array2 could 
be have many complicated code and many parameters.)

  On a separate pane, my code need to reference array1 and array2. If I repeat 
the same code in this pane, I can get the same array1 and array2. However, when 
I change the parameters for array1 and array2 in price pane, I will have to do 
the same parameter change on the other pane again.

  So, is there a way to simply reference the arrays from price pane so that 
they are in sync all the time? Is this possible?



  Eski



    -----Original Message-----
    From: [email protected]
    Sent: Mon, 7 Dec 2009 15:12:47 -0500
    To: [email protected]
    Subject: Re: [amibroker] how to reference another pane's data array


      

    StaticVarSet()
      ----- Original Message ----- 
      From: Eski Movsinuit 
      To: [email protected] ; [email protected] 
      Sent: December 07, 2009 1:49 PM
      Subject: [amibroker] how to reference another pane's data array


      Hi, 

      In AmiBroker, is it possible to plot by referring data array from another 
pane?

      For example:
      I have 10-Daily MA and 20-Daily MA in the price pane. I would like to 
plot the difference between these 2 MAs as histogram style in a separate pane 
under the price pane. In stead of re-coding the 10-Daily MA and 20-Daily MA, is 
there a way to reference the MA arrays from the price pane's code?
      Thank you.

      Eski 
--------------------------------------------------------------------------

       
      Free 3D Marine Aquarium Screensaver
      Watch dolphins, sharks & orcas on your desktop! Check it out at 
www.inbox.com/marineaquarium



  

Reply via email to