-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathsettings.py
34 lines (27 loc) · 1003 Bytes
/
settings.py
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
# Account settings
ACCOUNT_ID = "000-000-00000000-000"
ACCESS_TOKEN = "166acab065f0bd72c33aee2d02037829-00700707adc454f3a0e075cf0351aa8c"
ENVIRONMENT = "practice"
# Pair to trade.
# only one allowed for now - run multiple instances if you want multiple pairs
ACCOUNT_CURRENCY = "USD"
INSTRUMENT = "EUR_USD"
# Size of candles in minutes
CANDLES_MINUTES = 60
#Risk settings
MAX_PERCENTAGE_ACCOUNT_AT_RISK = 2 # NO more then 2% of account per trade
#Email credentials
EMAIL_RECIPIENT = "[email protected]"
EMAIL_FROM="[email protected]"
EMAIL_SERVER="mail.yourserver.com"
EMAIL_PORT=25
EMAIL_PASSWORD="SuchSecurePasswordStoredUnecrypted"
# Special bot name for identification
# In case you have many and want to distinguish between them
# Leave default if only running one bot
BOT_NAME = "OANDAPYBOT"
# For backtesting
# BACKTESTING_FORMAT = "HISTDATA"
# BACKTESTING_FILENAME = "data/DAT_ASCII_EURUSD_M1_2015.csv"
BACKTESTING_FORMAT = "KAIDATA"
BACKTESTING_FILENAME = "data/EUR_USD_H1.csv"