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

[amibroker] Re: Weekly bar but not on Friday !



PureBytes Links

Trading Reference Links

shift = Param("shift", 1, 1, 5, 1); 
CompressedArray = TimeFrameCompress( Ref( Close, -shift), inWeekly); 
Plot( Close, "Close", colorBlack ); 
Plot( Ref( TimeFrameExpand( CompressedArray , inWeekly ), shift), "expanded", colorRed); 

Title = "Day of week: " +DayOfWeek();

--- In amibroker@xxxxxxxxxxxxxxx, "Carl Vanhaes" <carl.van@xxx> wrote:
>
> Hi, 
> 
> I think that with AFL it should be possible to chart a weekly bar with the possibility to choose the start/end of the bar, unlike most of the charting package that oblige the user to use Friday as the end of the weekly period. This is ridiculous especially when the week is only 4 days like this week in Europe or next week in the USA. Any idea how to code this in AFL? Something like weekly bar = bar of the last 5 daily bars??
> 
> Thank you,
> 
> Carl
>




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

**** 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/