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

[amibroker] Re: Session times & daily pivots - strange behaviour



PureBytes Links

Trading Reference Links

Anyone with any insights into this..?

I'd appreciate it.

--- In amibroker@xxxxxxxxxxxxxxx, "sidhartha70" <sidhartha70@xxx> wrote:
>
> Hi,
> 
> I'm experiencing some slightly strange behaviour around defined
> session times & daily pivot code.
> 
> The three key lines of code, which are supposed to retrieve the last
> sessions high, low & close are,
> 
> H1=SelectedValue(TimeFrameGetPrice( "H", inDaily, -1 ));
> L1=SelectedValue(TimeFrameGetPrice( "L", inDaily, -1 ));
> C1=SelectedValue(TimeFrameGetPrice( "C", inDaily, -1 ));
> 
> 
> This works absolutely fine when I have "database
> settings>intraday>daily time compression uses>exchange time" selected.
> However, if try and set my own session times with "database
> settings>intraday>daily time compression uses>day/night session times
> as defined above", and I set Day 09:30 - 16:15 and Night 16:30 -
> 09:29, those three lines of code above seem to return excatly the same
> value (i.e. the high, low and close are seen as being the same).
> The even stranger thing is, this happens when displaying intraday
> charts (which is obviously where pivots are useful)... but if I switch
> to a daily chart, I now get the correct H1,L1 and C1 above.
> 
> Any ideas what's going on here...?
> 
> TIA
>



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

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/