PropMemo Tracker for TradeLocker
A Python script that automatically records balance, equity and daily P&L for TradeLocker accounts
How it works
Accounts at TradeLocker firms such as SuperFunded can't use an MT4/MT5 EA, but they can be read with the official TradeLocker API instead. This script polls account state periodically with the official Python library (tradelocker) and sends it to the same API key and same P&L page as the MT4/MT5 EA and the cTrader cBot.
It's designed to run on the same machine (VM, Cloud Run, etc.) as a Python auto-trading bot, using the same .env (TL_USERNAME / TL_PASSWORD / TL_SERVER) as the bot.
Differences from the MT4/MT5 version
| TradeLocker version | MT4/MT5 EA | |
|---|---|---|
| Form | Python script | EA (attached to a chart) |
| Automatic balance recording | Supported | Supported |
| Daily P&L recording | Supported (diff from the day's opening balance) | Supported (based on closed-trade history) |
| Firm auto-detection | A setting (default: superfunded) | Automatic from the server name |
| DD guard | Not supported (recording only) | Supported |
| Runtime | Python 3.11+ (can run alongside a bot) | MT4/MT5 terminal |
Download
Setup
With Python 3.11 or later, run:
pip install tradelocker requests python-dotenvCreate a .env in the same folder as the script (if you're already running a bot, just add to its existing .env):
TL_ENV=live # demo / live
TL_USERNAME=your@email.com
TL_PASSWORD=your_password
TL_SERVER=YOUR_SERVER # the server name given by the firm
PROPMEMO_API_KEY=eakey_xxxxxxxx # the key issued in step 1
PROPMEMO_FIRM_SLUG=superfunded # change for a different firm
PROPMEMO_INTERVAL=60 # send interval (seconds)python propmemo_tl_tracker_en.py # runs continuously (VM/local)
python propmemo_tl_tracker_en.py --once # sends once and exits (for cron)The account is registered automatically on startup, and it links automatically to a challenge if the currency and balance match. From then on, the balance history and daily P&L show up on the P&L page.
Notes
- This script is recording only. It never places or closes orders.
- Daily P&L is calculated as "the difference from the balance at the start of the JST day." If there's a deposit/withdrawal during the day, it gets mixed into that day's P&L, so be careful on payout days.
- Your TradeLocker credentials stay in
.envand are never sent to prop-memo.com (only balance, equity and P&L are sent). - There's no DD guard. If you need one, use the firm's SL settings or control it on the bot side instead.