15. R Basic: 迴圈
• a=0
• for (i in 1:100){a=a+1}
• a=0
• while (a<=100){a=a+1}
• a=0
• for (i in seq(1,99,by=2)){a=a+i}
2017/03 15
1+1+1+…+1=?
1+1+1+…+1=?
1+3+5+…+97+99=?
149. 2017/03
Total Profit: 4173
Trading Days: 1543
Win Rate: 39.07767 %
Maximum Draw Down: 2473
The Periods of MDD: 123 188 204 260 297
Profit Factor: 1.121308
Total Profit/MDD: 1.687424
Total Profit: 1140
# of Win: 161
Win Rate: 39.07767 %
Maximum Draw Down: 312
The Periods of MDD: 107 112 171 188 254
Profit Factor: 1.192763
Total Profit/MDD: 3.653846
149