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

[amibroker] More Mysteries with TimeFrames


  • To: <amibroker@xxxxxxxxxxxxxxx>
  • Subject: [amibroker] More Mysteries with TimeFrames
  • From: "Ken Close" <ken45140@xxxxxxxxx>
  • Date: Tue, 15 Jul 2008 11:00:41 -0400
  • Authentication-results: gwout2 smtp.user=ksclose; auth=pass (LOGIN)

PureBytes Links

Trading Reference Links

Here is one I cannot figure out.
 
I write
 
Filter = 1; Buy =0;
Bars = Cum(1);
AddColumn(Bars,"Bars",1.0);
 
I set the date to the first date of the data, and I get
Bars
1
2
3
4
 
Now, I set this
 
Filter = 1; Buy =0;
Bars = Cum(1);
 
TimeFrameSet(inMonthly);
BarsM = Cum(1);
TimeFrameRestore;
BarsM = TimeFrameExpand(BarsM,inMonthly);
 
AddColumn(Bars,"Bars",1.0);
AddColumn(BarsM,"BarsM",1.0);
 
and I get
 
Bars   BarsM
1        4763
2        4763
3        4763
 
I expected
Bars   BarsM
1        0   
2        0
etc
22        1
 
What is going on?  What happened inside the TimeFrameSet section?  Why did I get this result?
I want to operate on Monthly stats and bars yet need to count the number of months since a specified start date and I cannot do it.
Help please.
 
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

__,_._,___