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

[amibroker] Re: Synchronize zoom levels with static variables and ZoomToRange



PureBytes Links

Trading Reference Links

Thanks very much, Herman, that gives me something to chew on! I'm in 
awe of folks with programming skills that get so much out of the 
program.

And I am sure willing to put some of my own effort in but allow me to 
reach back should the need arise.

On a side note I am surprised that this feature (synchronizing Zoom 
Ranges in different windows) is, if not a standard feature, then at 
least something other users must wished and/or developed before me.

-treliff

--- In amibroker@xxxxxxxxxxxxxxx, "Herman" <psytek@xxx> wrote:
>
> This might help:
> 
> http://www.amibroker.org/userkb/2007/06/28/zoom-to-range-
applications/
> 
> best regards,
> herman
> 
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]On
> Behalf Of treliff
> Sent: July 30, 2008 12:15 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Synchronize zoom levels with static variables 
and
> ZoomToRange
> 
> 
> I would appreciate some help from more experienced programmers.
> 
> Assume several chart windows open and Symbol- as well as Interval-
> linked. Challenge is to link the View Ranges, or Zoom levels: when 
> zooming in/out or scrolling back/forth in any chart window all 
others 
> would follow suit right away. (Personally I am used to zoom with 
> Ctrl+"+" and Ctrl+"-" and scroll with PageDown and PageUp keys.)
> 
> Marcin at support help me on the way by providing this code:
> 
> _SECTION_BEGIN("ZOOM");
> 
> AB = CreateObject("Broker.Application");
> AW = AB.ActiveWindow;
> 
> startDate = ParamDate("startDate", "2006-01-01", 1);
> endDate = ParamDate("endDate", "2006-06-01", 1);
> trigger = ParamTrigger("trigger", "ZOOM IN");
> if( trigger ) AW.ZoomToRange( startDate , endDate);
> 
> _SECTION_END();
> 
> which, when added to to any window, enables triggering the zoom 
level 
> from the parameters dialogue.
> 
> The additional step necessary would be to use static variables to 
> pass the zoom dates from one window to another (i.e. set the static 
> variable from one window, then in others read it and adjust the 
zoom 
> level).
> 
> This is way beyond my programming expertise, and hope someone can 
> help me with what explicit code to add to the various chart windows.
> 
> Thanks very much in advance!
> 
> -treliff
> 
> 
> ------------------------------------
> 
> 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
>



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

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/