-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
107 lines (107 loc) · 3.16 KB
/
index.html
File metadata and controls
107 lines (107 loc) · 3.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Monte Carlo Equity Curve Simulator</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="container">
<div class="theme-toggle">
<label class="switch">
<input type="checkbox" id="theme-checkbox" />
<span class="slider round"></span>
</label>
</div>
<div class="header">
<h1>
Monte Carlo Equity Curve Simulator
<hr />
</h1>
</div>
<div class="content">
<div class="input-container">
<div class="input-group">
<label for="rewardRiskRatio">Reward:Risk Ratio:</label>
<input
type="number"
id="rewardRiskRatio"
value="4"
min="0.1"
step="0.1"
/>
</div>
<div class="input-group">
<label for="winPercentage">Winning %:</label>
<input
type="number"
id="winPercentage"
value="30"
min="0"
max="100"
step="1"
/>
</div>
<div class="input-group">
<label for="riskPerTrade">Risk % per Trade:</label>
<input
type="number"
id="riskPerTrade"
value="1"
min="0.1"
max="100"
step="0.1"
/>
</div>
<div class="input-group">
<label for="numTrades">Number of Trades:</label>
<input type="number" id="numTrades" value="1000" min="1" step="1" />
</div>
<div class="input-group">
<label for="avgTradesPerYear">Avg Trades per Year:</label>
<input
type="number"
id="avgTradesPerYear"
value="200"
min="1"
step="1"
/>
</div>
<div class="input-group">
<label for="numSimulations">Number of Simulations:</label>
<input
type="number"
id="numSimulations"
value="20"
min="1"
step="1"
/>
</div>
<button id="runSimulation">Run Simulation</button>
</div>
<div class="chart-container">
<canvas id="equityCurveChart"></canvas>
</div>
</div>
<div class="results-container">
<h2>Simulation Results</h2>
<table id="resultsTable">
<thead>
<tr>
<th>#</th>
<th data-sort-type="number">CAGR %</th>
<th data-sort-type="number">CALMAR</th>
<th data-sort-type="number">Peak Drawdown %</th>
<th data-sort-type="number">Avg Drawdown %</th>
<th data-sort-type="number">Trades to Recover (Peak)</th>
<th data-sort-type="number">Trades to Recover (Avg)</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="script.js"></script>
</body>
</html>