[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GT] baktest_multi.pl old xml format
hi again,
as i wrote in a previous post im still using an old version of GT.
Reading the history of mailing list i noticed that the backtest_multi.pl was
changed because nobody know the format of xml file. I use the old
backtest_multi.pl quite a lot and can give examples of the xml file format.
I can use the new one without problems but the new format doesnt fit to the
backtest_multi.pl logic:
in backtest_multi.pl you need only one MoneyManagement for all the systems, in
the old format you had a xml fileld different from the system definition, in
the new one you have to define MM only on the last system line, otherwise
backtest_multi.pl gives an error.
before i change all my other programs that use the xml format id like to know
if what i wrote will make restore the previous version of backtest_multi.pl or
is not enough important.
here are the 2 files for the same system definition you can see the use of MM
old xml:
<?xml version='1.0'?>
<data>
<system-manager>
<system value='Swing:SwingCompleto4_3'></system>
<of value='Inversione'></of>
<tf value='SoloUnoAlGiornoNonDopo 10:20:00'></tf>
<tf value='OneTradeMultiSystem'></tf>
<cs value='CloseGain 3'></cs>
<broker value='NoCosts'></broker>
</system-manager>
<system-manager>
<system value='Swing:OutbarDay'></system>
<of value='OutbarDay'></of>
<tf value='NonDopo 16:10:00'></tf>
<tf value='OneTradeMultiSystem'></tf>
<cs value='CloseGain 3'></cs>
<broker value='NoCosts'></broker>
</system-manager>
<system-manager>
<system value='Swing:EstremoDoppioCross2'></system>
<of value='OutbarDay'></of>
<tf value='SoloUnoAlGiornoNonDopo 16:00:00'></tf>
<tf value='OneTradeMultiSystem'></tf>
<cs value='CloseGain 3'></cs>
<broker value='NoCosts'></broker>
</system-manager>
<mm value='FixedSum 99000'></mm>
<init value='100000'></init>
<code value='AFF'></code>
</data>
new format:
SY:Swing:SwingCompleto4_3|OF:Inversione|TF:SoloUnoAlGiornoNonDopo
10:20:00|TF:OneTradeMultiSystem|CS:CloseGain 3
SY:Swing:OutbarDay|OF:OutbarDay|TF:NonDopo
16:10:00|TF:OneTradeMultiSystem|CS:CloseGain 3
SY:Swing:EstremoDoppioCross2|OF:OutbarDay|TF:SoloUnoAlGiornoNonDopo
16:00:00|TF:OneTradeMultiSystem|CS:CloseGain 3|MM:FixedSum 99000
thx