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 -----
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
StaticVarSet()
----- Original Message -----
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
__._,_.___
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
__,_._,___
|