Hello, Worked through this a couple months ago, use StaticVarSet and StaticVarGet. Then use RequestTimedRefresh( X ) (thank you Graham) if doing all this during non trading hours.
Jerry Gress Stockton, Ca. -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of umrperumal Sent: Saturday, November 17, 2007 3:20 AM To: [email protected] Subject: [amibroker] Referencing a Variable from One Indicator in another Indicator Hi I am having a custom indicator titled "Premium Indicator". This indicator has two variables namely 1) FuturesPremium 2) AveragePremium (Signal Line - Mov average of the first variable). I am using these two variables in 4 other indicators. I have repeated the formulas in all the indicators. When any change is to be made in the formula / input, I have to make the change in all the 5 indicators which is cumbersome. Is there any way by which I can reference the variables from the master indicator, in the other 4 indicators. I have added #include function as under: #include "C:\Program Files\AmiBroker\AFL\PremiumIndicator.afl" Beyond this I do no know how to proceed. Shall be thankful if anybody can help me solve the problem. With kind regards UMR Perumal Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ For other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links
