Active position management on Binance โ spot, futures and margin โ with AI-adaptive trailing stops, regime detection and WebSocket live feeds.
Active positions tracked in real time with adaptive exit rules
Trailing stop activates once a position is up +2%. The stop follows the price upward and locks in profit if the market reverses. Configurable activation threshold per strategy.
When a winning position reaches +3%, the engine adds to the position (scale-in) to maximise gains on trending moves. Maximum 3 scale-ins per position to control risk.
Positions that have been flat (< ยฑ0.3%) for 30 minutes are closed automatically. Flat markets tie up margin and accumulate fees โ time exits free capital for better opportunities.
The whale_aware_strategy.py module monitors order-book depth for large block orders that indicate institutional activity. Positions are sized and timed to avoid being caught on the wrong side of whale moves.
Stop distances adjust automatically based on whether the market is ranging or volatile
Tight 1% stop โ in a sideways chop, wide stops give up too much ground before the market moves in your favour. Tighter exits protect capital and allow re-entry.
Wider 3% stop โ in high-volatility regimes, tight stops get hit by noise. The wider stop rides out normal swings while still protecting against a true reversal.
Standard buy/sell of crypto assets on Binance spot markets. Full order-book access, market and limit orders, real-time P&L tracking per position.
Leveraged long and short positions on Binance USDโ-M perpetual futures. Margin management, liquidation monitoring and funding-rate tracking included.
Cross and isolated margin on Binance margin accounts. Borrow, repay and track interest automatically as part of position lifecycle management.
| Step | Command | Notes |
|---|---|---|
| 1. Configure API keys | python3 binance_setup.py --setup | Keys stored in api_keys.env |
| 2. Test on testnet | BINANCE_TESTNET=1 python3 strategy_live_runner.py | No real funds at risk |
| 3. Run live | python3 strategy_live_runner.py | WebSocket feed, active position loop |
| 4. Backtest strategy | python3 binance_backtest.py | Historical OHLCV replay |
| 5. Anti-manipulation | python3 binance_anti_manip.py | Detects wash-trade and spoofing patterns |
Contact us to discuss how Chameleon's trading engine can fit your workflow. Testnet setup included.
Get in touch โ Back to overview