.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow. (showing first 20, more exist in .env.example)
PO_MODE
Mode paper = fake candles, no PocketOption connection demo = PocketOption demo (needs PO_SESSION + PO_UID) live = real money (needs…
PO_LIVE_CONFIRMED
PO_SESSION
PocketOption auth (required for PO_MODE=demo or live) Quick-trading WebSocket: 42["auth",{...}] -> session; 42["auth_success",{uid,...}]
PO_UID
PO_IS_DEMO
PO_REGION
PO_SYMBOL
Symbol & contract
PO_TIMEFRAME_SEC
PO_EXPIRY_SEC
PO_CANDLE_COUNT
PO_BROWSER_URL_DEMO
Browser fallback (Playwright) — used when API has no candles / errors
PO_BROWSER_URL_LIVE
PO_HEADLESS
false = visible window (easier to log in and see the page)
PO_BROWSER_STARTUP_WAIT_SEC
Seconds after load before the bot expects quotes (slow PC / login → increase)
PO_USE_WS_QUOTES
Price source when chart is <canvas> (no HTML text for the quote): PO_USE_WS_QUOTES=true → read last price from page WebSockets…
PO_CONSOLE_LOG
Terminal: readable event lines (no log files)
PO_BROWSER_OVERLAY
Browser: green status box bottom-left on the Playwright page (demo/live, visible window)
PO_WS_DEBUG
WebSocket quote parser debug lines in terminal (temporary troubleshooting)
PO_EMA_FAST
Strategy (EMA + RSI)
PO_EMA_SLOW
brew install flyctl && fly launch --from https://github.com/core-trading/pocketoption-signal-bot
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/core-trading/pocketoption-signal-bot
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/core-trading/pocketoption-signal-bot