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

[amibroker] Q: AddToComposite in Explore does not refresh in loop



PureBytes Links

Trading Reference Links

Hi Group,

Via MC, I generate a large number of simulated prices in a loop. In 
order to store these and apply buy/sell rules in Explore I use, 
within the loop:

AddToComposite(SimPrice,"~SimPrice","X",23);

SetForeign("~SimPrice",True,True);

Buy= . . . etc.

PFEq=Equity();

RestorePriceArrays();

I had hoped that by using the ATC this way (23 is the combination of 
atcFlagEnableInExplore and atcFlagDefaults), I could overwrite 
the "~SimPrice" in each iteration within Explore. This turns out not 
to be the case, since my PFEq turn out to be the same, i.e. seem 
applied to a "fixed" ~SimPrice. 

Obviously I DO NOT want to generate thousands of "~SimPrice" symbols 
via Scan and something like 
AddToComposite(SimPrice,"~SimPrice"+NumToStr(n,1.0),"X",23), with n 
reflecting the iteration.

What am I doing wrong? Any thoughts/suggestions are most welcome.

Patrick







------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hu2702n/M=362131.6882500.7825259.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1124364338/A=2889190/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Put more honey in your pocket. (money matters made easy) Welcome to the Sweet Life - brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

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

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