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

RE: [amibroker] Referencing a Variable from One Indicator in another Indicator



PureBytes Links

Trading Reference Links

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: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of umrperumal
Sent: Saturday, November 17, 2007 3:20 AM
To: amibroker@xxxxxxxxxxxxxxx
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






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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/