[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] how to reference another pane's data array


  • Date: Mon, 7 Dec 2009 20:34:56 -0500
  • From: "wavemechanic" <fimdot@xxxxxxxxxxxxxx>
  • Subject: Re: [amibroker] how to reference another pane's data array

PureBytes Links

Trading Reference Links



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


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

 

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
3D Marine Aquarium Screensaver Preview
Free 3D Marine Aquarium Screensaver
Watch dolphins, sharks & orcas on your desktop! Check it out at www.inbox.com/marineaquarium


__._,_.___


**** 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/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___