HI,
 I wanted to automate Explore() in VB for Amibroker. I was able to do so for a 
watchlist. how do I do it for the "current symbol" or for only 1 symbol. 

e.g. Code below.. 
        AB = CreateObject("Broker.Application")
        AA = AB.Analysis
        AA.ClearFilters()
        AA.Filter(0, "watchlist") = 6   ' /* watch list number */; 
        AA.ApplyTo = 2                  ' use filter

        ' set range
        AA.RangeMode = RngMode.RngMode_LastNDays           ' all quotes 
        AA.RangeN = AbLastNDays  '- defines N (number of bars/days to backtest)
        'AA.RangeFromDate()                '- defines "From" date
        'AA.RangeToDate()                  '- defines "To" date

        AA.LoadFormula(AflFile)
        AA.LoadSettings(AbSettings)
        AA.Explore()

will perform Explore on Watchlist 6 for last N days. 
now 
instead of performing on watchlist 6 i just want to perform it on one stock 
symbol. How do I do that.. 
I see 2 possible solutions
1) set current symbol only property somewhere ?
2) clear a watchlist, set it to have only one symbol..use it..

Can any one plz suggest, how can i do either of the two?

Thank You, 
Gajanan



Reply via email to