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