Martingale Calculator for Binary Operations
About this app
A simple and colorful web app to calculate Martingale strategy for binary options trading.
Martingale Calculator for Binary Operations ⚖️ Calculadora de Martingale para Operações Binárias 💰 Investimento inicial 📈 Taxa de retorno (%) 🔢 Passos 🧮 Calcular
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Martingale Calculator for Binary Operations</title>
<meta name="description" content="A simple and colorful web app to calculate Martingale strategy for binary options trading.">
<meta name="keywords" content="martingale, calculator, binary options, trading, web app">
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono|Lobster&display=swap" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<script type="text/javascript">
try {
document.addEventListener("DOMContentLoaded", function() {
const calculateBtn = document.getElementById('calculate');
const resultContainer = document.getElementById('result');
calculateBtn.addEventListener('click', function() {
const investment = parseFloat(document.getElementById('investment').value);
const returnRate = parseFloat(document.getElementById('returnRate').value) / 100;
const steps = parseInt(document.getElementById('steps').value);
let totalInvestment = 0;
let potentialReturn = 0;
for(let i = 0; i < steps; i++){
totalInvestment += investment * Math.pow(2, i);
potentialReturn = totalInvestment * returnRate;
}
resultContainer.innerHTML = `<p>Investimento total: ${totalInvestment.toFixed(2)}</p><p>Retorno potencial: ${potentialReturn.toFixed(2)}</p>`;
});
});
} catch (error) {
throw error;
}
</script>
<style>
body {
font-family: 'Roboto Mono', monospace;
background: linear-gradient(to right, #ff9966, #ff5e62);
color: #fff;
}
h1 {
font-family: 'Lobster', cursive;
}
#main-container {
margin-top: 30px;
text-align: center;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>⚖️ Calculadora de Martingale para Operações Binárias</h1>
<div class="input-group mb-3">
<span class="input-group-text" id="investment-addon">💰 Investimento inicial</span>
<input type="number" class="form-control" id="investment" aria-describedby="investment-addon">
</div>
<div class="input-group mb-3">
<span class="input-group-text" id="returnRate-addon">📈 Taxa de retorno (%)</span>
<input type="number" class="form-control" id="returnRate" aria-describedby="returnRate-addon">
</div>
<div class="input-group mb-3">
<span class="input-group-text" id="steps-addon">🔢 Passos</span>
<input type="number" class="form-control" id="steps" aria-describedby="steps-addon">
</div>
<button class="btn btn-light" id="calculate">🧮 Calcular</button>
<div id="result" class="mt-3"></div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!