PureBytes Links
Trading Reference Links
|
At 01:16 PM 10/5/2004, you wrote:
>Also,
>have another look at the reset flag:
>
>a.. atcFlagResetValues = 32 - reset values at the beginning of scan (not
>required if you use atcFlagDeleteValues)
I thought about these two flags last night, in regard to this whole
issue. Frankly, I don't understand the difference between FlagResetValues
and FlagDeletValues. All the documentation says is:
* atcFlagDeleteValues = 1 - deletes all previous data from composite
symbol at the beginning of scan (recommended)
* atcFlagResetValues = 32 - reset values at the beginning of scan (not
required if you use atcFlagDeleteValues)
I'm not sure what the difference is between the word "deletes" and "reset"
above.
On another subject, here's some AFL function (probably buggy) pseudocode
off the top of my head.
function AssignToComposite(AssignValue, ATCTicker, ATCField, optional:ATCFlag )
{
//Get value of composite array's field
CompArrayVal = Foreign(ATCTicker, ATCField);
//Add the inverse of the value back into the composite array's field
in order to reset field to zero
AddToComposite(-CompArrayVal, ATCTicker, ATCField, ATCFlag);
//Now assign the LocalArray to the composite array's field so that it
will be statically available at the beginning of the next Explore iteration
AddToComposite(AssignValue, ATCTicker, ATCField, ATCFlag);
// return nothing
}
function ResetAllCompositeFields( AssignValue, ATCTicker, optional:ATCFlag )
{
AssignToComposite(AssignValue, ATCTicker, "O", optional:ATCFlag );
AssignToComposite(AssignValue, ATCTicker, "H", optional:ATCFlag );
AssignToComposite(AssignValue, ATCTicker, "L", optional:ATCFlag );
AssignToComposite(AssignValue, ATCTicker, "C", optional:ATCFlag );
AssignToComposite(AssignValue, ATCTicker, "I", optional:ATCFlag );
AssignToComposite(AssignValue, ATCTicker, "V", optional:ATCFlag);
// return nothing
}
-Paul
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> 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/
|