-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstratmanager.html
115 lines (108 loc) · 4.67 KB
/
stratmanager.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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="base.css">
<link rel="stylesheet" href="stratman.css">
<title>Strategy Manager</title>
</head>
<body>
<div id="top">
<button onclick="LoadTempStrat()">Load Previous State</button>
<button onclick="SaveStrategy()">Save Current Strategy</button>
<div id="apiSelect">
<label for="apisel">Using API:</label>
<select name="apisel" id="apisel" onchange="ChangeToken()">
<option value="none" class="none" selected="selected">Offline</option>
</select>
</div>
</div>
<div class="grid-container">
<div id="leftSide">
<div id="chooseStrat">
<label for="strats">Current Strat:</label>
<select name="strats" id="stratDropdown" onchange="ChangeStrat()">
<option value="" selected="selected">New</option>
</select>
<button id="deleteStrat" onclick="DeleteCurrentStrat()">Delete</button>
</div>
<div id="indicatorList">
<div class="indBox" id="adder">
<div class="dropdown">
<div class="center">
<button class="coolButt" onclick="IndicatorDropdown()">
<div class="plus vPlus"></div>
<div class="plus hPlus"></div>
</button>
<div id="indicatorSelect" class="dropdown-content">
<a href="javascript:AddIndicator('MA')">Moving Average</a>
<a href="javascript:AddIndicator('VOL')">Volume</a>
<a href="javascript:AddIndicator('BOL')">Bollinger Bands</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="rightSide">
<button id="getBal">Check Balances</button>
<p id="showBal"></p>
<button id="loadPairList" onclick="LoadPairList()">Load in pair list</button>
</div>
</div>
<div id="botContain">
<div id="stratDesign">
<div id="topStratOptions">
<h1 style="margin: 0px;">Strategies</h1>
<div>
<label for="shortingBool">Shorting market:</label>
<input type="checkbox" id="shortingBool">
<label for="afterHours">Only trade during Wall Street day:</label>
<input type="checkbox" id="afterHours">
</div>
</div>
<div id="stratBuy">
<h1>Buy: if </h1>
<div id="buyStratBox" class="stratBox">
</div>
<div id="buyVariableDropdown" class="dropdown">
<div class="stratDropdownCenter">
<button class="coolButt" onclick="VariableDropdown(true)">
<div class="plus vPlus"></div>
<div class="plus hPlus"></div>
</button>
<div id="buyVariableSelect" class="dropdown-content">
<a href="javascript:AddBuyComparison('AND')">AND</a>
<a href="javascript:AddBuyComparison('OR')">OR</a>
</div>
</div>
</div>
</div>
<div id="stratSell">
<h1 style="display:inline;">Sell: if </h1>
<div id="sellStratBox" class="stratBox">
</div>
<div id="sellVariableDropdown" class="dropdown">
<div class="stratDropdownCenter">
<button class="coolButt" onclick="VariableDropdown(false)">
<div class="plus vPlus"></div>
<div class="plus hPlus"></div>
</button>
<div id="sellVariableSelect" class="dropdown-content">
<a href="javascript:AddSellComparison('AND')">AND</a>
<a href="javascript:AddSellComparison('OR')">OR</a>
</div>
</div>
</div>
</div>
<div id="stratStop">
<h1 style="display:inline;">Stop Loss: </h1>
</div>
</div>
<div id="stratResult">
<h2>Strat Results:</h2>
<div id="resData"></div>
</div>
</div>
</body>
<script src='javascripts/stratMan.js'></script>
</html>