PureBytes Links
Trading Reference Links
|
Herman,
I remember reading about this in the 4.89.0 beta release notes. Presumably
your flags are set correctly and you have 4.80.0?
This is from the release notes:
Added ability to create composites (using AddToComposite) inside indicator
code via new atcFlagEnableInIndicator flag (FC#: 191)
--
Terry
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of Herman
Sent: Saturday, January 20, 2007 13:44
To: AmiBroker YahooGroups
Subject: [amibroker] Static/Persistent Arrays
I would like to use Composites to create Static (Persistent) arrays, why
doesn't this work from an indicator?
Sometimes it works, sometimes it accumulates values, sometimes I need to
click APPLY, and sometimes it just stores the last value.
thanks,
herman
SaveComp = ParamTrigger("Save Composite","SAVE");
ClearComp = ParamTrigger("Clear Composite","CLEAR");
if( SaveComp)
{
AddToComposite(C,"~Test123","X",atcFlagDeleteValues|atcFlagCompositeGroup|at
cFlagEnableInIndicator);
}
else if( ClearComp)
{
AddToComposite(0,"~Test123","X",atcFlagDeleteValues|atcFlagCompositeGroup|at
cFlagEnableInIndicator);
}
Plot(C,"",1,128);
Cx = Foreign("~Test123","x");
Plot(Cx,"",4,1);
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.2/641 - Release Date: 1/20/2007 10:24 AM
|