-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.edn
34 lines (34 loc) · 1.48 KB
/
config.edn
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
{:workspace "workspace"
:log {:level :debug
:rotor-log-file "rotor.log"}
:fxcm {:url "www.fxcorporate.com/Hosts.jsp"
:login ""
:password ""
:connection "demo"
:session-id ""
:pin ""}
;; trade attributes can be overridden for each instrument individually
:trade {:order-wait 3 ;; wait time in minutes
:lots 1
:entry 1
;; the limit to use when placing order, as multiple of atr
:limit 1
;; stop is decided by the high or low swings, but can be capped
;; stop-max and stop-min are specified as multiples of limit
;; and an additional buffer can be specified as well
;; stop-buff is specified as number of pips
:stop-max 0.33
:stop-min 0.2
:stop-buff 3}
:instruments {:eur-usd {:iname "EUR/USD"
:spread 2
:pip-cost 0.1
;; * totally suspend trading for this instrument
;; like - :order? false ;; optional
;; * restrict trading only when atr is within bounds
;; like - :atr-limit [min max] ;; number of pips, optional
;; * further you can specify trade attributes here
;; to override for this instrument only
;; any of - :order-wait, :lots, :entry
:stop-max nil, :stop-min 2
:lots 1}}}