← Tracker setup guide
🐍

PropMemo Tracker for TradeLocker

A Python script that automatically records balance, equity and daily P&L for TradeLocker accounts

Beta
TradeLocker
Python

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 versionMT4/MT5 EA
FormPython scriptEA (attached to a chart)
Automatic balance recordingSupportedSupported
Daily P&L recordingSupported (diff from the day's opening balance)Supported (based on closed-trade history)
Firm auto-detectionA setting (default: superfunded)Automatic from the server name
DD guardNot supported (recording only)Supported
RuntimePython 3.11+ (can run alongside a bot)MT4/MT5 terminal

Download

propmemo_tl_tracker_en.py

Python script (single file, source published)

Setup

1
Issue an API key

Sign in → P&L page → "Generate API Key" → Copy

You can use the same API key as MT4/MT5/cTrader. If you already issued one, reuse it as is.

2
Install dependencies

With Python 3.11 or later, run:

pip install tradelocker requests python-dotenv
3
Configure .env

Create 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)
4
Run it
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 .env and 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.

Related