Crypto traders automating a rule
You already know when you buy and sell. A bot applies the rule on every closed candle, including the ones at 3 a.m.
Describe the bot you want: the exchange, the pair, the timeframe, the entry, the exit and how much to risk. Edgoro writes a complete Python bot built on ccxt, the open-source library that connects to most crypto exchanges, with a requirements.txt, an explanation of how it works and the steps to run it safely.
Every bot starts in paper mode: it logs the orders it would send instead of sending them, and uses the exchange's testnet when one exists. The code is checked with Python's compiler, errors are fixed automatically, and your API keys stay in a file on your machine.
Exchange and pair (Binance spot unless you say otherwise), timeframe, entry and exit rules, risk per trade and a daily loss limit. Plain English is enough.
The full bot in one file, a requirements list kept to ccxt, pandas and python-dotenv unless more is truly needed, then how it works and how to run it safely.
The code is checked with Python's py_compile. If it finds errors, they go back to the AI for up to two automatic fixes.
Create an API key with trading only, withdrawals disabled and an IP whitelist; put it in a .env file; install the requirements; run on testnet or in paper mode before anything else.
A typical request, and the top of the file that comes back. Every bot opens with the same safety defaults: keys read from the environment, the exchange's rate limiter on, paper mode on, and the testnet when the exchange has one.
RequestPython bot for BTC/USDT on Binance spot, 1h candles: buy when the 20 EMA crosses above the 50 EMA, stop at 2 × ATR, target 2R, risk 1% of the free USDT balance, stop for the day after a 3% loss.
import os
import ccxt
from dotenv import load_dotenv
load_dotenv() # API keys come from a .env file, never from the code
SYMBOL = "BTC/USDT"
TIMEFRAME = "1h"
RISK_PCT = 1.0 # % of the free USDT balance risked per trade
DAILY_LOSS_PCT = 3.0 # no new entries for the rest of the UTC day past this loss
PAPER = True # log orders instead of sending them
exchange = ccxt.binance({
"apiKey": os.getenv("EXCHANGE_API_KEY"),
"secret": os.getenv("EXCHANGE_API_SECRET"),
"enableRateLimit": True,
})
exchange.set_sandbox_mode(True) # Binance spot testnet: testnet keys differ from live keysBelow that block, the bot fetches closed candles with fetch_ohlcv, computes the EMAs, a Wilder RSI or the ATR with pandas (no TA-Lib to install), acts once per closed candle, holds one position per symbol and rounds every order to the exchange's precision and limits. Network errors are retried, everything is logged, and Ctrl+C stops it cleanly.
A crypto bot holds API keys to a real account, so the defaults matter as much as the strategy:
.env file and never written into the code.PAPER = True until you change it, and sandbox mode on exchanges that offer a testnet. Testnet keys are different from live keys.Edgoro never asks for your exchange keys and never runs the bot for you. It runs wherever you start it: your computer or a small VPS.
You already know when you buy and sell. A bot applies the rule on every closed candle, including the ones at 3 a.m.
Get readable, commented code with run steps, then learn by asking for changes in plain English.
Skip the plumbing (exchange setup, candles, sizing, precision, retries) and work on the strategy.
| Edgoro | Doing it yourself | A generic AI chatbot | |
|---|---|---|---|
| Exchange plumbing | ccxt setup, rate limits, precision and limits handled | Read each exchange's API docs | Depends on your prompt |
| Safety defaults | Paper mode, testnet, keys from .env | Up to you | Only if you ask |
| Dependencies | ccxt, pandas, python-dotenv; no TA-Lib | Your choice | Varies |
| Errors before running | py_compile check, up to 2 automatic fixes | Found when you run it | Found when you run it |
| Risk controls | Risk-based size, stop, target, daily loss limit | As many as you code | Only what you ask for |
Trading bots for MT5 and crypto are one option on top of a plan: +$25 when you tick it as you choose your plan, or $49 once later from Settings. The plans are Pro Monthly at $29 a month or Lifetime at $49 once, so Lifetime with the bots option comes to $74, paid once. Options work while your plan is active, and the bots option bought with your first plan is covered by the same 7-day money-back guarantee.
Exchanges that ccxt supports, including Binance, Bybit, OKX and Kraken. Without other instructions the bot targets Binance spot.
No, but you need Python 3.11 or later installed. The answer lists every command: install the requirements, add your keys to a .env file, run on testnet or in paper mode first.
The key never goes to Edgoro. The bot reads it from a .env file on your machine. Create it with trading permission only, withdrawals disabled and an IP whitelist.
It's checked with Python's py_compile, which catches syntax errors, with up to two automatic fixes. That doesn't test the strategy or your exchange connection, which is why every bot starts in paper mode.
Yes, wherever you start it: a computer that stays on or a small VPS. It retries network errors and exits cleanly when you stop it.
Backtest Lab, an add-on, tests a crypto strategy's rules on up to three years of candles for 20 major USDT pairs, with fees, slippage and an out-of-sample check.
Yes. MT5 Expert Advisors and Python crypto bots are one option: +$25 when you choose your plan, or $49 later. Indicators and chart analysis are in every plan.
A template for strategy prompts that produce correct Pine Script and MQL5: precise entries and exits, risk rules, filters, inputs and the words to avoid.
GuideLook-ahead bias, repainting, overfitting, missing costs and unrealistic fills: how each inflates a backtest and how to spot and fix it in TradingView and MT5.
GuideTurn a fixed percentage of your account into a position size for forex, stocks and futures, why small risk per trade matters, and when to adjust the 1% rule.
Free indicatorWhat the Average True Range measures, how traders use ATR for stops and position sizing, common settings, and a free ATR stop-lines script for TradingView.
Free toolSize a crypto spot or futures position from your risk, entry and stop.
Free toolEstimate the liquidation price of a leveraged long or short on perpetual futures.
Answer a few questions about how you trade, choose a plan with the bots option, and describe your strategy.
Instant access after checkout. 7-day money-back guarantee on your first purchase.
Trading involves substantial risk of loss and is not suitable for every investor. Edgoro is a software tool, not a broker or financial adviser: nothing it produces is investment advice, and past or backtested performance does not guarantee future results.