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

[amibroker] activeX ..how to perform EXPLORE() on "current symbol" only using ActiveX`



PureBytes Links

Trading Reference Links

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





------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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/