[amibroker] Re: Exploration of recent IPOs

 

Hi George


This should get you what you're after:

DateofFirstBar = ValueWhen(BarIndex() == 0, DateTime());
DateofLastBar = ValueWhen(BarIndex() == LastValue(BarIndex()), DateTime());

// Months calculated as date difference in seconds divided by average seconds in a month
MonthsofHistory = DateTimeDiff(DateofLastBar, DateofFirstBar) / 2629800; 

Filter = Status("LastBarInRange") AND MonthsofHistory <= 3; // Displays a single row per symbol
AddColumn(DateofFirstBar, "Date of First Bar", formatDateTime);
AddColumn(DateofLastBar, "Date of Last Bar", formatDateTime);
AddColumn(MonthsofHistory, "Months of History", 1.1);


Cheers
Alan
Helixtrader.com

__._,_.___

Posted by: alan.clement@gmail.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

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


.

__,_._,___


EmoticonEmoticon