Rev 760 | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 760 | blopes | 1 | package br.com.robo; |
| 2 | |||
| 3 | public class MainBacktest { |
||
| 4 | |||
| 5 | public static void main(String[] args) { |
||
| 6 | System.out.println("TESTE 2"); |
||
| 7 | /* |
||
| 8 | // 1) Gera candles simulados |
||
| 9 | List<Candle> candles = CandleGenerator.gerarSerieSimulada(300, 20.0); |
||
| 10 | |||
| 11 | // 2) Define a estratégia |
||
| 12 | Strategy strategy = new MovingAverageCrossoverStrategy(9, 21); |
||
| 13 | |||
| 14 | // 3) Roda o backtest |
||
| 15 | double capitalInicial = 100_000.0; |
||
| 16 | Backtester.rodarBacktest(candles, strategy, capitalInicial); |
||
| 17 | |||
| 18 | // 4) Exibe o gráfico de candles |
||
| 19 | CandleChart.exibirCandles(candles, "Candles Simulados - MM9 x MM21"); |
||
| 20 | */ |
||
| 21 | } |
||
| 22 | } |