What does d=1 do?

Autoview · Alert syntax

d=1 marks a command as Disabled. The d stands for Disabled. A disabled command still runs, but as a dry run: Autoview works out exactly what the command would do and writes it to your log, without placing a single live order. Nothing reaches your exchange account.

Here it is on an order:

e=oanda s=EUR_USD b=long q=1% d=1

That line would normally open a long. With d=1 attached, Autoview runs the whole command and logs the order it would have placed, then stops short of sending it. Your log shows the preview; your account stays untouched. Remove the d=1 and the same command goes live.

d is Disabled, not dedupe

This is the question we see most in support, so let us be blunt about it. d is short for Disabled. It has nothing to do with de-duplication. People guess "d means dedupe" because both start with a d, and that guess is wrong.

De-duplication is its own separate parameter, spelled out in full as dedupe. The two do completely different jobs:

  • d = Disabled. Runs a command as a dry run so it previews into your log instead of trading live.
  • dedupe = De-duplication. Drops a repeat alert that matches an earlier one, so the same signal does not fire twice. A different feature with a different name.

If you want a command to preview without trading, use d=1. If you want to suppress duplicate alerts, use dedupe. They are never interchangeable.

The rule: d=1 to disable

Write d=1 on the command you want to run as a preview. Autoview parses d as a true or false switch: 1 means disabled, and anything else leaves the command live.

In practice you only ever write d=1. There is no reason to write d=0, because a command with no d at all already trades live. To take a command live, you delete the d=1 rather than set it to zero.

What it actually does

When a command carries d=1, Autoview does everything except send the live order. It reads the line, resolves the sizing, and logs the exact order it would have placed, but it does not call the exchange. Your log will literally show the order that "would" be placed or cancelled. This is the same mechanism Autoview uses for its testing mode: when testing is on, every command is marked disabled so it runs through every step except the live action. So d=1 gives you a real, harmless dry run of that one line.

The command is not deleted, not skipped, and not broken. It runs, it is valid, it just stops at the edge of your real account. Take the flag off and it behaves exactly as it did before.

When to use it

The point of d=1 is to see what a command will do before it touches real money.

  • Preview a command before it trades. Add d=1, fire the alert, and read your log to confirm the side, size, and symbol are what you expect. Then remove it and go live.
  • Hold a line back while you build a multi-line alert. Lines with d=1 preview into the log without trading, so only the lines without it go live. Drop the flag from each line as you are ready.
  • Park a command you are not ready to run live. Keep it in the alert with d=1 so it stays a preview, rather than cutting it out and pasting it somewhere to remember it.

A worked example

A two-line alert where the second entry is held back while you test the first:

// this one goes live
e=oanda s=EUR_USD b=long q=1%
// this one is held back as a preview
e=oanda s=GBP_USD b=long q=1% d=1

Autoview opens the EUR_USD long for real. The GBP_USD line runs too, but because of d=1 it only logs the order it would have placed and never touches your account. When you want it live, delete the d=1. The comment lines just label the log so you can read back what traded and what was only a preview.

Things worth knowing

  • Only d=1 disables. The value 1 is the one that turns it on. We do not document any other value as meaningful here, so stick to d=1 for a preview and no flag at all to go live.
  • It is per command. d=1 affects the line it sits on, not the whole alert. Other lines run as normal.
  • It previews, it does not vanish. A disabled command still shows up in your log as the order it would have placed. If you expected silence and see a "would" entry instead, that is d=1 doing its job.
  • To go live, remove it. Deleting d=1 is how you turn a command into a real trade. There is no need to set it to anything else.
  • Still not dedupe. If duplicate alerts are your problem, d will not help. Reach for the dedupe parameter instead.

For every parameter you can put on a command, side, sizing, stops, order type and the rest, see the command reference, or the full alert syntax page.

Read the command reference