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

Re: [GT] backtesting intraday question



godbillot sam wrote:
I all.

I'm trying to backtest some intraday data, using DB:Textbut I've some issues.
backtest.pl don't like the " --timeframe=1min":
./backtest.pl --timeframe=1min toto 020408
Can't create  1min  timeframe ...

The display_indicator.pl works fine.
I was wondering if someone is using the standard backtest.pl for intradays data ?

hello there sam

intraday stuff was a rather late add-on to gt. i'm not too sure that all the
inter-related modules have been completely updated to support it, especially
in the area that backtest.pl touches.

without access to intraday data it will be difficult to diagnose and fix here.
maybe someone else out there has the time, data and inclination to help.

some things that i think are less than good and could be fixed:
*) timeframe names (eg day, week, month, ...) seem to be case sensitive
    that's not very nice
*) the somewhat opposite of GT::DateTime::name_to_timeframe would be
    GT::DateTime::timeframe_to_name, but no, it is GT::DateTime::name_of_timeframe
*) available_timeframe returns something awfully funny -- ahha it's a hash
  -- you cannot seem to assign it to a variable. if you execute it in a print
    (eg print STDERR $calc->available_timeframe();
  you get a list of digits '7090' so you cannot even put a loop around it
  to convert each one to a name -- argh!!!

sam -- i don't recall if you are using market data that has intraday info.
so i'll put this out there -- you can convert only to longer timeframes
day -> week, month ... but not the other way.


aloha

ras


Thx


       <hr size="1"> Envoyé avec <a href="http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52423/*http://fr.docs.yahoo.com/mail/overview/index.html";>Yahoo! Mail</a>.<br>Une boite mail plus intelligente. </a>