Subversion Repositories Integrator Subversion

Rev

Rev 789 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 789 Rev 793
Line 50... Line 50...
50
 * ID;Ativo;Data;Hora;TipoOperacao;PrecoEntrada;StopLoss;TakeProfit;Quantidade;Status;ClientOrderId
50
 * ID;Ativo;Data;Hora;TipoOperacao;PrecoEntrada;StopLoss;TakeProfit;Quantidade;Status;ClientOrderId
51
 */
51
 */
52
public class RoboSinaisMain {
52
public class RoboSinaisMain {
53
53
54
    private static final String ARQUIVO_SINAIS   = "D:/Dropbox/BLP/INVESTIMENTOS/DAYTRADE/sinais/SINAIS.csv";
54
    private static final String ARQUIVO_SINAIS   = "D:/Dropbox/BLP/INVESTIMENTOS/DAYTRADE/sinais/SINAIS.csv";
55
    private static final String ARQUIVO_CANDLES = "D:/Dropbox/BLP/INVESTIMENTOS/DAYTRADE/temporeal/BTCUSDT_1m.csv";
-
 
-
 
55
    private static final String ARQUIVO_CANDLES = "D:/Dropbox/BLP/INVESTIMENTOS/DAYTRADE/temporeal/BTCUSDT_5m.csv";
56
   
56
   
57
    private static final BigDecimal VALOR_ENTRADA = new BigDecimal(0.005);
57
    private static final BigDecimal VALOR_ENTRADA = new BigDecimal(0.005);
58
58
59
    private final ZoneId zone = ZoneId.of("America/Maceio");
59
    private final ZoneId zone = ZoneId.of("America/Maceio");
60
    private final ScheduledExecutorService scheduler = Executors.newSingleThreadScheduledExecutor();
60
    private final ScheduledExecutorService scheduler = Executors.newSingleThreadScheduledExecutor();
Line 323... Line 323...
323
323
324
                    String tipoOperacao = (s.getTipoOperacao() != null)? s.getTipoOperacao().getValor() : "";
324
                    String tipoOperacao = (s.getTipoOperacao() != null)? s.getTipoOperacao().getValor() : "";
325
325
326
                    BigDecimal precoEntrada = s.getPrecoEntrada1();
326
                    BigDecimal precoEntrada = s.getPrecoEntrada1();
327
                    BigDecimal stopLoss     = s.getStopMenos100();
327
                    BigDecimal stopLoss     = s.getStopMenos100();
328
                    BigDecimal takeProfit   = s.getAlvo1();
-
 
-
 
328
                    BigDecimal takeProfit   = s.getAlvo2();
329
                    BigDecimal quantidade   = VALOR_ENTRADA; // AJUSTE se usar outro nome (ex.: getContratos)
329
                    BigDecimal quantidade   = VALOR_ENTRADA; // AJUSTE se usar outro nome (ex.: getContratos)
330
330
331
                    String precoEntradaStr = toStr(precoEntrada);
331
                    String precoEntradaStr = toStr(precoEntrada);
332
                    String stopLossStr     = toStr(stopLoss);
332
                    String stopLossStr     = toStr(stopLoss);
333
                    String takeProfitStr   = toStr(takeProfit);
333
                    String takeProfitStr   = toStr(takeProfit);