Alphafamilia Algo Help

I want to trade futures

At the end of this path a futures strategy on Binance, BingX or Bybit trades with leverage and has passed its first cycle. You will know what leverage, long and short, liquidation and funding are, and why futures are riskier than spot.

Binance COIN-M futures (the money and the profit in BTC) — after this path: I want to trade COIN-M futures.

Read Getting started first and go through spot: I want to trade crypto. Futures are the next step, not the first.

How futures differ from spot

  • Leverage. The strategy's budget is the position's size (the “Position size” field); the pledge (the margin) = position size ÷ leverage. A position size of 300 USDT with leverage 3 — a margin of 100 USDT. The leverage does not change the grid, only how much of your money is tied up — and a price move against the position hits the margin that many times harder. In the app leverage is from 1 to 10.
  • Long and short. Long — the strategy earns on a rise of the price (as on spot: buy, then sell dearer). Short — on a fall: sell first, then buy back cheaper. No coins are needed for a short.
  • Liquidation. If the price went too far against the position, the exchange closes the position itself. The pledge is lost. The higher the leverage, the closer the liquidation.
  • Funding. A regular payment between longs and shorts on the exchange's schedule. You pay it or are paid. The strategy counts it in the cycle's profit.

What you need

  • Access to the app and experience with a spot strategy.
  • The quiz of lesson 14 of the Trading school passed — “Leverage, margin and liquidation”. Without it no futures connection can be added (lessons 13–15 are about futures; read them all).
  • An open futures account at the exchange: Binance — USD-M, BingX — Perpetual Futures (USDT-M), Bybit — USDT futures on the Unified Trading Account.
  • A key that may trade futures, without withdrawals, with the server's address in the IP list.
  • Money on the futures account — from 200 USDT. A deposit lands elsewhere: at Binance — on the spot wallet (move USDT to the USDⓈ-M futures one: “Wallet” → “Transfer”), at BingX — on the Fund account, at Bybit it may land on Funding (move it to the Unified Trading one).
  • First — a test environment: the Binance futures test network, the BingX VST demo account or the Bybit demo account (I want to try without money).
  • Allowed pairs. The pairs for strategies on each market are allowed by the system administrator. If the strategy's form says “The administrator has not allowed any pair on “…” yet — no strategy can be created here.”, write to the system administrator in Telegram — @alphafamilia: which pairs you need. The list of pairs can be extended on request.

Steps

  1. Set up the futures account at the exchange. The strategy needs: the position mode Hedge Mode (long and short are separate positions), Cross margin, a single margin asset. Where to switch it:
    • Binance — Futures: preparation. The strategy does not switch the mode; it waits and says what to switch on.
    • BingX — Futures account setup. Hedge Mode is on at BingX by default.
    • Bybit — Bybit. The strategy switches Hedge on itself if nothing USDT perpetual is open; the margin — Regular (cross).
  2. Create a key that may trade futures: Binance — “Enable Futures”, BingX — “Perpetual Futures Trading”, Bybit — “Orders” and “Positions” in the “Contracts” section. Withdrawals — off. In detail — Keys at the exchange.
  3. In the app: “Profile → Settings → Exchange connections” → “+ New connection”.
  4. Choose the market: “Binance USD-M futures”, “BingX USDT-M futures” or “Bybit USDT futures”. Choose the environment: for a try — a test one, for trading — the live one. Press “Next: the key →”.
  5. Paste the key, press “Check the key”. The “Check result” must show “Futures allowed” with ✓. Press “Next: name and vault password →”.
  6. Type the vault password and press “Add” (for the live environment — “Add the live key” and a confirmation).
  7. Press “+ New strategy” and choose the futures connection. Choose the pair.
  8. Type the “Position size” — the size of the position in USDT (on futures that is what the budget is called).
  9. Set the “Leverage”. To begin — 1 or 2. Under the “TP | Leverage” row you see: “Margin ≈ … USDT (position size ÷ leverage)” — that much of your money the account needs.
  10. Choose the side: open “More settings”, the “Mode” field — “long” (the default) or “short”.
  11. Read the form's warnings. With leverage above 5 — “Leverage …: the liquidation is ≈ … % from the average price. 5 or less is advised.”. If averaging levels lie beyond the liquidation price, they will not fill: lower the leverage, the step or the number of parts.
  12. Press “Start” (it saves and starts at once) and confirm in the window “Save and start…”.

A futures strategy: the risk strip and the “Futures” card

How to know it worked

  • In the list the strategy is “running”. Under the strategy's title — the risk strip, for example “Long 3× · notional 300.00 USDT · 31.2 % to liquidation · far”.
  • The “Futures” card: “Side”, “Leverage”, “Notional”, “Funding this cycle”, “Mark price”, “Liquidation price”. If the cycle's grid is a little below the position size, “Notional” shows, for example, “494.94 USDT of 500.00 USDT”: each part's quantity is rounded down to the exchange's step.
  • A manual purchase (“Average”) on futures: the “Amount” is the position's size, the leverage is already in it; the margin (amount ÷ leverage) is under the field.
  • Telegram — “▶️ Bot started”, then the fill messages and “💰 Cycle 1 closed”.
  • If the strategy's screen says “Waiting: the account is not in Hedge Mode / cross margin — switch it on the exchange” — go back to step 1.

What you risk

  • Liquidation. There is no stop-loss. The strategy cannot stop a liquidation. If the position was liquidated, the strategy goes into an emergency with the reason “the exchange liquidated the position”.
  • The risk strip. Green — more than 25 % to liquidation, amber — from 10 to 25 %, red — 10 % or less. At red “🔴 Close to liquidation” comes. Whether to close the position is your decision, by hand at the exchange.
  • Cross margin. The pledge is all the free money of the futures account, not only the strategy's budget. Keep on the futures account only what you are ready to risk.
  • Leverage multiplies the loss. Leverage 5 — the loss grows 5 times faster than on spot.
  • “Stop” does not close the position. The orders are cancelled, the position stays open without a TP.
  • Funding. In a long cycle the funding payments may eat the profit.

How to limit the risk: a test environment, leverage 1–2, a small budget, watch the risk strip. In detail — Futures.

If something goes wrong

  • “First — the quiz of the lesson “Leverage, margin and liquidation”” in the connection form or “A futures connection can be added after the quiz of lesson 14…” — pass the quiz of lesson “Leverage, margin and liquidation” and add the connection again.
  • “The administrator has not allowed any pair on “…” yet — no strategy can be created here.” Write to the system administrator in Telegram — @alphafamilia — which pairs you need; the list of pairs is extended on request.
  • “The key may not trade futures”. Turn futures on for the key. At Binance a key made before the futures account was opened cannot do it — create a new one.
  • “Waiting: the account is not in Hedge Mode / cross margin”. Switch the account's mode at the exchange (step 1).
  • “Waiting: another leverage on the exchange and it cannot be set”. The pair already has a position or orders with another leverage. The leverage is one per pair: the strategies of one pair must have the same leverage.
  • “Close to liquidation”. Open the strategy, look at the risk strip. Decide whether to close the position at the exchange.
  • “TP is filling — no more buying”, and the cycle does not close (BingX, Bybit). These exchanges sometimes show a trade several minutes late. The strategy waits for it up to 12 minutes and does not go into an emergency; nothing to do.
  • “⚠️ … little BNB left for futures fees” (Binance). The fee discount for paying in BNB is on at the futures wallet, and there is little BNB there. Transfer a little BNB to the futures wallet or switch the discount off on the exchange. The strategies go on working.

The rest — Something went wrong — how to fix it.

Next