Natural language date/time for trading robot DSL

del.icio.us Reddit Slashdot Digg Facebook Technorati Google StumbleUpon Yahoo Bloglines Bookmark.it Ask Mister Wong Netvouz

In previous example of using Opentick history quotes plugin for providing time interval i used Time variables like this:

Time.now and (Time.now-24.3600)

I thinks, that more convenient way is using natural language date/time like this:

3 years ago, 5 months before now, 7 hours ago, 7 days from now, 1 year ago tomorrow, 3 months ago saturday at 5:00 pm

The main disadvantage of this way is using quotes in DSL code to separate natural language date/time string. It is Ruby language’s restriction.

Tomorrow i’ll try to add natural languae date/time support in our trading robot DSL.

Leave a Reply