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

[system-traders] swing charts with backtest.pl



Gday,

Im trying to run a backtest using S:Swing:Trend. I would like to trigger
a buy signal when the swing chart is up. From what i can see, the
following syntax is incorrect and the buy is not being executed when the
swing chart is up.

backtest.pl $1 \
    --full \
    --html \
    --display-trades \
    --system="Generic {S:Generic:And
                        {S:Generic:Above {I:MACD/3} 0}
                        {S:Generic:Above {I:SMA 7} {I:SMA 21}}
                        {S:Swing:Trend {I:Prices Close}}
                        }" \
    --close-strategy="Generic {S:Generic:CrossOverDown {I:SMA 7} {I:SMA 21}}"

What am i not doing right here? Should i be using S:Swing:TrendUpEnding?

Cheers!

-- 

Rene Cunningham
DCLabs Pty Ltd
http://www.dclabs.com.au