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

Re: [amibroker] Re: run to cursor



PureBytes Links

Trading Reference Links

Title: Re: [amibroker] Re: run to cursor

I don't think the code allowed for switching time frames. Note that the BarIndex(), on which this code is based, changes when you do that.


You would have to have a look at the code and rewrite it to use DateTime() and Interval().


May not be worth the trouble...


best regards,

herman



Friday, November 14, 2008, 4:36:57 PM, you wrote:


> i actually noticed it after i posted the message. however i find a odd

> behaviour.

> for eg.

> i have a daily chart where my cursor is 8/10/2008

> i now change tab to my 15 minute chart where if i scroll i will find 

> that the cursor is active at the first bar on 8/10/2008


> however in zoom functions 

>  BI = BarIndex();

>     SBI = SelectedValue( BI );

> _TRACE("Selectd Value" + NumToStr(SBI));


> the value outputted is the last bar on the 15 minute chart. 


> because of this, ZoomToIndex( FirstBarIndex, LastBarIndex )

> always shows only the last bars on the chart.


> according to the docs SelectedValue should return the value where my 

> cursor is active. why is it not returning the barindex on the 8/10/2008

> where my cursor is active.






> ------------------------------------


> **** IMPORTANT ****

> This group is for the discussion between users only.

> This is *NOT* technical support channel.


> *********************

> TO GET TECHNICAL 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/



__._,_.___

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

*********************
TO GET TECHNICAL 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

*********************************




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___