-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathoptions.html
executable file
·156 lines (148 loc) · 4.72 KB
/
options.html
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<style>
table.top {
border-style:solid;
padding: 5;
width:500px;
}
sup {
font-size:70%;
color:red;
font-style:italic;
font-weight:bold;
}
.mono {
font-family:monospace;
}
.maxwide {
width:100%;
}
.r {
text-align:right;
}
.note {
font-size:13px;
font-style:italic;
}
.stat {
text-align:center;
}
</style>
<table border="0" width="400"><tr><td>
See <a href="chart.html" target="_blank">chart</a>.
<i>
Read <a href="https://bitcointalk.org/index.php?topic=60501" target="_blank">Goomboo's Journal</a>
to learn about the strategy used by this trading bot.<br>
The bot uses the first traded price of each hour for the EMA input.
</i>
<br><br>
<table cellpadding="2" class="top">
<form>
<tr>
<td nowrap="nowrap">MtGox API Key<sup> 1</sup></td>
<td>
<input type="text" size="36" id="apikey" class="mono maxwide">
</td>
</tr>
<tr>
<td nowrap="nowrap">MtGox API Secret<sup> 1</sup></td>
<td>
<textarea id="apisec" cols="36" rows="3" class="mono maxwide"></textarea>
</td>
</tr>
<tr>
<td colspan="2">
<table width="100%"><tr>
<td align="center">EMAShort:<input type="text" size="2" maxlength="2" id="emas" class="mono r"></td>
<td align="center">EMALong:<input type="text" size="2" maxlength="2" id="emal" class="mono r"></td>
<td align="center">sellTreshold:<input type="text" size="4" maxlength="4" id="stras" class="mono r">%<sup> 2</sup></td>
<td align="center">buyTreshold:<input type="text" size="4" maxlength="4" id="btras" class="mono r">%<sup> 2</sup></td>
<td align="center">Show last:
<select id="sla">
<option value="6">6 hours</option>
<option value="12">12 hours</option>
<option value="24">1 day</option>
<option value="48">2 days</option>
<option value="72">3 days</option>
<option value="96">4 days</option>
<option value="120">5 days</option>
</select></td>
</tr></table>
</td>
</tr>
</tr>
<tr>
<td colspan="2" nowrap="nowrap"><strong>Enable Trading:<input type="checkbox" value="true" id="tradingEnabled"> (Trade is off when unchecked)</strong></td>
</tr>
<tr>
<td>
<table width="100%">EMA Timeframe :
<select id="tf">
<option value="3600">1 hour</option>
<option value="7200">2 hours</option>
<option value="10800">3 hours</option>
<option value="14400">4 hours</option>
<option value="1800">30 minutes</option>
<option value="900">15 minutes</option>
<option value="300">5 minutes</option>
</select>
</table>
</td>
<td>
<table width="100%">Last Buy to Sell trigger:
<input type="text" size="4" maxlength="4" id="bsTrigSell" class="mono r">%<sup> 3</sup><br/>
Last Sell to Buy trigger:
<input type="text" size="4" maxlength="4" id="bsTrigBuy" class="mono r">%<sup> 3</sup><br/>
</table>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="button" style="width:200px;" id="butres" value="Reset to defaults">
<input type="submit" style="width:200px;" id="butsav" value="Apply and save changes">
</td>
</tr>
<tr>
<td colspan="2" align="left">
<strong>background.js constants:</strong><br/>
<div style="width:100%;text-align:right">
btcAmountPreserved: <strong><span id="btcAmountPreserved"></span></strong> BTC <br/>
MaxHoursToKeep: <strong><span id="MaxHoursToKeep"></span></strong><br/>
btcFiat: <strong><span id="btcFiat"></strong></span><br/>
</div>
</td>
</tr>
</form>
</table>
<hr>
<div class="note">
<sup>1</sup>
Take <b>API Key</b> and <b>Secret</b> from your MtGox account.
Use <b>Advanced API Key Creation</b> at
<a href="https://mtgox.com/security" target="_blank">Security Center</a> page
to create these values.
Make sure to grant only <b>get_info</b> and <b>trade</b> access rights for this API key.
The bot does not need you to be logged at the MtGox account
- just setup the Key&Secret, leave the browser running and it will trade...
<br><br>
<sup>2</sup>
The bot will buy or sell <u>all BTC above amount <span id="btcPreserve"></span></u>(preconfigured in file background.js) at the given MtGox account when the absolute difference between two EMA values (expressed in %)
holds above the <b>Threshold</b> for the last one tick (hours).
<br><br>
<sup>3</sup>
The bot will preserve loses by keeping last wallet state (not trading) in case buy/sell difference from last trade is less than given %.
<strong>0%</strong> means preserving loses is not active.
</div>
<hr><div class="note stat">
<a href="https://chrome.google.com/webstore/detail/gox-trading-bot/">original bot</a>
</div>
<hr><div class="note stat">
If You like modifications made from original bot
send <b>0.01</b> BTC to
<b>13eJdr8ndc3MJAeHGpVTNMPUtTGE8ANHpL</b>
</div>
<hr><div class="note stat">
If you like this extension send <b>0.01</b> BTC to
<b>13g6zY7GJJvKEiYzTnGP8H9dEDEhYW2jFq</b>
</div>
</table>
<script src="options.js"></script>