The math

No black box. Here are the formulas.

The risk rules first, then the indicators. Nothing here predicts prices.

01Risk rules

How it limits what can happen to your money

What each risk level does to your budget, then the risk gate’s sizing and kill switch, the protective orders and the accounting, exactly as coded.

The risk profiles, exactly as coded

Percentages are of your budget B; stop-loss and take-profit are of the price paid, follow your time horizon, are the widest a coin gets (a quiet coin gets closer ones) and are defaults you can change.

Risk levelLowMediumHigh
Per-coin cap p5%15%30%
Daily-loss limit ℓ2%5%10%
Min. confidence0.700.600.60
Days: stop-loss s̄1.2%2%4%
Days: take-profit τ̄2.4%4%8%
Weeks: stop-loss s̄3%5%10%
Weeks: take-profit τ̄6%10%20%
Months: stop-loss s̄6%10%20%
Months: take-profit τ̄12%20%40%

Every buy and sell also needs the coin on your watchlist, a confidence at or above the minimum, and no earlier order for that coin still waiting for the exchange to confirm it. These limits reduce risk; they do not remove it, and none of this predicts returns.

Risk gate

Position sizing: two caps, one min

budget Bcap share p

The AI proposes a size; the gate clamps it to whichever cap binds first (the per-coin cap or the total budget cap) and names it.

Ei=max(costi,valuei) D=∑iEi+unconfirmed buys
room=min(p⋅B−Ecoin,B−D)
size=min(proposed,room) rejected if room≤0

Both caps count only what the bot bought, each position at the larger of what it cost and what it is worth, so neither a rally nor a drawdown makes them look roomier than they are. Buys approved earlier in the same cycle count too.

Risk gate

Daily-loss kill switch

rolling 24 hper venue

Past your daily-loss limit, new buys pause until the losses roll out of the 24-hour window.

R24h=∑sells in last 24 h(proceeds−c¯⋅q) R24h<−ℓ⋅B⇒every buy is rejected

Realized profit and loss over the last 24 hours, average-cost basis, protective stop-loss and take-profit fills included. It blocks buys, never exits: sells and protective orders always go through, because they only reduce risk. A sell with no recorded cost basis counts as zero, never as profit.

Accounting

Cost-basis P&L (average cost)

per booknet of fees

Positions and profit and loss are replayed from your journal’s filled orders, one book per mode and exchange account, so paper results never mix with real ones.

buy q for v: Q←Q+q,K←K+v c¯=K/Q
sell q for v: realized=v−c¯⋅q Q←Q−q,K←c¯⋅Q
unrealized=Q⋅P−K

Quantities are what really filled, net of commission; proceeds are net of the fee. In Paper a buy fills at Binance’s best ask and a sell the AI decides at its best bid (a stop-loss or take-profit at its level, below), each with Binance’s standard 0.1% fee. Coins you already held are never part of it. In Manual mode the journal holds the trades you confirm, at the quantity and price you enter, in a book of its own. Exchange fees count only if you include them, and a stop-loss or take-profit that fills on your exchange counts once you record the sale.

Protection

Stop-loss / take-profit bracket

one-cancels-the-otherafter every buy

A take-profit limit above your entry price and a stop below it.

SL=entry⋅(1−s) TP=entry⋅(1+τ)
s=min(s¯,max(f,3⋅ATR%)) τ=2⋅s
fDays=1% fWeeks, Months=max(s¯/2,1%)
SL≤P⋅(1−0.005) TP≥P⋅(1+0.005)

Your own stop-loss or take-profit, where you set one, takes the place of s or τ. Where you set none, they follow how much the coin moves: three times its ATR% on your horizon’s trading timeframe (1h on Days, 4h on Weeks, 1d on Months), rounded to 0.1%. That is never wider than s̄ in the table above and never closer than the floor f: 1% on Days, at every risk level, and half of s̄, at least 1%, on Weeks and Months. With no ATR, or where the pair’s smallest price step would round a blank take-profit down onto the price, they are the table’s s̄ and τ̄. A blank take-profit is twice the coin’s s, also next to a stop-loss you set yourself. On Days, a bracket placed again for a position already open, for example for the rest after a sale, keeps half of s̄, at least 1%, as its floor. A level the market has already passed is moved just past the current price P. The stop sells at market where the pair supports it, otherwise as a stop-limit 0.5% under its trigger. In Paper the same two levels are walked on Binance’s closed 1-minute candles every 5 minutes, and up to that second before an AI sell of the coin: the first minute whose low reaches the stop-loss or whose high goes above the take-profit closes the position (a minute that did both counts as the stop-loss; in the minute the levels are set, only the stop-loss counts). The take-profit fills at its level, the stop-loss at its level or at that minute’s opening price when the price gapped below it, then the 0.1% fee. A stop does not guarantee the exit price.

02Indicators

How it measures the market

Six textbook indicators, plus volume and price change, computed on closed candles only, on two timeframes for every coin, and recent highs and lows on the main one. They describe the market; none of them predicts it.

Momentum

RSI (Relative Strength Index)

n = 14Wilder smoothing

Average gain against average loss over 14 closed candles.

Gt=max(Ct−Ct−1,0) Lt=max(Ct−1−Ct,0)
G¯t=(n−1)⁢G¯t−1+Gtn RSI=100−1001+G¯/L¯

The averages start as a simple mean and are then smoothed Wilder’s way (L̄ the same as Ḡ). A perfectly flat market reads 50; readings above 70 are conventionally called overbought, below 30 oversold.

Trend & momentum

EMA and MACD

12 / 26 / 9EMA seeded with an SMA

Two exponential averages of the close; the gap between them is momentum.

k=2n+1 EMAt=k⁢Ct+(1−k)⁢EMAt−1
MACD=EMA12−EMA26 Signal=EMA9(MACD)
Histogram=MACD−Signal

The signal line smooths that gap, and the histogram shows whether momentum is building or fading. Each EMA starts from the simple average of its first n values.

Volatility

Bollinger Bands and %B

20 candles2 σ (population)

A 20-candle average with a band two standard deviations either side.

μ=120∑i=019Ct−i σ=120∑i=019(Ct−i−μ)2
Upper,Lower=μ±2σ %B=Ct−LowerUpper−Lower
Bandwidth=Upper−Lowerμ×100

%B places the latest close inside the band (0 at the lower edge, 1 at the upper, above 1 outside it), and bandwidth says how wide, that is how volatile, the market currently is.

Volatility

ATR (Average True Range)

n = 14Wilder smoothing

The typical size of one candle, gaps from the previous close c included.

TRt=max(Ht−Lt,|Ht−c|,|Lt−c|) c=Ct−1
ATRt=(n−1)⁢ATRt−1+TRtn ATR%=ATRP×100

It starts as the mean of the first 14 true ranges and is then smoothed. ForecastsPro reports it as a percentage of the price P, so a $60,000 coin and a $0.10 coin compare directly.

Trend strength

ADX with +DI and −DI

n = 14Wilder smoothing

ADX says how strongly a trend is running, whichever its direction; +DI and −DI (DI⁺, DI⁻) say which side has been pushing.

ut=Ht−Ht−1 dt=Lt−1−Lt
DMt+=ut if ut>max(dt,0), else 0
DI±=100⋅S(DM±)S(TR) St=St−1−St−1n+xt
DX=100⋅|DI+−DI−|DI++DI− ADX=Wilder average of DX

DM⁻ mirrors DM⁺ with d and u swapped, and S is Wilder’s running sum. The DIs need 15 candles and ADX needs 28, because its first value averages 14 DX readings.

Context

Multi-timeframe trend label

SMA 50 / 200two timeframes

Each coin gets this label on its trading timeframe and on the next one up (1h with 4h, 4h with 1d, 1d with 1w), so a short-term signal is read against the bigger trend.

trend={ upP>SMA50>SMA200 downP<SMA50<SMA200 sidewaysotherwise dist200=P−SMA200SMA200×100

Before 200 candles exist, price against SMA 50 must agree with EMA 12 against EMA 26. The label is context for the AI, not a gate rule.

Participation

Volume ratio

24 / 24 candlesneeds 48

The average volume V of the last 24 candles against the average of the 24 before them.

ratio=124∑i=023Vt−i124∑i=2447Vt−i

1.0× is normal; the coin card shows 1.3× and more as busier than usual. With fewer than 48 candles, or no volume in the earlier 24, there is no reading.

Change

Price change

n = 1, 24, 168candles, not hours

The percent change of the close over the last n candles.

Δn=Ct−Ct−nCt−n×100

The coin card shows n = 24 next to the price and 168 under Details, each labelled with its period (4d and 28d on 4h candles); the AI also reads n = 1.

Levels

Recent highs and lows

n = 24, 168trading timeframe only

Levels are where moves often pause or turn; they predict nothing. Only the AI reads these; the coin card does not show them.

highn=maxi<nHt−i lown=mini<nLt−i
swing high:Hk=max|j−k|≤3Hj run=P−low20ATR
sweep:Lm<min1≤i≤24Lm−i<Cm
breakout:Cm>ℓ=max1≤i≤48Hm−i ℓ=Hm−i for some i≥24
held:Lk≤ℓ+0.3⋅ATR,Ck>ℓ failed:Ck<ℓ
  • Candles: closed candles of your horizon’s trading timeframe (1h on Days, 4h on Weeks, 1d on Months). H, L and C are a candle’s high, low and close, t the last closed candle and P the price now.
  • Highs and lows: the highest high and lowest low of the last 24 and 168 candles.
  • Swing high: the highest of 7 candles, itself and 3 on each side, within the last 168; a swing low the lowest. The AI gets the nearest swing high above the price that no later candle traded above, and the latest swing low under it.
  • Run: how many ATRs the price is above its 20-candle low.
  • Sweep: a candle of the last 24 that dipped under the lowest low of the 24 before it and closed back above it.
  • Breakout: a close of the last 24 above the highest high ℓ of the 48 candles before it, a high set at least 24 candles earlier.
  • Held: a later candle k came within 0.3 ATR of ℓ and closed above it.
  • Failed: any later close fell under ℓ, even after it held.
  • Too few candles: no reading.

Trade live. Stay in control.

$699 a year while founding seats last. Live trading: real money from your own Binance account. Or start with Paper trading: no real money.