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

[amibroker] Minor Question on TimeFrames + Tiny, Tiny Bug


  • To: <amibroker@xxxxxxxxxxxxxxx>
  • Subject: [amibroker] Minor Question on TimeFrames + Tiny, Tiny Bug
  • From: "Ken Close" <ken45140@xxxxxxxxx>
  • Date: Fri, 18 Jul 2008 16:14:00 -0400
  • Authentication-results: gwout2 smtp.user=ksclose; auth=pass (LOGIN)

PureBytes Links

Trading Reference Links

Is ROC(C,1) in "inYearly" compression supposed to be the same as ROC(C,12) in "inMonthly" compression?
 

TimeFrameSet(inMonthly);

MnGain1  =  ROC(C,1);

QGain    =  ROC(C,3);

YGain    =  ROC(C,12);

TimeFrameRestore();

TimeFrameSet(inyearly);

YGain1   =  ROC(C,1);

TimeFrameRestore();

YGain2   =  TimeFrameExpand(YGain1,inMonthly);

TimeFrameSet(inQuarterly);

QGain2   =  ROC(C,1);

TimeFrameRestore();

QGain3   =  TimeFrameExpand(QGain2,inMonthly);

 
(Above copied as is from the Formula Editor window)
 
In this code, YGain calculated with ROC(C,12) produces the correct answer while YGain1 produces a different and incorrect value.
Monthly is set as the Periodicity in the AA window.
Which is why I asked the question.
 
The minor, minor bug is that "inYearly" and "inQuarterly" are not red as reserved words, even though they function correctly.  One little color bit needs to be set somewhere in the guts of the program code.
 
Ken
 
 
 
 
__._,_.___

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

__,_._,___