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

[GT] Re: Removing dependency on libxml when it is not used



I just applied this to HEAD.

I've done some testing on it and found a further file which needed to
be patched for this to work (GT/Backtest/Spool.pm)
If it still breaks something for please send in a test case and I'll
have a look at it.


On Wed, Jul 16, 2008 at 3:58 PM, João Costa <joaocosta
AT
zonalivre.org> wrote:
> Currently, GT requires the use of XML::LibXML regardless if you
> actually need it or not.
> For instance, the following command won't work if that library is not installed:
>
> display_indicator.pl I:EMA EURUSD 200
>
>
> This behaviour just seems silly, so i'm attaching a patch to get around this.
>
>
> The way it works is to remove the Metainfo object from the Calculator
> object and remove
> use GT::Serializable from Prices.pm.
>
> As far as I could tell only the EVWMA indicator actually uses the
> Calculator->Metainfo,
> so i'm patching that indicator as well.
>
> Despite my limited testing i believe removing GT::Serializable from
> Prices.pm doesn't
> produce side effects, but if someone could apply this patch and run
> some backtests storing
> data to local files that would be a big help.
>
> Regards,
> Joao