Alphafamilia Algo Help

Shares and copying trades

Reading time: 5 minutes.

First: How the DCA strategy works.

This lesson has two topics. The first is trading shares through the broker T-Invest. The second is copying another trader's trades.

Shares in T-Invest

A broker is a company through which a private person buys shares on an exchange. The strategy trades shares and funds of the Moscow Exchange through the broker T-Invest. The strategy's rules are the same as on a crypto exchange: the entry, the averagings, the TP. There are three differences: lots, trading sessions and the broker's fee.

Shares: lots

A lot is the smallest number of securities that can be bought or sold on the exchange at once. Each security has its own lot: 1 share for some, 10, 100 or 1000 for others.

The strategy rounds each part of the grid down to a whole number of lots.

Example. A lot is 10 shares at 250 ₽, that is 2,500 ₽ a lot.

  • Budget 20,000 ₽, 5 parts of 4,000 ₽. Each part holds one lot: 4,000 ÷ 2,500 = 1.6 → 1. The grid spends not 20,000 ₽ but 12,500 ₽.
  • Budget 10,000 ₽, 5 parts of 2,000 ₽. A part is smaller than one lot — such a strategy cannot be saved. A larger budget or fewer parts helps.

An incomplete lot after a cycle moves to the next cycle, like a small remainder on a crypto exchange.

Shares: trading sessions

Crypto exchanges trade around the clock. The Moscow Exchange trades on a schedule: the morning, main and evening sessions — roughly from 7 a.m. to 11:50 p.m. Moscow time. On some weekends there is a separate session. Not every security trades in all sessions.

The strategy trades whenever the exchange accepts orders for that security. At night and on non-trading days it waits quietly with the reason “market closed”, without messages. This is not a fault.

One more feature is day orders. The exchange cancels orders at the end of the trading day. When trading opens, the strategy places the averaging and the TP again. What filled yesterday is already counted.

Shares: the broker's fee

The broker charges a fee on each trade — both the buy and the sale. The size depends on the plan: on the “Investor” plan it is 0.3 % of the trade's sum.

Example. Bought for 10,000 ₽, sold for 10,100 ₽. Fee 0.3 %: 30 ₽ + 30.30 ₽ = 60.30 ₽. Of the 100 ₽ difference, 39.70 ₽ is left.

The broker does not tell the strategy its rate in advance. So at first the strategy counts the TP by the highest rate — 0.3 %. Once the strategy's trades reach 1,000 ₽ of turnover, the strategy learns the real rate. If it is lower, the TP is counted by it from then on. In detail — T-Invest shares and funds.

Copying: what a copy is

A copy is your strategy that trades by the rules of another user's strategy. That user is called the trader, and their strategy is the lead strategy. The money is yours, on your account. The exchange is yours.

A copy repeats the lead strategy's rules, not its prices: the number of parts, the step, the TP in percent, the trader's manual commands in percent. A copy counts all prices on its own exchange, from its own entry and its own average.

Copying: why prices and results differ

At any moment the rate differs a little between exchanges. Even on one exchange the copy's and the lead strategy's entries do not fill at one price. Then the difference runs through the whole cycle.

Example. Step 2 %. The lead strategy entered at 60,000, its first averaging is 58,800. The copy entered at 60,040, its averaging is 58,839. The price came down to 58,820 and went up. The copy's averaging filled, the lead strategy's did not. Their average prices, TPs, closing times and profits now differ.

More differences: the copy has its own exchange fee and its own balance. Over time the cycles drift apart: a copy may close a cycle earlier or later than the lead strategy. A copy's result can be better or worse.

Copying: what you risk

  • The trader's 30-day result promises nothing.
  • The trader's manual averagings spend your balance — keep a reserve of free money.
  • The trader decided to close a cycle at a loss — the copy closes its own at a loss too, without asking you.
  • A copy has the same spot and futures risks as an ordinary strategy (lesson 12, lesson 14).

In detail — I want to repeat another user's trades and Copying trades.

Check yourself

1. A security's lot is 10 shares at 300 ₽. A grid part is 5,000 ₽. How much does the strategy buy for this part?

  1. a) Exactly 5,000 ₽: 16.6 shares
  2. b) 1 lot — 10 shares for 3,000 ₽
  3. c) 2 lots — the strategy rounds up
Answer

Right: b) 1 lot — 10 shares for 3,000 ₽

A lot costs 3,000 ₽. The strategy rounds a part down to a whole number of lots: 5,000 ₽ holds one lot.

2. Saturday, there is no trading in the security. The strategy says “market closed”. What to do?

  1. a) Stop the strategy: this is an emergency
  2. b) Nothing: the strategy waits quietly for trading to open
  3. c) Move the strategy to another security
Answer

Right: b) Nothing: the strategy waits quietly for trading to open

The Moscow Exchange trades on a schedule. When there is no trading, the strategy waits without messages — this is not a fault.

3. Why does a T-Invest strategy first count the TP by a 0.3 % rate?

  1. a) The Moscow Exchange requires it
  2. b) It is the strategy's own fee
  3. c) The broker does not report the rate in advance, and the strategy takes the highest one until it learns the real one
Answer

Right: c) The broker does not report the rate in advance, and the strategy takes the highest one until it learns the real one

The highest rate of the “Investor” plan is 0.3 %. After 1,000 ₽ of turnover the strategy learns the real rate and, if it is lower, counts the TP by it.

4. You copy a trader. The trader has closed 3 cycles, your copy 2, and the profit differs. Why?

  1. a) The copy has a fault — it must be made again
  2. b) The copy trades by the trader's rules but at its own exchange's prices, so the trades and the result differ
  3. c) The trader hides part of the trades from the copy
  4. d) A copy always lags exactly one cycle behind
Answer

Right: b) The copy trades by the trader's rules but at its own exchange's prices, so the trades and the result differ

A copy counts the levels and the TP from its own entry and its own average on its own exchange. A difference is normal, up or down.

Sources