ODARATRADING RESEARCH

Setup guide

From the first look to live.

Do the steps in this order. The study starts switched off and in observe mode, so nothing here can send an order until you choose live mode in step 6.

One rule before everything else. Account Guard is a tool, not a guarantee. It works only while Sierra Chart is running and connected, the chart with the study is open, and Auto Trading is on. A stop closes at the market, so the fill can be past your limit.

Before you start

  • Your firm's rules allow it. Some prop firms may not allow automated tools on their accounts. Read your firm's rules, or ask your firm, before you use it on an evaluation or a funded account.
  • Sierra Chart on Windows, connected to your trading service.
  • Your membership or your free trial is active: your Sierra Chart account name is on the list of members, and you have restarted Sierra Chart since then.
  • You know the original balance of each account, and the numbers you want as limits.

1. Add the study

  1. Open any chart. One chart is enough for all your accounts; it does not have to be the symbol you trade.
  2. Analysis >> Studies >> Add Custom Study, open Odara Trading Research, choose Odara Account Guard, then Add and OK.
  3. The panel appears in the left corner of the chart. Its second line shows the build and DISABLED.

If the panel says NOT LICENSED: your Sierra Chart account name is not on the list of members yet, Sierra Chart was not restarted after you were activated, or your free trial has ended. Check the name under Help >> About.

To move the panel use the settings DISPLAY | Left Percent and DISPLAY | Top Percent.

2. Let it read the day's trades

This step is only for the two daily limits. If you want the total target only, leave DAILY CHECKS off and skip it.

For the daily limits the study reads Sierra Chart's own record of today's trades. It does that through Sierra Chart's local server, on your PC only:

  1. Global Settings >> Sierra Chart Server Settings, the part named DTC Protocol Server.
  2. Turn on Enable DTC Protocol Server.
  3. Turn on Allow Trading. The study only reads the trade history through this connection. It sends no order through it.
  4. Set Allowed Incoming IPs to Local Computer Only.

If one of these is missing, the card tells you which: ENABLE LOCAL DTC SERVER or ENABLE DTC HISTORY ACCESS.

3. Enter your numbers

Open the study's settings (Analysis >> Studies, select the study, Settings). Every number starts at 0, and 0 means "off".

SettingWhat to enter
DEFAULT | Original Account BalanceThe balance your accounts started with, for example 50000. Needed for the total target.
DEFAULT | Total Profit GoalThe profit at which an account is closed and locked. 0 = off.
DAILY CHECKS | On / OffON to use the daily limits.
DEFAULT | Daily Profit LimitThe day's profit at which an account is closed. 0 = off.
DEFAULT | Daily Loss LimitThe day's loss at which an account is closed. Enter it as a plain number, for example 500. 0 = off.
Account 1 | Account ... Account 20 | AccountPick each trade account from the list.

An account that is different from the others gets its own numbers. Each account has four of its own settings: Original Balance, Total Target, Daily Profit Limit, Daily Loss Limit. Left at 0, the account uses the default.

Enter money as plain numbers with a point for cents: 1449.60. A number that cannot be read is shown as an error on that account's card. It is never taken as 0.

4. Observe first

  1. Set Enabled to Yes. Leave Operating Mode on OBSERVE_ONLY.
  2. The second line of the panel reads OBSERVE ONLY. Every card shows OBSERVE - NO EXIT ORDERS.
  3. For the first seconds a card can say DAILY PROTECTION UNAVAILABLE, until Sierra Chart's trade history has arrived. Then it turns to ALL CHECKS READY.
  4. Compare each card with what you know about the account: the total, today, closed today, cash plus open. Look at three moments: flat, with a position open, and right after a trade closes.

In observe mode a reached limit shows as a stop on the card, and no order is sent. Stay in this mode until the numbers on the cards are the numbers you expect.

Clear a test stop before you go live. A stop stays latched, also in observe mode. If you made one for a test, put the limit back and, with the account flat, set Reset Selected Account Stops Once - Flat Accounts Only to Yes. It switches itself back to No. If a stop is still latched when you switch to live mode and the account has a position, the account is closed at once.

5. Simulation test (optional)

This shows the study closing a position, on a Sierra Chart Sim account. It uses Sierra Chart's simulation numbers, so it proves the limits and the close, not the live data.

  1. Trade >> Trade Simulation Mode On must be checked (a chart replay turns it on by itself). Auto Trading must be on, global and for the chart.
  2. Set Operating Mode to SIMULATION_TEST and DAILY CHECKS to ON.
  3. As Account 1 pick the same Sim account as the chart's Trade Window. The test works on that one account, on the chart's own symbol.
  4. Set a daily loss limit or a daily profit limit, set Enabled to Yes, and let a simulated trade run to the limit.

At the limit the card turns amber, the simulated position is closed and its working orders are cancelled. A new simulated trade is closed again while the day is past the limit. In the simulation test a stop opens by itself as soon as the account is flat and the day is back inside the limit, for example after you raise the limit or start a replay.

The chart needs a Currency Value per Tick in its Chart Settings. No balance is needed in simulation.

6. Go live

  1. Check that no card shows a stop from a test.
  2. Turn Auto Trading on in Sierra Chart, global and for the chart.
  3. Set Operating Mode to LIVE_FLATTEN.
  4. The second line of the panel reads LIVE MODE, and each card ALL CHECKS READY.

From now on a reached limit closes that account and cancels its working orders. Keep the chart with the study open.

The live modes do nothing in Trade Simulation Mode or during a replay, by design. A Sim account in a live mode shows SIM ACCOUNT - USE SIMULATION_TEST MODE.

Stops and how they open

StopIt opens
DAILY PROFIT STOP
DAILY LOSS STOP
At the next session (17:00 Chicago time unless you changed it) when the account is flat. Or with the Reset setting while the account is flat.
TOTAL GOAL STOPWith the Reset setting while the account is flat. While the account is still at its target, the stop comes back at once.
GROUP STOPLike a daily stop.

While a stop is on, a new position on that account is closed again. That is the stop holding, not a fault.

After a payout or an account reset, enter the new original balance of the account.

Group stop, for copied trades

If you send one trade to several accounts with Sierra Chart's own order copy, know this: when the source account is closed, Sierra Chart cancels the copied stop and target on the other accounts. An account that is still inside its limits stays in the trade without its attached orders.

The setting GROUP | When One Account Stops has two choices:

  • THAT_ACCOUNT_ONLY (the default): each account by itself.
  • ALL_SELECTED_ACCOUNTS: the moment one account stops, every other selected account is closed and locked with it for the session. The cost: accounts that still had room are closed too.

All settings

SettingWhat it does
EnabledThe main switch. Starts at No.
Operating ModeOBSERVE_ONLY, LIVE_FLATTEN or SIMULATION_TEST. Starts at OBSERVE_ONLY.
Daily Reset Time CT, HHMMSSWhen the trading day starts, Chicago time. 170000 is 17:00:00.
Flatten Retry SecondsThe wait before a close is tried again.
Maximum Flatten Attempts Per IncidentHow many times a close is tried for one stop.
Reset Selected Account Stops Once - Flat Accounts OnlyYes releases the stops of every flat account, then switches itself back to No.
GROUP | When One Account StopsThat account only, or all selected accounts.
DISPLAY | Show Panel, Left Percent, Top Percent, Text Scale, Width Pixels, Height PercentWhere the panel is and how big. Hiding the panel does not switch the guard off.
DEFAULT | ... and DAILY CHECKS | On / OffThe numbers for every account, see step 3.
Account 1 to Account 20Five settings each: the account and its own four numbers.

What the panel says

On the panelWhat it means, what to do
ALL CHECKS READYEvery check for this account has fresh data.
NOT LICENSEDYour Sierra Chart account name is not on the list of members, or Sierra Chart was not restarted since you were activated.
NO LIMITS SETEvery number for this account is 0. Enter a limit.
DAILY LIMITS OFF BY SWITCHYou typed daily limits, but DAILY CHECKS is off. They are not active.
ENABLE LOCAL DTC SERVERStep 2: turn on Enable DTC Protocol Server.
ENABLE DTC HISTORY ACCESSStep 2: turn on Allow Trading in the same window.
DAILY PROTECTION UNAVAILABLEThe day's trades have not arrived yet. Normal for the first seconds. If it stays, check step 2.
PROTECTION UNAVAILABLE - DATANo fresh account data: not connected, just started, a setting just applied, a replay, or Trade Simulation Mode in a live mode. Nothing is sent.
PROTECTION UNAVAILABLE - CLOCKThe PC clock went backwards. Nothing is sent until the time is right again.
AUTO TRADING IS OFFTurn Auto Trading on in Sierra Chart, global and for the chart.
ACCOUNT ALREADY MANAGED / LOCK ERRORA second copy of the study has the same account. Keep one.
SIM ACCOUNT - USE SIMULATION_TEST MODEA Sim account is selected in a live mode.
REAL ACCOUNT - NOT ALLOWED IN SIMULATION TESTA real account is selected in the simulation test. It is never read or touched there.
TURN ON TRADE SIMULATION MODEThe simulation test needs Sierra Chart's Trade Simulation Mode.
USE THE CHART'S OWN SIM ACCOUNTThe simulation test works on the Sim account selected in the chart's Trade Window.

The log file

Sierra Chart does not keep its Message Log. So the study writes its own file, in every mode:

[Sierra Chart folder]\Data\OdaraAccountGuardState\account_guard_log.txt

It holds the settings at the start and whenever they change, every stop, every close order with the numbers at that moment, every reset, and a line per account when its status changes. At 2 MB a new file starts and the old one is kept as account_guard_log_previous.txt.

For support, send this file to support@odaratrading.com. It shows account names and balances. It holds no password.

Know its limits

  • A stop closes at the market. The fill can be a tick or more past your limit, and more in a fast market.
  • It works only while Sierra Chart is running and connected, the chart is open and Auto Trading is on.
  • For about 5 seconds after it starts, or after a setting is applied, it sends nothing.
  • With Sierra Chart's order copy, closing the source account cancels the copied stop and target on the other accounts. See the group stop.
  • It knows the three numbers you enter. It does not know your firm's own rules, such as a trailing drawdown.
  • Tested with Rithmic. Other trading services are not tested yet: use observe mode first.
  • One copy of the study per account on one PC.

The full terms and the risk disclosure are on the terms page.