You might get some ideas here:
http://www.amibroker.org/userkb/2007/06/28/zoom-to-range-applications/
also read up on RequestTimedRefresh( 1 ); and Status()
best regards,
herman
For tips on developing Real-Time Auto-Trading systems visit:
http://www.amibroker.org/userkb/
Monday, April 7, 2008, 12:26:48 PM, you wrote:
> Can anyone tell me if this is meant to be possible or can this only be
> run via jscript or _vbscript_?
> The following code causes a constant refresh maxing the CPU until I
> close the chart. This code is in an afl file plotted on a chart (price
> plot not shown).
> AB = CreateObject("Broker.Application");
> AW = AB.activeWindow;
> if (AW.zoomToRange("6/1/2006", "30/1/2006"))
> _TRACE("Zoom successful");
> The _TRACE statement is run constantly.
> It makes no difference if I run it only when status = actionIndicator
> either.
> Cheers,
> Julian.
> ------------------------------------
> 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
> 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/
> <*> 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/
__._,_.___
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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
__,_._,___
|