Rev 767 | Rev 779 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 767 | blopes | 1 | package br.com.sl.domain.dto.robo; |
| 2 | |||
| 3 | import java.math.BigDecimal; |
||
| 4 | |||
| 5 | import br.com.kronus.core.PadraoGatilho; |
||
| 6 | import br.com.sl.domain.model.Candle; |
||
| 7 | |||
| 8 | public class SinalTradeGatilho3 { |
||
| 9 | |||
| 10 | public enum TipoOperacao { |
||
| 11 | COMPRA, VENDA |
||
| 12 | } |
||
| 13 | |||
| 14 | private TipoOperacao tipoOperacao; |
||
| 15 | private int contratosTotais; |
||
| 16 | private int contratosEntrada1; |
||
| 17 | private int contratosEntrada2; |
||
| 18 | |||
| 19 | private BigDecimal precoEntrada1; // 50% |
||
| 20 | private BigDecimal precoEntrada2; // 75% |
||
| 21 | |||
| 22 | private BigDecimal alvo1; // 123,6% |
||
| 23 | private BigDecimal alvo2; // 300% (ou depois você ajusta para FVG/FVA) |
||
| 24 | |||
| 25 | private BigDecimal stopMenos100; // nível -100% da fibo |
||
| 26 | // opcional: stopAlternativo baseado em 25% acima/abaixo do fundo/topo relevante |
||
| 27 | private BigDecimal stopAlternativo; |
||
| 28 | |||
| 29 | private PadraoGatilho padrao; |
||
| 30 | private Candle referencia; |
||
| 770 | blopes | 31 | private Candle gatilho1; |
| 767 | blopes | 32 | private Candle gatilho2; |
| 33 | private Candle gatilho3; |
||
| 34 | |||
| 35 | // Getters e setters |
||
| 36 | |||
| 37 | public TipoOperacao getTipoOperacao() { |
||
| 38 | return tipoOperacao; |
||
| 39 | } |
||
| 40 | |||
| 41 | public void setTipoOperacao(TipoOperacao tipoOperacao) { |
||
| 42 | this.tipoOperacao = tipoOperacao; |
||
| 43 | } |
||
| 44 | |||
| 45 | public int getContratosTotais() { |
||
| 46 | return contratosTotais; |
||
| 47 | } |
||
| 48 | |||
| 49 | public void setContratosTotais(int contratosTotais) { |
||
| 50 | this.contratosTotais = contratosTotais; |
||
| 51 | } |
||
| 52 | |||
| 53 | public int getContratosEntrada1() { |
||
| 54 | return contratosEntrada1; |
||
| 55 | } |
||
| 56 | |||
| 57 | public void setContratosEntrada1(int contratosEntrada1) { |
||
| 58 | this.contratosEntrada1 = contratosEntrada1; |
||
| 59 | } |
||
| 60 | |||
| 61 | public int getContratosEntrada2() { |
||
| 62 | return contratosEntrada2; |
||
| 63 | } |
||
| 64 | |||
| 65 | public void setContratosEntrada2(int contratosEntrada2) { |
||
| 66 | this.contratosEntrada2 = contratosEntrada2; |
||
| 67 | } |
||
| 68 | |||
| 69 | public BigDecimal getPrecoEntrada1() { |
||
| 70 | return precoEntrada1; |
||
| 71 | } |
||
| 72 | |||
| 73 | public void setPrecoEntrada1(BigDecimal precoEntrada1) { |
||
| 74 | this.precoEntrada1 = precoEntrada1; |
||
| 75 | } |
||
| 76 | |||
| 77 | public BigDecimal getPrecoEntrada2() { |
||
| 78 | return precoEntrada2; |
||
| 79 | } |
||
| 80 | |||
| 81 | public void setPrecoEntrada2(BigDecimal precoEntrada2) { |
||
| 82 | this.precoEntrada2 = precoEntrada2; |
||
| 83 | } |
||
| 84 | |||
| 85 | public BigDecimal getAlvo1() { |
||
| 86 | return alvo1; |
||
| 87 | } |
||
| 88 | |||
| 89 | public void setAlvo1(BigDecimal alvo1) { |
||
| 90 | this.alvo1 = alvo1; |
||
| 91 | } |
||
| 92 | |||
| 93 | public BigDecimal getAlvo2() { |
||
| 94 | return alvo2; |
||
| 95 | } |
||
| 96 | |||
| 97 | public void setAlvo2(BigDecimal alvo2) { |
||
| 98 | this.alvo2 = alvo2; |
||
| 99 | } |
||
| 100 | |||
| 101 | public BigDecimal getStopMenos100() { |
||
| 102 | return stopMenos100; |
||
| 103 | } |
||
| 104 | |||
| 105 | public void setStopMenos100(BigDecimal stopMenos100) { |
||
| 106 | this.stopMenos100 = stopMenos100; |
||
| 107 | } |
||
| 108 | |||
| 109 | public BigDecimal getStopAlternativo() { |
||
| 110 | return stopAlternativo; |
||
| 111 | } |
||
| 112 | |||
| 113 | public void setStopAlternativo(BigDecimal stopAlternativo) { |
||
| 114 | this.stopAlternativo = stopAlternativo; |
||
| 115 | } |
||
| 116 | |||
| 117 | public PadraoGatilho getPadrao() { |
||
| 118 | return padrao; |
||
| 119 | } |
||
| 120 | |||
| 121 | public void setPadrao(PadraoGatilho padrao) { |
||
| 122 | this.padrao = padrao; |
||
| 123 | } |
||
| 124 | |||
| 125 | public Candle getReferencia() { |
||
| 126 | return referencia; |
||
| 127 | } |
||
| 128 | |||
| 129 | public void setReferencia(Candle referencia) { |
||
| 130 | this.referencia = referencia; |
||
| 131 | } |
||
| 770 | blopes | 132 | |
| 133 | public Candle getGatilho1() { |
||
| 134 | return gatilho1; |
||
| 135 | } |
||
| 136 | public void setGatilho1(Candle gatilho1) { |
||
| 137 | this.gatilho1 = gatilho1; |
||
| 138 | } |
||
| 139 | |||
| 767 | blopes | 140 | public Candle getGatilho2() { |
| 141 | return gatilho2; |
||
| 142 | } |
||
| 143 | |||
| 144 | public void setGatilho2(Candle gatilho2) { |
||
| 145 | this.gatilho2 = gatilho2; |
||
| 146 | } |
||
| 147 | |||
| 148 | public Candle getGatilho3() { |
||
| 149 | return gatilho3; |
||
| 150 | } |
||
| 151 | |||
| 152 | public void setGatilho3(Candle gatilho3) { |
||
| 153 | this.gatilho3 = gatilho3; |
||
| 154 | } |
||
| 155 | |||
| 156 | } |