forked from gazbert/bxbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
strategies.xml
52 lines (44 loc) · 4.17 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
<?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>
<!--
A unique identifier for the strategy. The markets.xml <trading-strategy-id> entries reference this.
Value must be an alphanumeric string. Underscores and dashes are also permitted. E.g. my-macd-strat-1
-->
<id>scalping-strategy</id>
<!--
A friendly name for the strategy. The is used in the logs and by BX-bot UI to display the strategy's name.
Value must be an alphanumeric string. Spaces are allowed. E.g. My Super MACD Strat
-->
<name>Basic Scalping Strat</name>
<!--
The <description> value is optional. This is used by BX-bot UI.
-->
<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 <optional-config> section is optional and allows you to set custom key/value pair config items. This config
is passed to your Trading Strategy when the bot starts up.
-->
<optional-config>
<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>
</optional-config>
</strategy>
</trading-strategies>