SlideShare a Scribd company logo
1 of 110
Download to read offline
Trading
with open source tools

         Chia-liang Kao
        clkao@clkao.org

      OSDC.TW 2009 Taipei
Caution
Caution
              There is
ABSOLUTELY NO WARRANTY
   if you use any of the code or
  strategy mentioned in this talk.
Presenting.......
Presenting.......

The OSDC Trading System
Presenting.......

The OSDC Trading System
       using dice!
Take #1
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
              {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade
Take #1
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
              {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade


                        Long Signal
Take #1      (Random returns 0..5)

SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
              {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade


                          Long Signal
Take #1
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
              {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade


                        Long Signal
Take #1
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
              {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade


                       Short Signal
Take #1
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
              {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade


                       Enters at 08:50
Take #1
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
              {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade
Take #1
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
              {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade




  % perl backtest.pl --start=2001-01-01 --end=2007-12-31
         --timeframe 5min --money-management='FixedShares 1'
                          OSDC1 TX
Take #1
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
              {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade


                  Taiwan Weighted Futures
                      1 point = nt$200

  % perl backtest.pl --start=2001-01-01 --end=2007-12-31
         --timeframe 5min --money-management='FixedShares 1'
                          OSDC1 TX
Take #1
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
              {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade
Take #1
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
              {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade

-----------------------------------------------------
Performance : -199.1 ( nan%)     Buy & Hold : 77.5% ( 14.2%) () => by year
MaxDrawDown :      201.6% B&H MaxDrawDown :     44.8%
Best performance :   3.3% Worst performance : -204.9
Net gain :      -19910.00 Gross gain :       -2590.00

Trades statistics :
Number of trades :    1732   Trades/Year :      247.97
Number of gains :      698   Number of losses :   1034   Win. ratio :   40.3%
Max consec. win :        7   Max consec. loss :     13   Expectancy :   -0.00
Average gain :       0.87%   Average loss :     -0.94%   Avg. perf :     nan%
Biggest gain :       6.44%   Biggest loss :     -6.65%   Profit fac :    0.92
Sum of gains :    36090.00   Sum of losses : -56000.00   Risk of ruin : 100.0
Take #1
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
              {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade

-----------------------------------------------------
Performance : -199.1 ( nan%)     Buy & Hold : 77.5% ( 14.2%) () => by year
MaxDrawDown :      201.6% B&H MaxDrawDown :     44.8%
Best performance :   3.3% Worst performance : -204.9
Net gain :      -19910.00 Gross gain :       -2590.00

Trades statistics :
Number of trades :    1732   Trades/Year :      247.97
Number of gains :      698   Number of losses :   1034   Win. ratio :   40.3%
Max consec. win :        7   Max consec. loss :     13   Expectancy :   -0.00
Average gain :       0.87%   Average loss :     -0.94%   Avg. perf :     nan%
Biggest gain :       6.44%   Biggest loss :     -6.65%   Profit fac :    0.92
Sum of gains :    36090.00   Sum of losses : -56000.00   Risk of ruin : 100.0
Take #1
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
              {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade

-----------------------------------------------------
Performance : -199.1 ( nan%)     Buy & Hold : 77.5% ( 14.2%) () => by year
MaxDrawDown :      201.6% B&H MaxDrawDown :     44.8%
Best performance :   3.3% Worst performance : -204.9
                              -NT$3,982,000
Net gain :      -19910.00 Gross gain :       -2590.00

Trades statistics :
Number of trades :    1732   Trades/Year :      247.97
Number of gains :      698   Number of losses :   1034   Win. ratio :   40.3%
Max consec. win :        7   Max consec. loss :     13   Expectancy :   -0.00
Average gain :       0.87%   Average loss :     -0.94%   Avg. perf :     nan%
Biggest gain :       6.44%   Biggest loss :     -6.65%   Profit fac :    0.92
Sum of gains :    36090.00   Sum of losses : -56000.00   Risk of ruin : 100.0
Take #1
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
              {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade

-----------------------------------------------------
Performance : -199.1 ( nan%)     Buy & Hold : 77.5% ( 14.2%) () => by year
MaxDrawDown :      201.6% B&H MaxDrawDown :     44.8%
Best performance :   3.3% Worst performance : -204.9
                              -NT$3,982,000
Net gain :      -19910.00 Gross gain :       -2590.00

Trades statistics :
Number of trades :    1732   Trades/Year :      247.97
Number of gains :      698   Number of losses :   1034   Win. ratio :   40.3%
Max consec. win :        7   Max consec. loss :     13   Expectancy :   -0.00
Average gain :       0.87%   Average loss :     -0.94%   Avg. perf :     nan%
Biggest gain :       6.44%   Biggest loss :     -6.65%   Profit fac :    0.92
Sum of gains :    36090.00   Sum of losses : -56000.00   Risk of ruin : 100.0
                                                              DOOMED!!
Take #2
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
             {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade 
 |CS:Stop:Fixed 1.5
Take #2
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
             {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade 
                        Stop when losing 1.5%
 |CS:Stop:Fixed 1.5
Take #2
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
             {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade 
 |CS:Stop:Fixed 1.5
Take #2
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
             {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade 
 |CS:Stop:Fixed 1.5
-----------------------------------------------------
Performance : -124.4 ( nan%)     Buy & Hold : 77.5% ( 14.2%) () => by year
MaxDrawDown :      136.8% B&H MaxDrawDown :     44.8%
Best performance :   2.0% Worst performance : -137.5
Net gain :      -12442.13 Gross gain :        4877.87

Trades statistics :
Number of trades :    1732   Trades/Year :      247.97
Number of gains :      715   Number of losses :   1017   Win. ratio :   41.3%
Max consec. win :       11   Max consec. loss :     16   Expectancy :   -0.00
Average gain :       0.88%   Average loss :     -0.83%   Avg. perf :     nan%
Biggest gain :       5.67%   Biggest loss :     -1.79%   Profit fac :    1.05
Sum of gains :    37037.00   Sum of losses : -49479.13   Risk of ruin : 100.0
Take #2
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
             {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade 
 |CS:Stop:Fixed 1.5
-----------------------------------------------------
Performance : -124.4 ( nan%)     Buy & Hold : 77.5% ( 14.2%) () => by year
MaxDrawDown :      136.8% B&H MaxDrawDown :     44.8%
Best performance :   2.0% Worst performance : -137.5
                              -NT$2,488,426
Net gain :      -12442.13 Gross gain :        4877.87

Trades statistics :
Number of trades :    1732   Trades/Year :      247.97
Number of gains :      715   Number of losses :   1017   Win. ratio :   41.3%
Max consec. win :       11   Max consec. loss :     16   Expectancy :   -0.00
Average gain :       0.88%   Average loss :     -0.83%   Avg. perf :     nan%
Biggest gain :       5.67%   Biggest loss :     -1.79%   Profit fac :    1.05
Sum of gains :    37037.00   Sum of losses : -49479.13   Risk of ruin : 100.0
Take #2
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
             {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade 
 |CS:Stop:Fixed 1.5
-----------------------------------------------------
Performance : -124.4 ( nan%)     Buy & Hold : 77.5% ( 14.2%) () => by year
MaxDrawDown :      136.8% B&H MaxDrawDown :     44.8%
Best performance :   2.0% Worst performance : -137.5
                              -NT$2,488,426
Net gain :      -12442.13 Gross gain :        4877.87

Trades statistics :
Number of trades :    1732   Trades/Year :      247.97
Number of gains :      715   Number of losses :   1017   Win. ratio :   41.3%
Max consec. win :       11   Max consec. loss :     16   Expectancy :   -0.00
Average gain :       0.88%   Average loss :     -0.83%   Avg. perf :     nan%
Biggest gain :       5.67%   Biggest loss :     -1.79%   Profit fac :    1.05
Sum of gains :    37037.00   Sum of losses : -49479.13   Risk of ruin : 100.0

                    Much better, but still negative
Take #3
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
             {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade 
 |CS:Stop:Fixed 2.5
Take #3
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
             {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade 
                        Stop when losing 2.5%
 |CS:Stop:Fixed 2.5
Take #3
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
             {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade 
 |CS:Stop:Fixed 2.5
Take #3
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
             {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade 
 |CS:Stop:Fixed 2.5
-----------------------------------------------------
Performance : -149.8 ( nan%)     Buy & Hold : 77.5% ( 14.2%) () => by year
MaxDrawDown :      155.0% B&H MaxDrawDown :     44.8%
Best performance :   0.0% Worst performance : -155.0
Net gain :      -14977.47 Gross gain :        2342.53

Trades statistics :
Number of trades :    1732   Trades/Year :      247.97
Number of gains :      706   Number of losses :   1026   Win. ratio :   40.8%
Max consec. win :        8   Max consec. loss :     14   Expectancy :   -0.00
Average gain :       0.91%   Average loss :     -0.87%   Avg. perf :     nan%
Biggest gain :       6.29%   Biggest loss :     -2.78%   Profit fac :    1.05
Sum of gains :    37749.00   Sum of losses : -52726.47   Risk of ruin : 100.0
Take #3
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
             {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade 
 |CS:Stop:Fixed 2.5
-----------------------------------------------------
Performance : -149.8 ( nan%)     Buy & Hold : 77.5% ( 14.2%) () => by year
MaxDrawDown :      155.0% B&H MaxDrawDown :     44.8%
Best performance :   0.0% Worst performance : -155.0
                              -NT$2,995,494
Net gain :      -14977.47 Gross gain :        2342.53

Trades statistics :
Number of trades :    1732   Trades/Year :      247.97
Number of gains :      706   Number of losses :   1026   Win. ratio :   40.8%
Max consec. win :        8   Max consec. loss :     14   Expectancy :   -0.00
Average gain :       0.91%   Average loss :     -0.87%   Avg. perf :     nan%
Biggest gain :       6.29%   Biggest loss :     -2.78%   Profit fac :    1.05
Sum of gains :    37749.00   Sum of losses : -52726.47   Risk of ruin : 100.0
Take #3
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
             {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:DayTrade 
 |CS:Stop:Fixed 2.5
-----------------------------------------------------
Performance : -149.8 ( nan%)     Buy & Hold : 77.5% ( 14.2%) () => by year
MaxDrawDown :      155.0% B&H MaxDrawDown :     44.8%
Best performance :   0.0% Worst performance : -155.0
                              -NT$2,995,494
Net gain :      -14977.47 Gross gain :        2342.53

Trades statistics :
Number of trades :    1732   Trades/Year :      247.97
Number of gains :      706   Number of losses :   1026   Win. ratio :   40.8%
Max consec. win :        8   Max consec. loss :     14   Expectancy :   -0.00
Average gain :       0.91%   Average loss :     -0.87%   Avg. perf :     nan%
Biggest gain :       6.29%   Biggest loss :     -2.78%   Profit fac :    1.05
Sum of gains :    37749.00   Sum of losses : -52726.47   Risk of ruin : 100.0


          Not better after increase the stop threshold
Take #4
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
             {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:Stop:Fixed 5 
 |CS:CloseGain 10
Take #4
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
             {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:Stop:Fixed 5 
                        Stop when winning 10%
 |CS:CloseGain 10
Take #4
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
             {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:Stop:Fixed 5 
 |CS:CloseGain 10
Take #4
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
             {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:Stop:Fixed 5 
 |CS:CloseGain 10
-----------------------------------------------------
Performance : 29.2% ( 6.1%)      Buy & Hold : 77.5% ( 14.2%) () => by year
MaxDrawDown :       24.9% B&H MaxDrawDown :     44.8%
Best performance : 49.7% Worst performance : -1.2%
Net gain :        2920.65 Gross gain :        3730.65

Trades statistics :
Number of trades :      81   Trades/Year :       11.60
Number of gains :       32   Number of losses :     49   Win. ratio :   39.5%
Max consec. win :        4   Max consec. loss :      8   Expectancy :    0.01
Average gain :       9.92%   Average loss :     -5.43%   Avg. perf :    0.32%
Biggest gain :      11.50%   Biggest loss :     -9.73%   Profit fac :    1.83
Sum of gains :    18313.10   Sum of losses : -15392.45   Risk of ruin : 21.3%
Take #4
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
             {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:Stop:Fixed 5 
 |CS:CloseGain 10
-----------------------------------------------------
Performance : 29.2% ( 6.1%)      Buy & Hold : 77.5% ( 14.2%) () => by year
MaxDrawDown :       24.9% B&H MaxDrawDown :     44.8%
Best performance : 49.7% Worst performance : -1.2%
                                NT$584,130
Net gain :        2920.65 Gross gain :        3730.65

Trades statistics :
Number of trades :      81   Trades/Year :       11.60
Number of gains :       32   Number of losses :     49   Win. ratio :   39.5%
Max consec. win :        4   Max consec. loss :      8   Expectancy :    0.01
Average gain :       9.92%   Average loss :     -5.43%   Avg. perf :    0.32%
Biggest gain :      11.50%   Biggest loss :     -9.73%   Profit fac :    1.83
Sum of gains :    18313.10   Sum of losses : -15392.45   Risk of ruin : 21.3%
Take #4
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
             {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:Stop:Fixed 5 
 |CS:CloseGain 10
-----------------------------------------------------
Performance : 29.2% ( 6.1%)      Buy & Hold : 77.5% ( 14.2%) () => by year
MaxDrawDown :       24.9% B&H MaxDrawDown :     44.8%
Best performance : 49.7% Worst performance : -1.2%
                                NT$584,130
Net gain :        2920.65 Gross gain :        3730.65

Trades statistics :
Number of trades :      81   Trades/Year :       11.60
                                  PROFIT!!
Number of gains :       32   Number of losses :     49   Win. ratio :   39.5%
Max consec. win :        4   Max consec. loss :      8   Expectancy :    0.01
Average gain :       9.92%   Average loss :     -5.43%   Avg. perf :    0.32%
Biggest gain :      11.50%   Biggest loss :     -9.73%   Profit fac :    1.83
Sum of gains :    18313.10   Sum of losses : -15392.45   Risk of ruin : 21.3%
Take #5
SY:Generic 
  {I:G:Eval ( {I:LastTrade} ?   {I:LastTrade}==1
                            :   {S:G:Above {I:Random 6} 2})}
  {I:G:Eval ( {I:LastTrade} ?   {I:LastTrade}==-1
                            :   {S:G:Below {I:Random 6} 3})}
 |TF:Generic {S:G:CrossOverUp   {I:Hour} 850} 
             {S:G:CrossOverUp   {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:Stop:Fixed 5 
 |CS:CloseGain 10
Take #5
SY:Generic 
  {I:G:Eval ( {I:LastTrade} ? {I:LastTrade}==1
                            : {S:G:Above {I:Random 6} 2})}
  {I:G:Eval ( {I:LastTrade} ? {I:LastTrade}==-1
                            : {S:G:Below {I:Random 6} 3})}
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
             {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
                          Following results from last trade
 |CS:Stop:Fixed 5 
 |CS:CloseGain 10
Take #5
SY:Generic 
  {I:G:Eval ( {I:LastTrade} ?   {I:LastTrade}==1
                            :   {S:G:Above {I:Random 6} 2})}
  {I:G:Eval ( {I:LastTrade} ?   {I:LastTrade}==-1
                            :   {S:G:Below {I:Random 6} 3})}
 |TF:Generic {S:G:CrossOverUp   {I:Hour} 850} 
             {S:G:CrossOverUp   {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:Stop:Fixed 5 
 |CS:CloseGain 10
Take #5
SY:Generic 
  {I:G:Eval ( {I:LastTrade} ?         {I:LastTrade}==1
                            :         {S:G:Above {I:Random 6} 2})}
  {I:G:Eval ( {I:LastTrade} ?         {I:LastTrade}==-1
                            :         {S:G:Below {I:Random 6} 3})}
 |TF:Generic {S:G:CrossOverUp         {I:Hour} 850} 
             {S:G:CrossOverUp         {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:Stop:Fixed 5 
 |CS:CloseGain 10
-----------------------------------------------------
Performance : 48.4% ( 9.5%)      Buy & Hold : 77.5% ( 14.2%) () => by year
MaxDrawDown :       19.8% B&H MaxDrawDown :     44.8%
Best performance : 49.5% Worst performance :     0.0%
Net gain :        4839.75 Gross gain :        5699.75

Trades statistics :
Number of trades :      86   Trades/Year :        12.31
Number of gains :       36   Number of losses :      50   Win. ratio :   41.9%
Max consec. win :        4   Max consec. loss :       8   Expectancy :    0.01
Average gain :       9.72%   Average loss :      -5.48%   Avg. perf :    0.46%
Biggest gain :      10.71%   Biggest loss :     -11.33%   Profit fac :    1.77
Sum of gains :    20674.70   Sum of losses : -15834.95    Risk of ruin : 9.9%
Take #5
SY:Generic 
  {I:G:Eval ( {I:LastTrade} ?         {I:LastTrade}==1
                            :         {S:G:Above {I:Random 6} 2})}
  {I:G:Eval ( {I:LastTrade} ?         {I:LastTrade}==-1
                            :         {S:G:Below {I:Random 6} 3})}
 |TF:Generic {S:G:CrossOverUp         {I:Hour} 850} 
             {S:G:CrossOverUp         {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:Stop:Fixed 5 
 |CS:CloseGain 10
-----------------------------------------------------
Performance : 48.4% ( 9.5%)      Buy & Hold : 77.5% ( 14.2%) () => by year
MaxDrawDown :       19.8% B&H MaxDrawDown :     44.8%
Best performance : 49.5% Worst performance :     0.0%
                                NT$967,950
Net gain :        4839.75 Gross gain :        5699.75

Trades statistics :
Number of trades :      86   Trades/Year :        12.31
Number of gains :       36   Number of losses :      50   Win. ratio :   41.9%
Max consec. win :        4   Max consec. loss :       8   Expectancy :    0.01
Average gain :       9.72%   Average loss :      -5.48%   Avg. perf :    0.46%
Biggest gain :      10.71%   Biggest loss :     -11.33%   Profit fac :    1.77
Sum of gains :    20674.70   Sum of losses : -15834.95    Risk of ruin : 9.9%
The OSDC Trading System
     Got your dice?
SY:Generic 
  {I:G:Eval ( {I:LastTrade} ?         {I:LastTrade}==1
                            :         {S:G:Above {I:Random 6} 2})}
  {I:G:Eval ( {I:LastTrade} ?         {I:LastTrade}==-1
                            :         {S:G:Below {I:Random 6} 3})}
 |TF:Generic {S:G:CrossOverUp         {I:Hour} 850} 
             {S:G:CrossOverUp         {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:Stop:Fixed 5 
 |CS:CloseGain 10
-----------------------------------------------------
Performance : 48.4% ( 9.5%)      Buy & Hold : 77.5% ( 14.2%) () => by year
MaxDrawDown :       19.8% B&H MaxDrawDown :     44.8%
Best performance : 49.5% Worst performance :     0.0%
Net gain :        4839.75 Gross gain :        5699.75

Trades statistics :
Number of trades :      86   Trades/Year :        12.31
Number of gains :       36   Number of losses :      50   Win. ratio :   41.9%
Max consec. win :        4   Max consec. loss :       8   Expectancy :    0.01
Average gain :       9.72%   Average loss :      -5.48%   Avg. perf :    0.46%
Biggest gain :      10.71%   Biggest loss :     -11.33%   Profit fac :    1.77
Sum of gains :    20674.70   Sum of losses : -15834.95    Risk of ruin : 9.9%
SY:Generic 
  {I:G:Eval ( {I:LastTrade} ?         {I:LastTrade}==1
                            :         {S:G:Above {I:Random 6} 2})}
  {I:G:Eval ( {I:LastTrade} ?         {I:LastTrade}==-1
                            :         {S:G:Below {I:Random 6} 3})}
 |TF:Generic {S:G:CrossOverUp         {I:Hour} 850} 
             {S:G:CrossOverUp         {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:Stop:Fixed 5 
 |CS:CloseGain 10
-----------------------------------------------------
Performance : 48.4% ( 9.5%)      Buy & Hold : 77.5% ( 14.2%) () => by year
MaxDrawDown :       19.8% B&H MaxDrawDown :     44.8%
Best performance : 49.5% Worst performance :     0.0%
Net gain :        4839.75 Gross gain :        5699.75

Trades statistics :
Number of trades :      86   Trades/Year :        12.31
Number of gains :       36   Number of losses :      50   Win. ratio :   41.9%
Max consec. win :        4   Max consec. loss :       8   Expectancy :    0.01
Average gain :       9.72%   Average loss :      -5.48%   Avg. perf :    0.46%
Biggest gain :      10.71%   Biggest loss :     -11.33%   Profit fac :    1.77
Sum of gains :    20674.70   Sum of losses : -15834.95    Risk of ruin : 9.9%
SY:Generic 
  {I:G:Eval ( {I:LastTrade} ?         {I:LastTrade}==1
                            :         {S:G:Above {I:Random 6} 2})}
  {I:G:Eval ( {I:LastTrade} ?         {I:LastTrade}==-1
                            :         {S:G:Below {I:Random 6} 3})}
 |TF:Generic {S:G:CrossOverUp         {I:Hour} 850} 
             {S:G:CrossOverUp         {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:Stop:Fixed 5 
 |CS:CloseGain 10
-----------------------------------------------------
Performance : 48.4% ( 9.5%)      Buy & Hold : 77.5% ( 14.2%) () => by year
MaxDrawDown :       19.8% B&H MaxDrawDown :     44.8%
Best performance : 49.5% Worst performance :     0.0%
Net gain :        4839.75 Gross gain :        5699.75

Trades statistics :
Number of trades :      86   Trades/Year :        12.31
Number of gains :       36   Number of losses :      50   Win. ratio :   41.9%
Max consec. win :        4   Max consec. loss :       8   Expectancy :    0.01
Average gain :       9.72%   Average loss :      -5.48%   Avg. perf :    0.46%
Biggest gain :      10.71%   Biggest loss :     -11.33%   Profit fac :    1.77
Sum of gains :    20674.70   Sum of losses : -15834.95    Risk of ruin : 9.9%
Outline

โ€ข trading system
โ€ข analysis
โ€ข backtesting
โ€ข live trading
Trading System

Trading system, also known as algorithmic trading, is the use of
computer programs for entering trading orders with the computer
algorithm deciding on certain aspects of the order such as the
timing, price, quantity of order
Trading System

Trading system, also known as algorithmic trading, is the use of
computer programs for entering trading orders with the computer
algorithm deciding on certain aspects of the order such as the
timing, price, quantity of order




                     Even with dice
Analysis

โ€ข Where are all the loss coming from?
โ€ข Any interesting correlation with technical
  indicators?

โ€ข (Be curious and ask yourself questions about your
  results)
R is a programming language and software environment for
statistical computing and graphics. It is an implementation
of the S programming language with lexical scoping
semantics inspired by Scheme.
R is a programming language and software environment for
statistical computing and graphics. It is an implementation
of the S programming language with lexical scoping
semantics inspired by Scheme.




to work with numbers, vectors ef๏ฌciently
winamount <- xtabs(paste(quot;profit~quot;, rhs,
sep=quot;quot;), data=data[data$profit>0,])
         loseamount <- xtabs(paste(quot;profit~quot;, rhs,
sep=quot;quot;), data=data[data$profit<=0,]);
         x$netgain <- winamount+loseamount;
         x$avgnet <- x$netgain/trade
winamount <- xtabs(paste(quot;profit~quot;, rhs,
sep=quot;quot;), data=data[data$profit>0,])
         loseamount <- xtabs(paste(quot;profit~quot;, rhs,
sep=quot;quot;), data=data[data$profit<=0,]);
         x$netgain <- winamount+loseamount;
         x$avgnet <- x$netgain/trade
winamount <- xtabs(paste(quot;profit~quot;, rhs,
sep=quot;quot;), data=data[data$profit>0,])
         loseamount <- xtabs(paste(quot;profit~quot;, rhs,
sep=quot;quot;), data=data[data$profit<=0,]);
         x$netgain <- winamount+loseamount;
         x$avgnet <- x$netgain/trade
Now if we donโ€™t short when we are above the
                open price....
Now if we donโ€™t short when we are above the
                open price....




           Was 5699
R also supports nice plotting
Backtesting
Backtesting
โ€ข If you want to write a strategy (which
  might not be using dice), you want to test it
  for historical data
Backtesting
โ€ข If you want to write a strategy (which
  might not be using dice), you want to test it
  for historical data
โ€ข โ€œpast performance does not guarantee
  future resultsโ€
Backtesting
โ€ข If you want to write a strategy (which
  might not be using dice), you want to test it
  for historical data
โ€ข โ€œpast performance does not guarantee
  future resultsโ€
โ€ข But if your past performance is bad, do you
  dare to use the system?
Genius Trader
SY:Generic
  {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} 
 |TF:Generic {S:G:CrossOverUp {I:Hour} 850} 
             {S:G:CrossOverUp {I:Hour} 850} 
 |TF:MaxOpenTrades 1 
 |CS:Stop:Fixed 5 
 |CS:CloseGain 10




    โ€ข Modular
    โ€ข Flexible
    โ€ข Open source
    โ€ข does backtesting, charting
live trading
live trading
โ€ข Data feed
live trading
โ€ข Data feed
โ€ข Strategy / System runner
live trading
โ€ข Data feed
โ€ข Strategy / System runner
โ€ข Broker API
live trading
โ€ข Data feed
โ€ข Strategy / System runner
โ€ข Broker API
โ€ข Infrastructure
 โ€ข Monitor
 โ€ข Scale and redundancy!
Data feed
โ€ข free: DDE from brokerโ€™s software
โ€ข Win32::DDE (polling)
โ€ข publish to memcached (or more
  appropriate message queues)
โ€ข 10 lines of code
โ€ข 20 lines for reconnect and robustness
Strategy runner
Strategy runner

โ€ข genius trader, available for back test
Strategy runner

โ€ข genius trader, available for back test
โ€ข GT::Stream, accept streaming data and
  applies trading system to generate real time
  signals
Strategy runner

โ€ข genius trader, available for back test
โ€ข GT::Stream, accept streaming data and
  applies trading system to generate real time
  signals
โ€ข available at: ????
Infrastructure

โ€ข VirtualBox headless & MicroXP
โ€ข memcached
โ€ข gearman
โ€ข nagios
Trading platforms

โ€ข http://geniustrade.org/
โ€ข Trade Station (proprietary)
โ€ข http://ojts.sourceforge.net/
โ€ข http://www.marketcetera.org/
Library


โ€ข quantlib
โ€ข ta-lib
R tutorials


โ€ข Econometrics in R (Grant V. Farnsworth)
โ€ข Practical Regression and Anova using R
  (Julian J. Faraway)
Conclusion
2009
Yesterday... I went to hotsprings in the morning..
Yesterday... I went to hotsprings in the morning..
At 11:45:20
At 11:45:20
At 11:45:20
At 11:45:20
At 11:45:20
At 11:45:20
At 11:45:20
At 11:45:20




PROFIT!!
PROFIT!!
Questions?
 clkao@clkao.org
Trading With Open Source Tools

More Related Content

Viewers also liked

่—่‰ฒๆŠ•ๆฉŸๅฎข ่จˆ้‡ๅŒ–ไบคๆ˜“็ญ–็•ฅ็š„้–‹็™ผ
่—่‰ฒๆŠ•ๆฉŸๅฎข ่จˆ้‡ๅŒ–ไบคๆ˜“็ญ–็•ฅ็š„้–‹็™ผ่—่‰ฒๆŠ•ๆฉŸๅฎข ่จˆ้‡ๅŒ–ไบคๆ˜“็ญ–็•ฅ็š„้–‹็™ผ
่—่‰ฒๆŠ•ๆฉŸๅฎข ่จˆ้‡ๅŒ–ไบคๆ˜“็ญ–็•ฅ็š„้–‹็™ผguest87f844
ย 
็จ‹ๅผไบคๆ˜“็ถ“้ฉ—ๅˆ†ไบซ็ณปๅˆ—(3) ็ญ–็•ฅๆœ€ไฝณๅŒ–ๅŠwfaๆณ•
็จ‹ๅผไบคๆ˜“็ถ“้ฉ—ๅˆ†ไบซ็ณปๅˆ—(3)   ็ญ–็•ฅๆœ€ไฝณๅŒ–ๅŠwfaๆณ•็จ‹ๅผไบคๆ˜“็ถ“้ฉ—ๅˆ†ไบซ็ณปๅˆ—(3)   ็ญ–็•ฅๆœ€ไฝณๅŒ–ๅŠwfaๆณ•
็จ‹ๅผไบคๆ˜“็ถ“้ฉ—ๅˆ†ไบซ็ณปๅˆ—(3) ็ญ–็•ฅๆœ€ไฝณๅŒ–ๅŠwfaๆณ•Philip Zheng
ย 
็จ‹ๅผไบคๆ˜“็ถ“้ฉ—ๅˆ†ไบซ็ณปๅˆ—(4) ไธ‹ๅ–ฎๆฉŸ่จญๅฎšๅŠ็ณปๅˆ—ๅ›ž้กง
็จ‹ๅผไบคๆ˜“็ถ“้ฉ—ๅˆ†ไบซ็ณปๅˆ—(4)   ไธ‹ๅ–ฎๆฉŸ่จญๅฎšๅŠ็ณปๅˆ—ๅ›ž้กง็จ‹ๅผไบคๆ˜“็ถ“้ฉ—ๅˆ†ไบซ็ณปๅˆ—(4)   ไธ‹ๅ–ฎๆฉŸ่จญๅฎšๅŠ็ณปๅˆ—ๅ›ž้กง
็จ‹ๅผไบคๆ˜“็ถ“้ฉ—ๅˆ†ไบซ็ณปๅˆ—(4) ไธ‹ๅ–ฎๆฉŸ่จญๅฎšๅŠ็ณปๅˆ—ๅ›ž้กงPhilip Zheng
ย 
Trading As Your Business
Trading As Your BusinessTrading As Your Business
Trading As Your Businessderekhcw168
ย 
็จ‹ๅผไบคๆ˜“ไป‹็ดนๅŠ FinTech ๅ‰ตไฝœๅˆ†ไบซ
็จ‹ๅผไบคๆ˜“ไป‹็ดนๅŠ FinTech ๅ‰ตไฝœๅˆ†ไบซ็จ‹ๅผไบคๆ˜“ไป‹็ดนๅŠ FinTech ๅ‰ตไฝœๅˆ†ไบซ
็จ‹ๅผไบคๆ˜“ไป‹็ดนๅŠ FinTech ๅ‰ตไฝœๅˆ†ไบซPhilip Zheng
ย 
[DSC 2016] ็ณปๅˆ—ๆดปๅ‹•๏ผšๅณ็‰งๆฉใ€ๆž—ไฝณ็ทฏ / ็”จ R ่ผ•้ฌ†ๅšไบคๆ˜“็ญ–็•ฅๅˆ†ๆžๅŠ่‡ชๅ‹•ไธ‹ๅ–ฎ
[DSC 2016] ็ณปๅˆ—ๆดปๅ‹•๏ผšๅณ็‰งๆฉใ€ๆž—ไฝณ็ทฏ / ็”จ R ่ผ•้ฌ†ๅšไบคๆ˜“็ญ–็•ฅๅˆ†ๆžๅŠ่‡ชๅ‹•ไธ‹ๅ–ฎ[DSC 2016] ็ณปๅˆ—ๆดปๅ‹•๏ผšๅณ็‰งๆฉใ€ๆž—ไฝณ็ทฏ / ็”จ R ่ผ•้ฌ†ๅšไบคๆ˜“็ญ–็•ฅๅˆ†ๆžๅŠ่‡ชๅ‹•ไธ‹ๅ–ฎ
[DSC 2016] ็ณปๅˆ—ๆดปๅ‹•๏ผšๅณ็‰งๆฉใ€ๆž—ไฝณ็ทฏ / ็”จ R ่ผ•้ฌ†ๅšไบคๆ˜“็ญ–็•ฅๅˆ†ๆžๅŠ่‡ชๅ‹•ไธ‹ๅ–ฎๅฐ็ฃ่ณ‡ๆ–™็ง‘ๅญธๅนดๆœƒ
ย 
[DSC 2016] ็ณปๅˆ—ๆดปๅ‹•๏ผšๆŽๅฎๆฏ… / ไธ€ๅคฉๆžๆ‡‚ๆทฑๅบฆๅญธ็ฟ’
[DSC 2016] ็ณปๅˆ—ๆดปๅ‹•๏ผšๆŽๅฎๆฏ… / ไธ€ๅคฉๆžๆ‡‚ๆทฑๅบฆๅญธ็ฟ’[DSC 2016] ็ณปๅˆ—ๆดปๅ‹•๏ผšๆŽๅฎๆฏ… / ไธ€ๅคฉๆžๆ‡‚ๆทฑๅบฆๅญธ็ฟ’
[DSC 2016] ็ณปๅˆ—ๆดปๅ‹•๏ผšๆŽๅฎๆฏ… / ไธ€ๅคฉๆžๆ‡‚ๆทฑๅบฆๅญธ็ฟ’ๅฐ็ฃ่ณ‡ๆ–™็ง‘ๅญธๅนดๆœƒ
ย 
Open Source, Open Data, Open Government
Open Source, Open Data, Open GovernmentOpen Source, Open Data, Open Government
Open Source, Open Data, Open Governmentclkao
ย 
Trading with opensource tools, two years later
Trading with opensource tools, two years laterTrading with opensource tools, two years later
Trading with opensource tools, two years laterclkao
ย 
0th Sunflower Digital Camp
0th Sunflower Digital Camp0th Sunflower Digital Camp
0th Sunflower Digital CampAudrey Tang
ย 
Java8 time
Java8 timeJava8 time
Java8 timekoji lin
ย 
้–‹็›คๅ…ซๆณ•
้–‹็›คๅ…ซๆณ•้–‹็›คๅ…ซๆณ•
้–‹็›คๅ…ซๆณ•Johnson โ—ŽAUDI
ย 
R็ตฑ่จˆ่ปŸ้ซ” -ๅฎ‰่ฃ่ˆ‡ไฝฟ็”จ
R็ตฑ่จˆ่ปŸ้ซ” -ๅฎ‰่ฃ่ˆ‡ไฝฟ็”จR็ตฑ่จˆ่ปŸ้ซ” -ๅฎ‰่ฃ่ˆ‡ไฝฟ็”จ
R็ตฑ่จˆ่ปŸ้ซ” -ๅฎ‰่ฃ่ˆ‡ไฝฟ็”จPerson Lin
ย 
ๅˆๅญธR่ชž่จ€็š„60ๅˆ†้˜
ๅˆๅญธR่ชž่จ€็š„60ๅˆ†้˜ๅˆๅญธR่ชž่จ€็š„60ๅˆ†้˜
ๅˆๅญธR่ชž่จ€็š„60ๅˆ†้˜Chen-Pan Liao
ย 
TradingBot & Open Source ็ฒพ็ฅž
TradingBot & Open Source ็ฒพ็ฅžTradingBot & Open Source ็ฒพ็ฅž
TradingBot & Open Source ็ฒพ็ฅžPhilip Zheng
ย 
ไบบๅทฅๆ™บ่ƒฝๅœจ้‡ๅŒ–ๆŠ•่ต„ๅˆ†ๆžไธญ็š„ๅฎž่ทต
ไบบๅทฅๆ™บ่ƒฝๅœจ้‡ๅŒ–ๆŠ•่ต„ๅˆ†ๆžไธญ็š„ๅฎž่ทตไบบๅทฅๆ™บ่ƒฝๅœจ้‡ๅŒ–ๆŠ•่ต„ๅˆ†ๆžไธญ็š„ๅฎž่ทต
ไบบๅทฅๆ™บ่ƒฝๅœจ้‡ๅŒ–ๆŠ•่ต„ๅˆ†ๆžไธญ็š„ๅฎž่ทตPhilip Zheng
ย 
Java SE 8 best practices
Java SE 8 best practicesJava SE 8 best practices
Java SE 8 best practicesStephen Colebourne
ย 
ๅฎนๅ™จๅผ่ปŸ้ซ”้–‹็™ผไป‹็ดน
ๅฎนๅ™จๅผ่ปŸ้ซ”้–‹็™ผไป‹็ดนๅฎนๅ™จๅผ่ปŸ้ซ”้–‹็™ผไป‹็ดน
ๅฎนๅ™จๅผ่ปŸ้ซ”้–‹็™ผไป‹็ดนPhilip Zheng
ย 
[็ณปๅˆ—ๆดปๅ‹•] ๆ‰‹ๆŠŠๆ‰‹ๆ•™ไฝ R่ชž่จ€่ณ‡ๆ–™ๅˆ†ๆžๅฏฆๅ‹™
[็ณปๅˆ—ๆดปๅ‹•] ๆ‰‹ๆŠŠๆ‰‹ๆ•™ไฝ R่ชž่จ€่ณ‡ๆ–™ๅˆ†ๆžๅฏฆๅ‹™[็ณปๅˆ—ๆดปๅ‹•] ๆ‰‹ๆŠŠๆ‰‹ๆ•™ไฝ R่ชž่จ€่ณ‡ๆ–™ๅˆ†ๆžๅฏฆๅ‹™
[็ณปๅˆ—ๆดปๅ‹•] ๆ‰‹ๆŠŠๆ‰‹ๆ•™ไฝ R่ชž่จ€่ณ‡ๆ–™ๅˆ†ๆžๅฏฆๅ‹™ๅฐ็ฃ่ณ‡ๆ–™็ง‘ๅญธๅนดๆœƒ
ย 

Viewers also liked (20)

่—่‰ฒๆŠ•ๆฉŸๅฎข ่จˆ้‡ๅŒ–ไบคๆ˜“็ญ–็•ฅ็š„้–‹็™ผ
่—่‰ฒๆŠ•ๆฉŸๅฎข ่จˆ้‡ๅŒ–ไบคๆ˜“็ญ–็•ฅ็š„้–‹็™ผ่—่‰ฒๆŠ•ๆฉŸๅฎข ่จˆ้‡ๅŒ–ไบคๆ˜“็ญ–็•ฅ็š„้–‹็™ผ
่—่‰ฒๆŠ•ๆฉŸๅฎข ่จˆ้‡ๅŒ–ไบคๆ˜“็ญ–็•ฅ็š„้–‹็™ผ
ย 
็จ‹ๅผไบคๆ˜“็ถ“้ฉ—ๅˆ†ไบซ็ณปๅˆ—(3) ็ญ–็•ฅๆœ€ไฝณๅŒ–ๅŠwfaๆณ•
็จ‹ๅผไบคๆ˜“็ถ“้ฉ—ๅˆ†ไบซ็ณปๅˆ—(3)   ็ญ–็•ฅๆœ€ไฝณๅŒ–ๅŠwfaๆณ•็จ‹ๅผไบคๆ˜“็ถ“้ฉ—ๅˆ†ไบซ็ณปๅˆ—(3)   ็ญ–็•ฅๆœ€ไฝณๅŒ–ๅŠwfaๆณ•
็จ‹ๅผไบคๆ˜“็ถ“้ฉ—ๅˆ†ไบซ็ณปๅˆ—(3) ็ญ–็•ฅๆœ€ไฝณๅŒ–ๅŠwfaๆณ•
ย 
็จ‹ๅผไบคๆ˜“็ถ“้ฉ—ๅˆ†ไบซ็ณปๅˆ—(4) ไธ‹ๅ–ฎๆฉŸ่จญๅฎšๅŠ็ณปๅˆ—ๅ›ž้กง
็จ‹ๅผไบคๆ˜“็ถ“้ฉ—ๅˆ†ไบซ็ณปๅˆ—(4)   ไธ‹ๅ–ฎๆฉŸ่จญๅฎšๅŠ็ณปๅˆ—ๅ›ž้กง็จ‹ๅผไบคๆ˜“็ถ“้ฉ—ๅˆ†ไบซ็ณปๅˆ—(4)   ไธ‹ๅ–ฎๆฉŸ่จญๅฎšๅŠ็ณปๅˆ—ๅ›ž้กง
็จ‹ๅผไบคๆ˜“็ถ“้ฉ—ๅˆ†ไบซ็ณปๅˆ—(4) ไธ‹ๅ–ฎๆฉŸ่จญๅฎšๅŠ็ณปๅˆ—ๅ›ž้กง
ย 
Trading As Your Business
Trading As Your BusinessTrading As Your Business
Trading As Your Business
ย 
็จ‹ๅผไบคๆ˜“ไป‹็ดนๅŠ FinTech ๅ‰ตไฝœๅˆ†ไบซ
็จ‹ๅผไบคๆ˜“ไป‹็ดนๅŠ FinTech ๅ‰ตไฝœๅˆ†ไบซ็จ‹ๅผไบคๆ˜“ไป‹็ดนๅŠ FinTech ๅ‰ตไฝœๅˆ†ไบซ
็จ‹ๅผไบคๆ˜“ไป‹็ดนๅŠ FinTech ๅ‰ตไฝœๅˆ†ไบซ
ย 
[DSC 2016] ็ณปๅˆ—ๆดปๅ‹•๏ผšๅณ็‰งๆฉใ€ๆž—ไฝณ็ทฏ / ็”จ R ่ผ•้ฌ†ๅšไบคๆ˜“็ญ–็•ฅๅˆ†ๆžๅŠ่‡ชๅ‹•ไธ‹ๅ–ฎ
[DSC 2016] ็ณปๅˆ—ๆดปๅ‹•๏ผšๅณ็‰งๆฉใ€ๆž—ไฝณ็ทฏ / ็”จ R ่ผ•้ฌ†ๅšไบคๆ˜“็ญ–็•ฅๅˆ†ๆžๅŠ่‡ชๅ‹•ไธ‹ๅ–ฎ[DSC 2016] ็ณปๅˆ—ๆดปๅ‹•๏ผšๅณ็‰งๆฉใ€ๆž—ไฝณ็ทฏ / ็”จ R ่ผ•้ฌ†ๅšไบคๆ˜“็ญ–็•ฅๅˆ†ๆžๅŠ่‡ชๅ‹•ไธ‹ๅ–ฎ
[DSC 2016] ็ณปๅˆ—ๆดปๅ‹•๏ผšๅณ็‰งๆฉใ€ๆž—ไฝณ็ทฏ / ็”จ R ่ผ•้ฌ†ๅšไบคๆ˜“็ญ–็•ฅๅˆ†ๆžๅŠ่‡ชๅ‹•ไธ‹ๅ–ฎ
ย 
[DSC 2016] ็ณปๅˆ—ๆดปๅ‹•๏ผšๆŽๅฎๆฏ… / ไธ€ๅคฉๆžๆ‡‚ๆทฑๅบฆๅญธ็ฟ’
[DSC 2016] ็ณปๅˆ—ๆดปๅ‹•๏ผšๆŽๅฎๆฏ… / ไธ€ๅคฉๆžๆ‡‚ๆทฑๅบฆๅญธ็ฟ’[DSC 2016] ็ณปๅˆ—ๆดปๅ‹•๏ผšๆŽๅฎๆฏ… / ไธ€ๅคฉๆžๆ‡‚ๆทฑๅบฆๅญธ็ฟ’
[DSC 2016] ็ณปๅˆ—ๆดปๅ‹•๏ผšๆŽๅฎๆฏ… / ไธ€ๅคฉๆžๆ‡‚ๆทฑๅบฆๅญธ็ฟ’
ย 
Open Source, Open Data, Open Government
Open Source, Open Data, Open GovernmentOpen Source, Open Data, Open Government
Open Source, Open Data, Open Government
ย 
Trading with opensource tools, two years later
Trading with opensource tools, two years laterTrading with opensource tools, two years later
Trading with opensource tools, two years later
ย 
0th Sunflower Digital Camp
0th Sunflower Digital Camp0th Sunflower Digital Camp
0th Sunflower Digital Camp
ย 
Java8 time
Java8 timeJava8 time
Java8 time
ย 
้–‹็›คๅ…ซๆณ•
้–‹็›คๅ…ซๆณ•้–‹็›คๅ…ซๆณ•
้–‹็›คๅ…ซๆณ•
ย 
R็ตฑ่จˆ่ปŸ้ซ” -ๅฎ‰่ฃ่ˆ‡ไฝฟ็”จ
R็ตฑ่จˆ่ปŸ้ซ” -ๅฎ‰่ฃ่ˆ‡ไฝฟ็”จR็ตฑ่จˆ่ปŸ้ซ” -ๅฎ‰่ฃ่ˆ‡ไฝฟ็”จ
R็ตฑ่จˆ่ปŸ้ซ” -ๅฎ‰่ฃ่ˆ‡ไฝฟ็”จ
ย 
Machine Learning in R
Machine Learning in RMachine Learning in R
Machine Learning in R
ย 
ๅˆๅญธR่ชž่จ€็š„60ๅˆ†้˜
ๅˆๅญธR่ชž่จ€็š„60ๅˆ†้˜ๅˆๅญธR่ชž่จ€็š„60ๅˆ†้˜
ๅˆๅญธR่ชž่จ€็š„60ๅˆ†้˜
ย 
TradingBot & Open Source ็ฒพ็ฅž
TradingBot & Open Source ็ฒพ็ฅžTradingBot & Open Source ็ฒพ็ฅž
TradingBot & Open Source ็ฒพ็ฅž
ย 
ไบบๅทฅๆ™บ่ƒฝๅœจ้‡ๅŒ–ๆŠ•่ต„ๅˆ†ๆžไธญ็š„ๅฎž่ทต
ไบบๅทฅๆ™บ่ƒฝๅœจ้‡ๅŒ–ๆŠ•่ต„ๅˆ†ๆžไธญ็š„ๅฎž่ทตไบบๅทฅๆ™บ่ƒฝๅœจ้‡ๅŒ–ๆŠ•่ต„ๅˆ†ๆžไธญ็š„ๅฎž่ทต
ไบบๅทฅๆ™บ่ƒฝๅœจ้‡ๅŒ–ๆŠ•่ต„ๅˆ†ๆžไธญ็š„ๅฎž่ทต
ย 
Java SE 8 best practices
Java SE 8 best practicesJava SE 8 best practices
Java SE 8 best practices
ย 
ๅฎนๅ™จๅผ่ปŸ้ซ”้–‹็™ผไป‹็ดน
ๅฎนๅ™จๅผ่ปŸ้ซ”้–‹็™ผไป‹็ดนๅฎนๅ™จๅผ่ปŸ้ซ”้–‹็™ผไป‹็ดน
ๅฎนๅ™จๅผ่ปŸ้ซ”้–‹็™ผไป‹็ดน
ย 
[็ณปๅˆ—ๆดปๅ‹•] ๆ‰‹ๆŠŠๆ‰‹ๆ•™ไฝ R่ชž่จ€่ณ‡ๆ–™ๅˆ†ๆžๅฏฆๅ‹™
[็ณปๅˆ—ๆดปๅ‹•] ๆ‰‹ๆŠŠๆ‰‹ๆ•™ไฝ R่ชž่จ€่ณ‡ๆ–™ๅˆ†ๆžๅฏฆๅ‹™[็ณปๅˆ—ๆดปๅ‹•] ๆ‰‹ๆŠŠๆ‰‹ๆ•™ไฝ R่ชž่จ€่ณ‡ๆ–™ๅˆ†ๆžๅฏฆๅ‹™
[็ณปๅˆ—ๆดปๅ‹•] ๆ‰‹ๆŠŠๆ‰‹ๆ•™ไฝ R่ชž่จ€่ณ‡ๆ–™ๅˆ†ๆžๅฏฆๅ‹™
ย 

Similar to Trading With Open Source Tools

Finance for hackers
Finance for hackersFinance for hackers
Finance for hackersNick Owen
ย 
ุชุนู„ูŠู… ุงู„ููˆุฑูƒุณ ู…ุน ุงู ุงูƒุณ ุงุฑุจูŠุง
ุชุนู„ูŠู… ุงู„ููˆุฑูƒุณ ู…ุน ุงู ุงูƒุณ ุงุฑุจูŠุงุชุนู„ูŠู… ุงู„ููˆุฑูƒุณ ู…ุน ุงู ุงูƒุณ ุงุฑุจูŠุง
ุชุนู„ูŠู… ุงู„ููˆุฑูƒุณ ู…ุน ุงู ุงูƒุณ ุงุฑุจูŠุงMohamed Mahmoud
ย 
AP MIcro Perfect Competition
AP MIcro Perfect CompetitionAP MIcro Perfect Competition
AP MIcro Perfect CompetitionMrRed
ย 
Chap5
Chap5Chap5
Chap5Shu Shin
ย 
Chap5
Chap5Chap5
Chap5Shu Shin
ย 
Case 11 Pacific Drilling the Preferred Offshore Driller C-14
Case 11 Pacific Drilling the Preferred Offshore Driller C-14Case 11 Pacific Drilling the Preferred Offshore Driller C-14
Case 11 Pacific Drilling the Preferred Offshore Driller C-14TawnaDelatorrejs
ย 
Business Game Presentation of Management Audit
Business Game Presentation of Management AuditBusiness Game Presentation of Management Audit
Business Game Presentation of Management AuditEren Kongu
ย 
Shorting Index Futures Options
Shorting Index Futures OptionsShorting Index Futures Options
Shorting Index Futures OptionsEricHartford
ย 
SCORECARD2
SCORECARD2SCORECARD2
SCORECARD2Ashley Smith
ย 
[Econ] PPT by Kittycolz -- Pure Competition McConnel 16th-19th Edition
[Econ] PPT by Kittycolz  -- Pure Competition McConnel 16th-19th Edition[Econ] PPT by Kittycolz  -- Pure Competition McConnel 16th-19th Edition
[Econ] PPT by Kittycolz -- Pure Competition McConnel 16th-19th EditionNicole Lim
ย 
Amibroker AFL Coding - Webinar
Amibroker AFL Coding - WebinarAmibroker AFL Coding - Webinar
Amibroker AFL Coding - WebinarMarketcalls
ย 
Capital structure and cost of equity pdf
Capital structure and cost of equity pdfCapital structure and cost of equity pdf
Capital structure and cost of equity pdfDavid Keck
ย 
Linux kernel debugging(PDF format)
Linux kernel debugging(PDF format)Linux kernel debugging(PDF format)
Linux kernel debugging(PDF format)yang firo
ย 
Linux kernel debugging(ODP format)
Linux kernel debugging(ODP format)Linux kernel debugging(ODP format)
Linux kernel debugging(ODP format)yang firo
ย 
AP Micro Pure Monopoly
AP Micro  Pure MonopolyAP Micro  Pure Monopoly
AP Micro Pure MonopolyMrRed
ย 
TMPA-2017: Defect Report Classification in Accordance with Areas of Testing
TMPA-2017: Defect Report Classification in Accordance with Areas of TestingTMPA-2017: Defect Report Classification in Accordance with Areas of Testing
TMPA-2017: Defect Report Classification in Accordance with Areas of TestingIosif Itkin
ย 
2. intro. to six sigma
2. intro. to six sigma2. intro. to six sigma
2. intro. to six sigmaHakeem-Ur- Rehman
ย 
HBASE Performane Test
HBASE Performane TestHBASE Performane Test
HBASE Performane TestLouis liu
ย 
Econ606 chapter 10 2020
Econ606 chapter 10 2020Econ606 chapter 10 2020
Econ606 chapter 10 2020sakanor
ย 

Similar to Trading With Open Source Tools (20)

Finance for hackers
Finance for hackersFinance for hackers
Finance for hackers
ย 
ุชุนู„ูŠู… ุงู„ููˆุฑูƒุณ ู…ุน ุงู ุงูƒุณ ุงุฑุจูŠุง
ุชุนู„ูŠู… ุงู„ููˆุฑูƒุณ ู…ุน ุงู ุงูƒุณ ุงุฑุจูŠุงุชุนู„ูŠู… ุงู„ููˆุฑูƒุณ ู…ุน ุงู ุงูƒุณ ุงุฑุจูŠุง
ุชุนู„ูŠู… ุงู„ููˆุฑูƒุณ ู…ุน ุงู ุงูƒุณ ุงุฑุจูŠุง
ย 
AP MIcro Perfect Competition
AP MIcro Perfect CompetitionAP MIcro Perfect Competition
AP MIcro Perfect Competition
ย 
Chap5
Chap5Chap5
Chap5
ย 
Chap5
Chap5Chap5
Chap5
ย 
Case 11 Pacific Drilling the Preferred Offshore Driller C-14
Case 11 Pacific Drilling the Preferred Offshore Driller C-14Case 11 Pacific Drilling the Preferred Offshore Driller C-14
Case 11 Pacific Drilling the Preferred Offshore Driller C-14
ย 
Business Game Presentation of Management Audit
Business Game Presentation of Management AuditBusiness Game Presentation of Management Audit
Business Game Presentation of Management Audit
ย 
Shorting Index Futures Options
Shorting Index Futures OptionsShorting Index Futures Options
Shorting Index Futures Options
ย 
SCORECARD2
SCORECARD2SCORECARD2
SCORECARD2
ย 
[Econ] PPT by Kittycolz -- Pure Competition McConnel 16th-19th Edition
[Econ] PPT by Kittycolz  -- Pure Competition McConnel 16th-19th Edition[Econ] PPT by Kittycolz  -- Pure Competition McConnel 16th-19th Edition
[Econ] PPT by Kittycolz -- Pure Competition McConnel 16th-19th Edition
ย 
Amibroker AFL Coding - Webinar
Amibroker AFL Coding - WebinarAmibroker AFL Coding - Webinar
Amibroker AFL Coding - Webinar
ย 
Capital structure and cost of equity pdf
Capital structure and cost of equity pdfCapital structure and cost of equity pdf
Capital structure and cost of equity pdf
ย 
Linux kernel debugging(PDF format)
Linux kernel debugging(PDF format)Linux kernel debugging(PDF format)
Linux kernel debugging(PDF format)
ย 
Linux kernel debugging(ODP format)
Linux kernel debugging(ODP format)Linux kernel debugging(ODP format)
Linux kernel debugging(ODP format)
ย 
AP Micro Pure Monopoly
AP Micro  Pure MonopolyAP Micro  Pure Monopoly
AP Micro Pure Monopoly
ย 
TMPA-2017: Defect Report Classification in Accordance with Areas of Testing
TMPA-2017: Defect Report Classification in Accordance with Areas of TestingTMPA-2017: Defect Report Classification in Accordance with Areas of Testing
TMPA-2017: Defect Report Classification in Accordance with Areas of Testing
ย 
2. intro. to six sigma
2. intro. to six sigma2. intro. to six sigma
2. intro. to six sigma
ย 
HBASE Performane Test
HBASE Performane TestHBASE Performane Test
HBASE Performane Test
ย 
sk discovery-006120-Algorithm Investment Report
sk discovery-006120-Algorithm Investment Reportsk discovery-006120-Algorithm Investment Report
sk discovery-006120-Algorithm Investment Report
ย 
Econ606 chapter 10 2020
Econ606 chapter 10 2020Econ606 chapter 10 2020
Econ606 chapter 10 2020
ย 

More from clkao

AnyMQ, Hippie, and the real-time web
AnyMQ, Hippie, and the real-time webAnyMQ, Hippie, and the real-time web
AnyMQ, Hippie, and the real-time webclkao
ย 
Websockets at tossug
Websockets at tossugWebsockets at tossug
Websockets at tossugclkao
ย 
AnyMQ, Hippie, and the real-time web
AnyMQ, Hippie, and the real-time webAnyMQ, Hippie, and the real-time web
AnyMQ, Hippie, and the real-time webclkao
ย 
"Lego Programming" with Lorzy
"Lego Programming" with Lorzy"Lego Programming" with Lorzy
"Lego Programming" with Lorzyclkao
ย 
Devel::NYTProf
Devel::NYTProfDevel::NYTProf
Devel::NYTProfclkao
ย 
Twopenhack08 Fnord
Twopenhack08 FnordTwopenhack08 Fnord
Twopenhack08 Fnordclkao
ย 
Svk Br Yapceu2008
Svk Br Yapceu2008Svk Br Yapceu2008
Svk Br Yapceu2008clkao
ย 
prototype::signatures
prototype::signaturesprototype::signatures
prototype::signaturesclkao
ย 
Leon & Andrea
Leon & AndreaLeon & Andrea
Leon & Andreaclkao
ย 

More from clkao (9)

AnyMQ, Hippie, and the real-time web
AnyMQ, Hippie, and the real-time webAnyMQ, Hippie, and the real-time web
AnyMQ, Hippie, and the real-time web
ย 
Websockets at tossug
Websockets at tossugWebsockets at tossug
Websockets at tossug
ย 
AnyMQ, Hippie, and the real-time web
AnyMQ, Hippie, and the real-time webAnyMQ, Hippie, and the real-time web
AnyMQ, Hippie, and the real-time web
ย 
"Lego Programming" with Lorzy
"Lego Programming" with Lorzy"Lego Programming" with Lorzy
"Lego Programming" with Lorzy
ย 
Devel::NYTProf
Devel::NYTProfDevel::NYTProf
Devel::NYTProf
ย 
Twopenhack08 Fnord
Twopenhack08 FnordTwopenhack08 Fnord
Twopenhack08 Fnord
ย 
Svk Br Yapceu2008
Svk Br Yapceu2008Svk Br Yapceu2008
Svk Br Yapceu2008
ย 
prototype::signatures
prototype::signaturesprototype::signatures
prototype::signatures
ย 
Leon & Andrea
Leon & AndreaLeon & Andrea
Leon & Andrea
ย 

Recently uploaded

Top Rated Pune Call Girls Viman Nagar โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex...
Top Rated  Pune Call Girls Viman Nagar โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex...Top Rated  Pune Call Girls Viman Nagar โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex...
Top Rated Pune Call Girls Viman Nagar โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex...Call Girls in Nagpur High Profile
ย 
Stock Market Brief Deck (Under Pressure).pdf
Stock Market Brief Deck (Under Pressure).pdfStock Market Brief Deck (Under Pressure).pdf
Stock Market Brief Deck (Under Pressure).pdfMichael Silva
ย 
( Jasmin ) Top VIP Escorts Service Dindigul ๐Ÿ’ง 7737669865 ๐Ÿ’ง by Dindigul Call G...
( Jasmin ) Top VIP Escorts Service Dindigul ๐Ÿ’ง 7737669865 ๐Ÿ’ง by Dindigul Call G...( Jasmin ) Top VIP Escorts Service Dindigul ๐Ÿ’ง 7737669865 ๐Ÿ’ง by Dindigul Call G...
( Jasmin ) Top VIP Escorts Service Dindigul ๐Ÿ’ง 7737669865 ๐Ÿ’ง by Dindigul Call G...dipikadinghjn ( Why You Choose Us? ) Escorts
ย 
VIP Call Girl in Mumbai ๐Ÿ’ง 9920725232 ( Call Me ) Get A New Crush Everyday Wit...
VIP Call Girl in Mumbai ๐Ÿ’ง 9920725232 ( Call Me ) Get A New Crush Everyday Wit...VIP Call Girl in Mumbai ๐Ÿ’ง 9920725232 ( Call Me ) Get A New Crush Everyday Wit...
VIP Call Girl in Mumbai ๐Ÿ’ง 9920725232 ( Call Me ) Get A New Crush Everyday Wit...dipikadinghjn ( Why You Choose Us? ) Escorts
ย 
Bandra High Profile Sexy Call Girls,9833754194-Khar Road Speciality Call Girl...
Bandra High Profile Sexy Call Girls,9833754194-Khar Road Speciality Call Girl...Bandra High Profile Sexy Call Girls,9833754194-Khar Road Speciality Call Girl...
Bandra High Profile Sexy Call Girls,9833754194-Khar Road Speciality Call Girl...priyasharma62062
ย 
Best VIP Call Girls Morni Hills Just Click Me 6367492432
Best VIP Call Girls Morni Hills Just Click Me 6367492432Best VIP Call Girls Morni Hills Just Click Me 6367492432
Best VIP Call Girls Morni Hills Just Click Me 6367492432motiram463
ย 
(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7
(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7
(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7Call Girls in Nagpur High Profile Call Girls
ย 
Call Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
ย 
Vip Call US ๐Ÿ“ž 7738631006 โœ…Call Girls In Sakinaka ( Mumbai )
Vip Call US ๐Ÿ“ž 7738631006 โœ…Call Girls In Sakinaka ( Mumbai )Vip Call US ๐Ÿ“ž 7738631006 โœ…Call Girls In Sakinaka ( Mumbai )
Vip Call US ๐Ÿ“ž 7738631006 โœ…Call Girls In Sakinaka ( Mumbai )Pooja Nehwal
ย 
Booking open Available Pune Call Girls Wadgaon Sheri 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Wadgaon Sheri  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Wadgaon Sheri  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Wadgaon Sheri 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
ย 
VIP Independent Call Girls in Andheri ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts...VIP Independent Call Girls in Andheri ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts...dipikadinghjn ( Why You Choose Us? ) Escorts
ย 
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...priyasharma62062
ย 
Top Rated Pune Call Girls Sinhagad Road โŸŸ 6297143586 โŸŸ Call Me For Genuine S...
Top Rated  Pune Call Girls Sinhagad Road โŸŸ 6297143586 โŸŸ Call Me For Genuine S...Top Rated  Pune Call Girls Sinhagad Road โŸŸ 6297143586 โŸŸ Call Me For Genuine S...
Top Rated Pune Call Girls Sinhagad Road โŸŸ 6297143586 โŸŸ Call Me For Genuine S...Call Girls in Nagpur High Profile
ย 
Call Girls Rajgurunagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Rajgurunagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Rajgurunagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Rajgurunagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
ย 
Kopar Khairane Russian Call Girls Number-9833754194-Navi Mumbai Fantastic Unl...
Kopar Khairane Russian Call Girls Number-9833754194-Navi Mumbai Fantastic Unl...Kopar Khairane Russian Call Girls Number-9833754194-Navi Mumbai Fantastic Unl...
Kopar Khairane Russian Call Girls Number-9833754194-Navi Mumbai Fantastic Unl...priyasharma62062
ย 
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...priyasharma62062
ย 

Recently uploaded (20)

W.D. Gann Theory Complete Information.pdf
W.D. Gann Theory Complete Information.pdfW.D. Gann Theory Complete Information.pdf
W.D. Gann Theory Complete Information.pdf
ย 
(INDIRA) Call Girl Mumbai Call Now 8250077686 Mumbai Escorts 24x7
(INDIRA) Call Girl Mumbai Call Now 8250077686 Mumbai Escorts 24x7(INDIRA) Call Girl Mumbai Call Now 8250077686 Mumbai Escorts 24x7
(INDIRA) Call Girl Mumbai Call Now 8250077686 Mumbai Escorts 24x7
ย 
(INDIRA) Call Girl Srinagar Call Now 8617697112 Srinagar Escorts 24x7
(INDIRA) Call Girl Srinagar Call Now 8617697112 Srinagar Escorts 24x7(INDIRA) Call Girl Srinagar Call Now 8617697112 Srinagar Escorts 24x7
(INDIRA) Call Girl Srinagar Call Now 8617697112 Srinagar Escorts 24x7
ย 
Top Rated Pune Call Girls Viman Nagar โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex...
Top Rated  Pune Call Girls Viman Nagar โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex...Top Rated  Pune Call Girls Viman Nagar โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex...
Top Rated Pune Call Girls Viman Nagar โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex...
ย 
Stock Market Brief Deck (Under Pressure).pdf
Stock Market Brief Deck (Under Pressure).pdfStock Market Brief Deck (Under Pressure).pdf
Stock Market Brief Deck (Under Pressure).pdf
ย 
( Jasmin ) Top VIP Escorts Service Dindigul ๐Ÿ’ง 7737669865 ๐Ÿ’ง by Dindigul Call G...
( Jasmin ) Top VIP Escorts Service Dindigul ๐Ÿ’ง 7737669865 ๐Ÿ’ง by Dindigul Call G...( Jasmin ) Top VIP Escorts Service Dindigul ๐Ÿ’ง 7737669865 ๐Ÿ’ง by Dindigul Call G...
( Jasmin ) Top VIP Escorts Service Dindigul ๐Ÿ’ง 7737669865 ๐Ÿ’ง by Dindigul Call G...
ย 
VIP Call Girl in Mumbai ๐Ÿ’ง 9920725232 ( Call Me ) Get A New Crush Everyday Wit...
VIP Call Girl in Mumbai ๐Ÿ’ง 9920725232 ( Call Me ) Get A New Crush Everyday Wit...VIP Call Girl in Mumbai ๐Ÿ’ง 9920725232 ( Call Me ) Get A New Crush Everyday Wit...
VIP Call Girl in Mumbai ๐Ÿ’ง 9920725232 ( Call Me ) Get A New Crush Everyday Wit...
ย 
Bandra High Profile Sexy Call Girls,9833754194-Khar Road Speciality Call Girl...
Bandra High Profile Sexy Call Girls,9833754194-Khar Road Speciality Call Girl...Bandra High Profile Sexy Call Girls,9833754194-Khar Road Speciality Call Girl...
Bandra High Profile Sexy Call Girls,9833754194-Khar Road Speciality Call Girl...
ย 
Best VIP Call Girls Morni Hills Just Click Me 6367492432
Best VIP Call Girls Morni Hills Just Click Me 6367492432Best VIP Call Girls Morni Hills Just Click Me 6367492432
Best VIP Call Girls Morni Hills Just Click Me 6367492432
ย 
(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7
(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7
(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7
ย 
Call Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance Booking
ย 
Call Girls in New Ashok Nagar, (delhi) call me [9953056974] escort service 24X7
Call Girls in New Ashok Nagar, (delhi) call me [9953056974] escort service 24X7Call Girls in New Ashok Nagar, (delhi) call me [9953056974] escort service 24X7
Call Girls in New Ashok Nagar, (delhi) call me [9953056974] escort service 24X7
ย 
Vip Call US ๐Ÿ“ž 7738631006 โœ…Call Girls In Sakinaka ( Mumbai )
Vip Call US ๐Ÿ“ž 7738631006 โœ…Call Girls In Sakinaka ( Mumbai )Vip Call US ๐Ÿ“ž 7738631006 โœ…Call Girls In Sakinaka ( Mumbai )
Vip Call US ๐Ÿ“ž 7738631006 โœ…Call Girls In Sakinaka ( Mumbai )
ย 
Booking open Available Pune Call Girls Wadgaon Sheri 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Wadgaon Sheri  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Wadgaon Sheri  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Wadgaon Sheri 6297143586 Call Hot Ind...
ย 
VIP Independent Call Girls in Andheri ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts...VIP Independent Call Girls in Andheri ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts...
ย 
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...
ย 
Top Rated Pune Call Girls Sinhagad Road โŸŸ 6297143586 โŸŸ Call Me For Genuine S...
Top Rated  Pune Call Girls Sinhagad Road โŸŸ 6297143586 โŸŸ Call Me For Genuine S...Top Rated  Pune Call Girls Sinhagad Road โŸŸ 6297143586 โŸŸ Call Me For Genuine S...
Top Rated Pune Call Girls Sinhagad Road โŸŸ 6297143586 โŸŸ Call Me For Genuine S...
ย 
Call Girls Rajgurunagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Rajgurunagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Rajgurunagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Rajgurunagar Call Me 7737669865 Budget Friendly No Advance Booking
ย 
Kopar Khairane Russian Call Girls Number-9833754194-Navi Mumbai Fantastic Unl...
Kopar Khairane Russian Call Girls Number-9833754194-Navi Mumbai Fantastic Unl...Kopar Khairane Russian Call Girls Number-9833754194-Navi Mumbai Fantastic Unl...
Kopar Khairane Russian Call Girls Number-9833754194-Navi Mumbai Fantastic Unl...
ย 
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...
ย 

Trading With Open Source Tools

  • 1. Trading with open source tools Chia-liang Kao clkao@clkao.org OSDC.TW 2009 Taipei
  • 2.
  • 3.
  • 4.
  • 5.
  • 7. Caution There is ABSOLUTELY NO WARRANTY if you use any of the code or strategy mentioned in this talk.
  • 11. Take #1 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade
  • 12. Take #1 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade Long Signal
  • 13. Take #1 (Random returns 0..5) SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade Long Signal
  • 14. Take #1 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade Long Signal
  • 15. Take #1 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade Short Signal
  • 16. Take #1 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade Enters at 08:50
  • 17. Take #1 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade
  • 18. Take #1 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade % perl backtest.pl --start=2001-01-01 --end=2007-12-31 --timeframe 5min --money-management='FixedShares 1' OSDC1 TX
  • 19. Take #1 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade Taiwan Weighted Futures 1 point = nt$200 % perl backtest.pl --start=2001-01-01 --end=2007-12-31 --timeframe 5min --money-management='FixedShares 1' OSDC1 TX
  • 20. Take #1 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade
  • 21. Take #1 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade ----------------------------------------------------- Performance : -199.1 ( nan%) Buy & Hold : 77.5% ( 14.2%) () => by year MaxDrawDown : 201.6% B&H MaxDrawDown : 44.8% Best performance : 3.3% Worst performance : -204.9 Net gain : -19910.00 Gross gain : -2590.00 Trades statistics : Number of trades : 1732 Trades/Year : 247.97 Number of gains : 698 Number of losses : 1034 Win. ratio : 40.3% Max consec. win : 7 Max consec. loss : 13 Expectancy : -0.00 Average gain : 0.87% Average loss : -0.94% Avg. perf : nan% Biggest gain : 6.44% Biggest loss : -6.65% Profit fac : 0.92 Sum of gains : 36090.00 Sum of losses : -56000.00 Risk of ruin : 100.0
  • 22. Take #1 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade ----------------------------------------------------- Performance : -199.1 ( nan%) Buy & Hold : 77.5% ( 14.2%) () => by year MaxDrawDown : 201.6% B&H MaxDrawDown : 44.8% Best performance : 3.3% Worst performance : -204.9 Net gain : -19910.00 Gross gain : -2590.00 Trades statistics : Number of trades : 1732 Trades/Year : 247.97 Number of gains : 698 Number of losses : 1034 Win. ratio : 40.3% Max consec. win : 7 Max consec. loss : 13 Expectancy : -0.00 Average gain : 0.87% Average loss : -0.94% Avg. perf : nan% Biggest gain : 6.44% Biggest loss : -6.65% Profit fac : 0.92 Sum of gains : 36090.00 Sum of losses : -56000.00 Risk of ruin : 100.0
  • 23. Take #1 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade ----------------------------------------------------- Performance : -199.1 ( nan%) Buy & Hold : 77.5% ( 14.2%) () => by year MaxDrawDown : 201.6% B&H MaxDrawDown : 44.8% Best performance : 3.3% Worst performance : -204.9 -NT$3,982,000 Net gain : -19910.00 Gross gain : -2590.00 Trades statistics : Number of trades : 1732 Trades/Year : 247.97 Number of gains : 698 Number of losses : 1034 Win. ratio : 40.3% Max consec. win : 7 Max consec. loss : 13 Expectancy : -0.00 Average gain : 0.87% Average loss : -0.94% Avg. perf : nan% Biggest gain : 6.44% Biggest loss : -6.65% Profit fac : 0.92 Sum of gains : 36090.00 Sum of losses : -56000.00 Risk of ruin : 100.0
  • 24. Take #1 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade ----------------------------------------------------- Performance : -199.1 ( nan%) Buy & Hold : 77.5% ( 14.2%) () => by year MaxDrawDown : 201.6% B&H MaxDrawDown : 44.8% Best performance : 3.3% Worst performance : -204.9 -NT$3,982,000 Net gain : -19910.00 Gross gain : -2590.00 Trades statistics : Number of trades : 1732 Trades/Year : 247.97 Number of gains : 698 Number of losses : 1034 Win. ratio : 40.3% Max consec. win : 7 Max consec. loss : 13 Expectancy : -0.00 Average gain : 0.87% Average loss : -0.94% Avg. perf : nan% Biggest gain : 6.44% Biggest loss : -6.65% Profit fac : 0.92 Sum of gains : 36090.00 Sum of losses : -56000.00 Risk of ruin : 100.0 DOOMED!!
  • 25. Take #2 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade |CS:Stop:Fixed 1.5
  • 26. Take #2 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade Stop when losing 1.5% |CS:Stop:Fixed 1.5
  • 27. Take #2 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade |CS:Stop:Fixed 1.5
  • 28. Take #2 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade |CS:Stop:Fixed 1.5 ----------------------------------------------------- Performance : -124.4 ( nan%) Buy & Hold : 77.5% ( 14.2%) () => by year MaxDrawDown : 136.8% B&H MaxDrawDown : 44.8% Best performance : 2.0% Worst performance : -137.5 Net gain : -12442.13 Gross gain : 4877.87 Trades statistics : Number of trades : 1732 Trades/Year : 247.97 Number of gains : 715 Number of losses : 1017 Win. ratio : 41.3% Max consec. win : 11 Max consec. loss : 16 Expectancy : -0.00 Average gain : 0.88% Average loss : -0.83% Avg. perf : nan% Biggest gain : 5.67% Biggest loss : -1.79% Profit fac : 1.05 Sum of gains : 37037.00 Sum of losses : -49479.13 Risk of ruin : 100.0
  • 29. Take #2 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade |CS:Stop:Fixed 1.5 ----------------------------------------------------- Performance : -124.4 ( nan%) Buy & Hold : 77.5% ( 14.2%) () => by year MaxDrawDown : 136.8% B&H MaxDrawDown : 44.8% Best performance : 2.0% Worst performance : -137.5 -NT$2,488,426 Net gain : -12442.13 Gross gain : 4877.87 Trades statistics : Number of trades : 1732 Trades/Year : 247.97 Number of gains : 715 Number of losses : 1017 Win. ratio : 41.3% Max consec. win : 11 Max consec. loss : 16 Expectancy : -0.00 Average gain : 0.88% Average loss : -0.83% Avg. perf : nan% Biggest gain : 5.67% Biggest loss : -1.79% Profit fac : 1.05 Sum of gains : 37037.00 Sum of losses : -49479.13 Risk of ruin : 100.0
  • 30. Take #2 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade |CS:Stop:Fixed 1.5 ----------------------------------------------------- Performance : -124.4 ( nan%) Buy & Hold : 77.5% ( 14.2%) () => by year MaxDrawDown : 136.8% B&H MaxDrawDown : 44.8% Best performance : 2.0% Worst performance : -137.5 -NT$2,488,426 Net gain : -12442.13 Gross gain : 4877.87 Trades statistics : Number of trades : 1732 Trades/Year : 247.97 Number of gains : 715 Number of losses : 1017 Win. ratio : 41.3% Max consec. win : 11 Max consec. loss : 16 Expectancy : -0.00 Average gain : 0.88% Average loss : -0.83% Avg. perf : nan% Biggest gain : 5.67% Biggest loss : -1.79% Profit fac : 1.05 Sum of gains : 37037.00 Sum of losses : -49479.13 Risk of ruin : 100.0 Much better, but still negative
  • 31. Take #3 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade |CS:Stop:Fixed 2.5
  • 32. Take #3 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade Stop when losing 2.5% |CS:Stop:Fixed 2.5
  • 33. Take #3 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade |CS:Stop:Fixed 2.5
  • 34. Take #3 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade |CS:Stop:Fixed 2.5 ----------------------------------------------------- Performance : -149.8 ( nan%) Buy & Hold : 77.5% ( 14.2%) () => by year MaxDrawDown : 155.0% B&H MaxDrawDown : 44.8% Best performance : 0.0% Worst performance : -155.0 Net gain : -14977.47 Gross gain : 2342.53 Trades statistics : Number of trades : 1732 Trades/Year : 247.97 Number of gains : 706 Number of losses : 1026 Win. ratio : 40.8% Max consec. win : 8 Max consec. loss : 14 Expectancy : -0.00 Average gain : 0.91% Average loss : -0.87% Avg. perf : nan% Biggest gain : 6.29% Biggest loss : -2.78% Profit fac : 1.05 Sum of gains : 37749.00 Sum of losses : -52726.47 Risk of ruin : 100.0
  • 35. Take #3 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade |CS:Stop:Fixed 2.5 ----------------------------------------------------- Performance : -149.8 ( nan%) Buy & Hold : 77.5% ( 14.2%) () => by year MaxDrawDown : 155.0% B&H MaxDrawDown : 44.8% Best performance : 0.0% Worst performance : -155.0 -NT$2,995,494 Net gain : -14977.47 Gross gain : 2342.53 Trades statistics : Number of trades : 1732 Trades/Year : 247.97 Number of gains : 706 Number of losses : 1026 Win. ratio : 40.8% Max consec. win : 8 Max consec. loss : 14 Expectancy : -0.00 Average gain : 0.91% Average loss : -0.87% Avg. perf : nan% Biggest gain : 6.29% Biggest loss : -2.78% Profit fac : 1.05 Sum of gains : 37749.00 Sum of losses : -52726.47 Risk of ruin : 100.0
  • 36. Take #3 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:DayTrade |CS:Stop:Fixed 2.5 ----------------------------------------------------- Performance : -149.8 ( nan%) Buy & Hold : 77.5% ( 14.2%) () => by year MaxDrawDown : 155.0% B&H MaxDrawDown : 44.8% Best performance : 0.0% Worst performance : -155.0 -NT$2,995,494 Net gain : -14977.47 Gross gain : 2342.53 Trades statistics : Number of trades : 1732 Trades/Year : 247.97 Number of gains : 706 Number of losses : 1026 Win. ratio : 40.8% Max consec. win : 8 Max consec. loss : 14 Expectancy : -0.00 Average gain : 0.91% Average loss : -0.87% Avg. perf : nan% Biggest gain : 6.29% Biggest loss : -2.78% Profit fac : 1.05 Sum of gains : 37749.00 Sum of losses : -52726.47 Risk of ruin : 100.0 Not better after increase the stop threshold
  • 37. Take #4 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:Stop:Fixed 5 |CS:CloseGain 10
  • 38. Take #4 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:Stop:Fixed 5 Stop when winning 10% |CS:CloseGain 10
  • 39. Take #4 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:Stop:Fixed 5 |CS:CloseGain 10
  • 40. Take #4 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:Stop:Fixed 5 |CS:CloseGain 10 ----------------------------------------------------- Performance : 29.2% ( 6.1%) Buy & Hold : 77.5% ( 14.2%) () => by year MaxDrawDown : 24.9% B&H MaxDrawDown : 44.8% Best performance : 49.7% Worst performance : -1.2% Net gain : 2920.65 Gross gain : 3730.65 Trades statistics : Number of trades : 81 Trades/Year : 11.60 Number of gains : 32 Number of losses : 49 Win. ratio : 39.5% Max consec. win : 4 Max consec. loss : 8 Expectancy : 0.01 Average gain : 9.92% Average loss : -5.43% Avg. perf : 0.32% Biggest gain : 11.50% Biggest loss : -9.73% Profit fac : 1.83 Sum of gains : 18313.10 Sum of losses : -15392.45 Risk of ruin : 21.3%
  • 41. Take #4 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:Stop:Fixed 5 |CS:CloseGain 10 ----------------------------------------------------- Performance : 29.2% ( 6.1%) Buy & Hold : 77.5% ( 14.2%) () => by year MaxDrawDown : 24.9% B&H MaxDrawDown : 44.8% Best performance : 49.7% Worst performance : -1.2% NT$584,130 Net gain : 2920.65 Gross gain : 3730.65 Trades statistics : Number of trades : 81 Trades/Year : 11.60 Number of gains : 32 Number of losses : 49 Win. ratio : 39.5% Max consec. win : 4 Max consec. loss : 8 Expectancy : 0.01 Average gain : 9.92% Average loss : -5.43% Avg. perf : 0.32% Biggest gain : 11.50% Biggest loss : -9.73% Profit fac : 1.83 Sum of gains : 18313.10 Sum of losses : -15392.45 Risk of ruin : 21.3%
  • 42. Take #4 SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:Stop:Fixed 5 |CS:CloseGain 10 ----------------------------------------------------- Performance : 29.2% ( 6.1%) Buy & Hold : 77.5% ( 14.2%) () => by year MaxDrawDown : 24.9% B&H MaxDrawDown : 44.8% Best performance : 49.7% Worst performance : -1.2% NT$584,130 Net gain : 2920.65 Gross gain : 3730.65 Trades statistics : Number of trades : 81 Trades/Year : 11.60 PROFIT!! Number of gains : 32 Number of losses : 49 Win. ratio : 39.5% Max consec. win : 4 Max consec. loss : 8 Expectancy : 0.01 Average gain : 9.92% Average loss : -5.43% Avg. perf : 0.32% Biggest gain : 11.50% Biggest loss : -9.73% Profit fac : 1.83 Sum of gains : 18313.10 Sum of losses : -15392.45 Risk of ruin : 21.3%
  • 43. Take #5 SY:Generic {I:G:Eval ( {I:LastTrade} ? {I:LastTrade}==1 : {S:G:Above {I:Random 6} 2})} {I:G:Eval ( {I:LastTrade} ? {I:LastTrade}==-1 : {S:G:Below {I:Random 6} 3})} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:Stop:Fixed 5 |CS:CloseGain 10
  • 44. Take #5 SY:Generic {I:G:Eval ( {I:LastTrade} ? {I:LastTrade}==1 : {S:G:Above {I:Random 6} 2})} {I:G:Eval ( {I:LastTrade} ? {I:LastTrade}==-1 : {S:G:Below {I:Random 6} 3})} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 Following results from last trade |CS:Stop:Fixed 5 |CS:CloseGain 10
  • 45. Take #5 SY:Generic {I:G:Eval ( {I:LastTrade} ? {I:LastTrade}==1 : {S:G:Above {I:Random 6} 2})} {I:G:Eval ( {I:LastTrade} ? {I:LastTrade}==-1 : {S:G:Below {I:Random 6} 3})} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:Stop:Fixed 5 |CS:CloseGain 10
  • 46. Take #5 SY:Generic {I:G:Eval ( {I:LastTrade} ? {I:LastTrade}==1 : {S:G:Above {I:Random 6} 2})} {I:G:Eval ( {I:LastTrade} ? {I:LastTrade}==-1 : {S:G:Below {I:Random 6} 3})} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:Stop:Fixed 5 |CS:CloseGain 10 ----------------------------------------------------- Performance : 48.4% ( 9.5%) Buy & Hold : 77.5% ( 14.2%) () => by year MaxDrawDown : 19.8% B&H MaxDrawDown : 44.8% Best performance : 49.5% Worst performance : 0.0% Net gain : 4839.75 Gross gain : 5699.75 Trades statistics : Number of trades : 86 Trades/Year : 12.31 Number of gains : 36 Number of losses : 50 Win. ratio : 41.9% Max consec. win : 4 Max consec. loss : 8 Expectancy : 0.01 Average gain : 9.72% Average loss : -5.48% Avg. perf : 0.46% Biggest gain : 10.71% Biggest loss : -11.33% Profit fac : 1.77 Sum of gains : 20674.70 Sum of losses : -15834.95 Risk of ruin : 9.9%
  • 47. Take #5 SY:Generic {I:G:Eval ( {I:LastTrade} ? {I:LastTrade}==1 : {S:G:Above {I:Random 6} 2})} {I:G:Eval ( {I:LastTrade} ? {I:LastTrade}==-1 : {S:G:Below {I:Random 6} 3})} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:Stop:Fixed 5 |CS:CloseGain 10 ----------------------------------------------------- Performance : 48.4% ( 9.5%) Buy & Hold : 77.5% ( 14.2%) () => by year MaxDrawDown : 19.8% B&H MaxDrawDown : 44.8% Best performance : 49.5% Worst performance : 0.0% NT$967,950 Net gain : 4839.75 Gross gain : 5699.75 Trades statistics : Number of trades : 86 Trades/Year : 12.31 Number of gains : 36 Number of losses : 50 Win. ratio : 41.9% Max consec. win : 4 Max consec. loss : 8 Expectancy : 0.01 Average gain : 9.72% Average loss : -5.48% Avg. perf : 0.46% Biggest gain : 10.71% Biggest loss : -11.33% Profit fac : 1.77 Sum of gains : 20674.70 Sum of losses : -15834.95 Risk of ruin : 9.9%
  • 48. The OSDC Trading System Got your dice?
  • 49. SY:Generic {I:G:Eval ( {I:LastTrade} ? {I:LastTrade}==1 : {S:G:Above {I:Random 6} 2})} {I:G:Eval ( {I:LastTrade} ? {I:LastTrade}==-1 : {S:G:Below {I:Random 6} 3})} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:Stop:Fixed 5 |CS:CloseGain 10 ----------------------------------------------------- Performance : 48.4% ( 9.5%) Buy & Hold : 77.5% ( 14.2%) () => by year MaxDrawDown : 19.8% B&H MaxDrawDown : 44.8% Best performance : 49.5% Worst performance : 0.0% Net gain : 4839.75 Gross gain : 5699.75 Trades statistics : Number of trades : 86 Trades/Year : 12.31 Number of gains : 36 Number of losses : 50 Win. ratio : 41.9% Max consec. win : 4 Max consec. loss : 8 Expectancy : 0.01 Average gain : 9.72% Average loss : -5.48% Avg. perf : 0.46% Biggest gain : 10.71% Biggest loss : -11.33% Profit fac : 1.77 Sum of gains : 20674.70 Sum of losses : -15834.95 Risk of ruin : 9.9%
  • 50. SY:Generic {I:G:Eval ( {I:LastTrade} ? {I:LastTrade}==1 : {S:G:Above {I:Random 6} 2})} {I:G:Eval ( {I:LastTrade} ? {I:LastTrade}==-1 : {S:G:Below {I:Random 6} 3})} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:Stop:Fixed 5 |CS:CloseGain 10 ----------------------------------------------------- Performance : 48.4% ( 9.5%) Buy & Hold : 77.5% ( 14.2%) () => by year MaxDrawDown : 19.8% B&H MaxDrawDown : 44.8% Best performance : 49.5% Worst performance : 0.0% Net gain : 4839.75 Gross gain : 5699.75 Trades statistics : Number of trades : 86 Trades/Year : 12.31 Number of gains : 36 Number of losses : 50 Win. ratio : 41.9% Max consec. win : 4 Max consec. loss : 8 Expectancy : 0.01 Average gain : 9.72% Average loss : -5.48% Avg. perf : 0.46% Biggest gain : 10.71% Biggest loss : -11.33% Profit fac : 1.77 Sum of gains : 20674.70 Sum of losses : -15834.95 Risk of ruin : 9.9%
  • 51. SY:Generic {I:G:Eval ( {I:LastTrade} ? {I:LastTrade}==1 : {S:G:Above {I:Random 6} 2})} {I:G:Eval ( {I:LastTrade} ? {I:LastTrade}==-1 : {S:G:Below {I:Random 6} 3})} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:Stop:Fixed 5 |CS:CloseGain 10 ----------------------------------------------------- Performance : 48.4% ( 9.5%) Buy & Hold : 77.5% ( 14.2%) () => by year MaxDrawDown : 19.8% B&H MaxDrawDown : 44.8% Best performance : 49.5% Worst performance : 0.0% Net gain : 4839.75 Gross gain : 5699.75 Trades statistics : Number of trades : 86 Trades/Year : 12.31 Number of gains : 36 Number of losses : 50 Win. ratio : 41.9% Max consec. win : 4 Max consec. loss : 8 Expectancy : 0.01 Average gain : 9.72% Average loss : -5.48% Avg. perf : 0.46% Biggest gain : 10.71% Biggest loss : -11.33% Profit fac : 1.77 Sum of gains : 20674.70 Sum of losses : -15834.95 Risk of ruin : 9.9%
  • 52. Outline โ€ข trading system โ€ข analysis โ€ข backtesting โ€ข live trading
  • 53. Trading System Trading system, also known as algorithmic trading, is the use of computer programs for entering trading orders with the computer algorithm deciding on certain aspects of the order such as the timing, price, quantity of order
  • 54. Trading System Trading system, also known as algorithmic trading, is the use of computer programs for entering trading orders with the computer algorithm deciding on certain aspects of the order such as the timing, price, quantity of order Even with dice
  • 55. Analysis โ€ข Where are all the loss coming from? โ€ข Any interesting correlation with technical indicators? โ€ข (Be curious and ask yourself questions about your results)
  • 56. R is a programming language and software environment for statistical computing and graphics. It is an implementation of the S programming language with lexical scoping semantics inspired by Scheme.
  • 57. R is a programming language and software environment for statistical computing and graphics. It is an implementation of the S programming language with lexical scoping semantics inspired by Scheme. to work with numbers, vectors ef๏ฌciently
  • 58.
  • 59.
  • 60. winamount <- xtabs(paste(quot;profit~quot;, rhs, sep=quot;quot;), data=data[data$profit>0,]) loseamount <- xtabs(paste(quot;profit~quot;, rhs, sep=quot;quot;), data=data[data$profit<=0,]); x$netgain <- winamount+loseamount; x$avgnet <- x$netgain/trade
  • 61. winamount <- xtabs(paste(quot;profit~quot;, rhs, sep=quot;quot;), data=data[data$profit>0,]) loseamount <- xtabs(paste(quot;profit~quot;, rhs, sep=quot;quot;), data=data[data$profit<=0,]); x$netgain <- winamount+loseamount; x$avgnet <- x$netgain/trade
  • 62. winamount <- xtabs(paste(quot;profit~quot;, rhs, sep=quot;quot;), data=data[data$profit>0,]) loseamount <- xtabs(paste(quot;profit~quot;, rhs, sep=quot;quot;), data=data[data$profit<=0,]); x$netgain <- winamount+loseamount; x$avgnet <- x$netgain/trade
  • 63.
  • 64.
  • 65.
  • 66.
  • 67.
  • 68.
  • 69.
  • 70.
  • 71. Now if we donโ€™t short when we are above the open price....
  • 72. Now if we donโ€™t short when we are above the open price.... Was 5699
  • 73. R also supports nice plotting
  • 75. Backtesting โ€ข If you want to write a strategy (which might not be using dice), you want to test it for historical data
  • 76. Backtesting โ€ข If you want to write a strategy (which might not be using dice), you want to test it for historical data โ€ข โ€œpast performance does not guarantee future resultsโ€
  • 77. Backtesting โ€ข If you want to write a strategy (which might not be using dice), you want to test it for historical data โ€ข โ€œpast performance does not guarantee future resultsโ€ โ€ข But if your past performance is bad, do you dare to use the system?
  • 79. SY:Generic {S:G:Above {I:Random 6} 2} {S:G:Below {I:Random 6} 3} |TF:Generic {S:G:CrossOverUp {I:Hour} 850} {S:G:CrossOverUp {I:Hour} 850} |TF:MaxOpenTrades 1 |CS:Stop:Fixed 5 |CS:CloseGain 10 โ€ข Modular โ€ข Flexible โ€ข Open source โ€ข does backtesting, charting
  • 82. live trading โ€ข Data feed โ€ข Strategy / System runner
  • 83. live trading โ€ข Data feed โ€ข Strategy / System runner โ€ข Broker API
  • 84. live trading โ€ข Data feed โ€ข Strategy / System runner โ€ข Broker API โ€ข Infrastructure โ€ข Monitor โ€ข Scale and redundancy!
  • 85. Data feed โ€ข free: DDE from brokerโ€™s software โ€ข Win32::DDE (polling) โ€ข publish to memcached (or more appropriate message queues) โ€ข 10 lines of code โ€ข 20 lines for reconnect and robustness
  • 87. Strategy runner โ€ข genius trader, available for back test
  • 88. Strategy runner โ€ข genius trader, available for back test โ€ข GT::Stream, accept streaming data and applies trading system to generate real time signals
  • 89. Strategy runner โ€ข genius trader, available for back test โ€ข GT::Stream, accept streaming data and applies trading system to generate real time signals โ€ข available at: ????
  • 90. Infrastructure โ€ข VirtualBox headless & MicroXP โ€ข memcached โ€ข gearman โ€ข nagios
  • 91. Trading platforms โ€ข http://geniustrade.org/ โ€ข Trade Station (proprietary) โ€ข http://ojts.sourceforge.net/ โ€ข http://www.marketcetera.org/
  • 93. R tutorials โ€ข Econometrics in R (Grant V. Farnsworth) โ€ข Practical Regression and Anova using R (Julian J. Faraway)
  • 95.
  • 96.
  • 97. 2009
  • 98. Yesterday... I went to hotsprings in the morning..
  • 99. Yesterday... I went to hotsprings in the morning..