forked from gazbert/bxbot
/
strategies.xml
53 lines (45 loc) · 3.82 KB
/
strategies.xml
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
<?xml version="1.0"?>
<!--
Trading Strategy config.
See the README "How do I write my own Trading Strategy?" section for full details.
All elements are mandatory unless stated otherwise.
Multiple strategy elements can be listed.
-->
<trading-strategies>
<strategy>
<!--
The <id> value must be unique. The markets.xml <market> entries reference this.
-->
<id>scalping-strategy</id>
<!--
The <label> value is for descriptive use only. It is used in the log statements.
-->
<label>Basic Scalping Strat</label>
<!--
The <description> value is optional. It is not used anywhere yet; the admin console will at some point...
-->
<description>A simple trend following scalper that buys at the current BID price, holds until current market
price has reached a configurable minimum percentage gain, and then sells at current ASK price, thereby
taking profit from the spread. Don't forget to factor in the exchange fees!
</description>
<!--
For the <class-name> value, you must specify the fully qualified name of your Strategy class for the Trading Engine
to load and execute. This class must be on the runtime classpath.
-->
<class-name>com.gazbert.bxbot.strategies.ExampleScalpingStrategy</class-name>
<!--
The <configuration> section is optional and allows you to set custom key/value String pair config - this is passed to your
Trading Strategy when the bot starts up.
-->
<configuration>
<config-item>
<name>counter-currency-buy-order-amount</name>
<value>20</value>
</config-item>
<config-item>
<name>minimum-percentage-gain</name>
<value>2</value>
</config-item>
</configuration>
</strategy>
</trading-strategies>