DAS Hotkeys10/12/2026

DAS Trader Pro – sending a message to accountability partner

Use Case: Accountability in Trading

The core objective here is simple: enforcing trading accountability.

Consider this: Would your execution and discipline change if someone else immediately knew you were overtrading or continuing to trade while down significantly? Does your trading partner know your exact daily metrics? Does your family?

By pairing this technique with trade counter setups or implementing custom input box prompts, you can add powerful guardrails to maintain discipline. For example, you can set an automated workflow to send your live realized P&L directly to an accountability partner every day at 10:00 AM.

Prerequisites

  1. Register for an account at Twilio.

  2. Set up a WhatsApp Sandbox environment inside the Twilio Console.

  3. Follow the setup prompts to connect your mobile device to the sandbox (via QR code or texting the join code).

  4. Save your Account SID and Auth Token from the dashboard.

The rest of the work is on your PC.

Step 1: Create the PowerShell Reporting Script

Create a script that reads your P&L, logs it locally, and sends the notification via Twilio’s API.

Save the following code as pnlreporter.ps1 in your main DAS Trader Pro installation directory (e.g., C:\Guardian Trading_x64):

# ==============================
# USER CONFIGURATION
# ==============================

$twilioAccountSid = "your SID goes here"
$twilioAuthToken = "your auth token goes here"
$fromWhatsApp = "whatsapp:+14155238886" # Twilio WhatsApp number
$toWhatsApp = "whatsapp:+11111111111" # Your Whatsapp Phone number
$DASInstalpath = "C:\Guardian Trading_x64" # your DAS install path

$logFolder = "C:\Logs"
$logFile = "$logFolder\pnl.log"

# ==============================
# ENSURE LOG FOLDER EXISTS
# ==============================

if (-not (Test-Path $logFolder)) {
New-Item -ItemType Directory -Path $logFolder | Out-Null
}

# ==============================
# READ THE P&L adapt the path to your DAS installation path
# ==============================
$content = Get-Content -Path "$DASInstalpath\pnl.txt"

$PNL = ($content | Where-Object { $_ -match '^\$PNL\s*=' }) `
-replace '^\$PNL\s*=\s*', '' `
-replace ';', ''


# ==============================
# BUILD SIGNED MESSAGE
# ==============================

$timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"

$signedMessage = @"
My P&L for the day is: $PNL

---
PeterB
"@

# ==============================
# LOG TO FILE
# ==============================

$logEntry = @"
[$timestamp]
$signedMessage
----------------------------------------
"@

Add-Content -Path $logFile -Value $logEntry

# ==============================
# SEND TO WHATSAPP (TWILIO)
# ==============================

$pair = "$($twilioAccountSid):$($twilioAuthToken)"
$encodedCreds = [Convert]::ToBase64String(
[Text.Encoding]::ASCII.GetBytes($pair)
)

$headers = @{
Authorization = "Basic $encodedCreds"
}

$body = @{
From = $fromWhatsApp
To = $toWhatsApp
Body = $signedMessage
}

Invoke-RestMethod `
-Uri "https://api.twilio.com/2010-04-01/Accounts/$twilioAccountSid/Messages.json" `
-Method Post `
-Headers $headers `
-Body $body `
| Out-Null

Return to Site