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

RE: [amibroker] When using TimeFrameCompress the week is starting on a Friday



PureBytes Links

Trading Reference Links

What you need is timeframeexpand(array, interval, expandfirst). Check help file for caveat for using it.


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of dawsonsg
Sent: Sunday, 6 April 2008 11:10 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] When using TimeFrameCompress the week is starting on a Friday

Hi Guys,

I have used the code below to get the weekly plots of ift rsi and it
looks ok.

There is a poblem though, when you look at the stepped values, each
value is the
same for the five days (as it is weekly) but the fist day is a Fiday
not a Monday.
Is there anything that I have to set somewhere to have this as the
monday. I
checked this back to 2004 at it appears that the week starts on
Friday.

Regards
Steve

_SECTION_BEGIN("IFT - RSI");
#include "C:\Program
Files\AmiBroker\Formulas\Include\InverseFisherTransform.afl"

wc = TimeFrameCompress( ift_rsi(5), inWeekly );

/* now the time frame is still unchanged (say daily) and our MA will
operate on daily data */
daily_ift_rsi = ift_rsi( 5 );

/* but if we call MA on compressed array, it will give MA from other
time frame */
weekly_ift_rsi = wc; // note that argument is time-compressed array

//Plot( dailyma, "DailyMA", colorRed );

weekly_ift = TimeFrameExpand( weekly_ift_rsi, inWeekly ); // expand
for display
Plot( weekly_ift, "WeeklyIFTRSI", colorBlue );

_SECTION_END();

__._,_.___

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




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

__,_._,___