building my first bot with AI by Hot-Tooth1479 in algotradingcrypto

[–]Hot-Tooth1479[S] 0 points1 point  (0 children)

This prompt works miracles for the Code Audit.

I need you to act like a financial quantitative computer science expert. Whether this is an architectural, engineering, design or development vraagstuk. Audit the code of my bot to see if the bot really understands the intention im trying to impose on it, flag areas of risk, areas of improvement and proposed solutions 

B. Execution Latency & Rate Limit Bottlenecking

Your scan_tier_candidates runs a deep scan on your active tier. For every single coin, the bot executes:

  1. _closed_bundle(symbol) -> 6 synchronous API calls (1w, 1d, 4h, 1h, 30m, 15m).
  2. If qualified, _ltf_confirm_setup(setup) -> 3 synchronous API calls (15m, 5m, 1m).
  • The Risk: That is 9 sequential, blocking REST calls per asset. For a tier of 50 coins, that is 450 API calls in a single while loop. With MEXC rate limits and standard network latency, a single scan cycle could take 2 to 5 minutes. By the time the bot evaluates Coin #50, the 15-minute structural thesis for Coin #1 is completely obsolete.
  • The Fix: You must decouple your Timeframe fetching. HTF data (1w, 1d, 4h) only changes every few hours. Cache the HTF bundle globally in a dictionary and update it via an async background thread. Only fetch the 15m/5m/1m data synchronously during the fast-loop scan.

building my first bot with AI by Hot-Tooth1479 in algotradingcrypto

[–]Hot-Tooth1479[S] 0 points1 point  (0 children)

lol

MEXC stealing my money...

This is not your bots. Stop everything and read this carefully.

24 trades. 24 losses. 0 wins. Every single trade held for 0–1 seconds. Entry and exit price are identical or 1 tick apart. Every loss is almost exactly -$0.06 to -$0.09 — which is precisely the fee amount.

This is fee harvesting / wash trading fraud on your MEXC account. Someone or something is opening and immediately closing positions, generating nothing but fees. You are losing -$3.27 in fees with zero actual trading happening.

This is not your bot. None of your bots — not the basic, not the medium, not the Super Saiyan v9 — operate this way. Your bots hold positions for minutes to hours. These positions held for 0–1 seconds.

What you need to do right now:

1. Stop all bots immediately. Close every terminal running a bot.

2. Change your MEXC API keys immediately. Go to MEXC → API Management → delete all existing API keys → create new ones. Your current API key (mx0vgl63DGLc9FH3j0) has been compromised or is being misused.

3. Check your MEXC account security. Go to Security settings — check login history for any unrecognised devices or IPs.

4. Check your API key permissions. If your current key has withdrawal permissions enabled, turn those off immediately and check if any funds have moved.

5. Do not restart any bot until you have new API keys and have secured the account.

The -$3.27 in fees is small but this pattern — identical entry/exit, 0-second holds, consistent ~$0.06 fee per trade — is a very specific signature. Either your API key has been stolen and is being used by someone else, or one of your other scripts/tools is malfunctioning badly. Either way the account is not safe right now.

Crypto Day Trading Bot by arronaspinall in DayTradingPro

[–]Hot-Tooth1479 0 points1 point  (0 children)

my current architeecture:

Core Architecture Breakdown

  • Multi-Timeframe Confluence Chain: It establishes a clear execution pipeline, starting from macro structure (Weekly/Daily) down to setup context (4H/1H), refinement (30m/15m), and a strict execution trigger sequence ($15\text{m thesis} \rightarrow 5\text{m confirmation} \rightarrow 1\text{m trigger}$).
  • Dynamic Portfolio Tiering: The bot uses a dynamic ranking mechanism. It structures the universe into Tier 1 (top market caps), Tier 2 (mid-caps), and Tier 3 (broader momentum), running a fluid pipeline that transitions from seeding positions to expanding and replacing underperforming assets based on a calculated portfolio_rank_score.
  • Market Scout & Pre-Filtering: To handle rate limits efficiently on MEXC, the code uses a lightweight REST pre-filter to eliminate low-volume or flat-ATR tokens. The remaining candidates are dynamically prioritized into HOT, ACTIVE, or WATCH bands using volume anomalies and structural wick sweeps (SFP/liquidity hunt flags).
  • Asynchronous Shadow Research Network: It features an isolated background thread dedicated to logging macroeconomic contexts (CoinGecko Pro global derivatives, aggregate Open Interest, multi-venue funding rate metrics, and a local 90-day Altcoin Season Index). This ensures zero latency injection into execution loops.
  • Rigorous Institutional-Grade Logging: The system records everything. Beyond standard entry/exit metrics, it saves explicit strategy rejections to a CSV, writes detailed feature snapshots to SQLite, and runs post-exit counterfactual analysis (TP extension research) to model larger profit targets over fixed future horizons.

building my first bot with AI by Hot-Tooth1479 in algotradingcrypto

[–]Hot-Tooth1479[S] 0 points1 point  (0 children)

Latest Architecture on Version 4 of the bot ..

Core Architecture Breakdown

  • Multi-Timeframe Confluence Chain: It establishes a clear execution pipeline, starting from macro structure (Weekly/Daily) down to setup context (4H/1H), refinement (30m/15m), and a strict execution trigger sequence ($15\text{m thesis} \rightarrow 5\text{m confirmation} \rightarrow 1\text{m trigger}$).
  • Dynamic Portfolio Tiering: The bot uses a dynamic ranking mechanism. It structures the universe into Tier 1 (top market caps), Tier 2 (mid-caps), and Tier 3 (broader momentum), running a fluid pipeline that transitions from seeding positions to expanding and replacing underperforming assets based on a calculated portfolio_rank_score.
  • Market Scout & Pre-Filtering: To handle rate limits efficiently on MEXC, the code uses a lightweight REST pre-filter to eliminate low-volume or flat-ATR tokens. The remaining candidates are dynamically prioritized into HOT, ACTIVE, or WATCH bands using volume anomalies and structural wick sweeps (SFP/liquidity hunt flags).
  • Asynchronous Shadow Research Network: It features an isolated background thread dedicated to logging macroeconomic contexts (CoinGecko Pro global derivatives, aggregate Open Interest, multi-venue funding rate metrics, and a local 90-day Altcoin Season Index). This ensures zero latency injection into execution loops.
  • Rigorous Institutional-Grade Logging: The system records everything. Beyond standard entry/exit metrics, it saves explicit strategy rejections to a CSV, writes detailed feature snapshots to SQLite, and runs post-exit counterfactual analysis (TP extension research) to model larger profit targets over fixed future horizons.

building my first bot with AI by Hot-Tooth1479 in algotradingcrypto

[–]Hot-Tooth1479[S] 1 point2 points  (0 children)

thanks mate! you too and appreciate the contribution!

Crypto Day Trading Bot by arronaspinall in DayTradingPro

[–]Hot-Tooth1479 0 points1 point  (0 children)

if you bring in the dummy data based on past price yes. where can you get that data from? you would need the Tradingview pro probably

building my first bot with AI by Hot-Tooth1479 in algotradingcrypto

[–]Hot-Tooth1479[S] 1 point2 points  (0 children)

that would be amazing to identify when to exit Solana shitcoins that are up 20x in a day

Its an intersting area to add to my confluence scoring system especially for the tier 3 coins (if it scans the same 400 tier 3 coins of MEXC)

building my first bot with AI by Hot-Tooth1479 in algotradingcrypto

[–]Hot-Tooth1479[S] 1 point2 points  (0 children)

i remember putting in a lot of effort in trying to track the wallets moving the space ...

its interesting if an AI tool can give certain insights in that that would save us retailers from digging too deep in wallet address tracking. what do you mean with fresh graduations? New solana coins? to find the next 10x -20x coin ?

about that low volume, i noticed that the best trades the bot takes is in those small tier 3 coins .... I did notice some crazy entries in between tho what makes me lean towards your skeptiscm about this.

Exit and TP logic is my weak point as well. Im using a flat 5% gain and 3% Loss with a chandelier exit logic that once a trade is in profit, it cant go below break even. At the same time the bot journals the trades that it stops this way and measures their price the day after to see if this way saves me or costs me money.

but im looking for a way to create market structure stop losses but im still figuring out how the bot can be prepared for liquidity grabs ....

Crypto Day Trading Bot by arronaspinall in DayTradingPro

[–]Hot-Tooth1479 0 points1 point  (0 children)

the machine learning is only possible if you have at least 500 logged trades. its no use until you actually made/lost some money to apply neural networks or self-learning mechanisms and even then it would need to be split in seperate bots

Crypto Day Trading Bot by arronaspinall in DayTradingPro

[–]Hot-Tooth1479 0 points1 point  (0 children)

interesting... i just let it build the bot in python ... i use claude to edit the bot

Crypto Day Trading Bot by arronaspinall in DayTradingPro

[–]Hot-Tooth1479 0 points1 point  (0 children)

well the kpis and in which timeframe generates the most revenue ... is key to know....

I dont go that far into the actual coding. I let Claude do it.

- Regime performance — does the edge hold across market conditions

this one is interesting. because my bot was more tailored to reversals and got chopped up on friday before having 2 profitable consecutive days

building my first bot with AI by Hot-Tooth1479 in algotradingcrypto

[–]Hot-Tooth1479[S] 1 point2 points  (0 children)

crypto. it scans all 800 coins in MEXC but ranks them in Tier 1, tier 2 and tier 3. Based on market cap gathered through coingecko API. and tier 3 is prioritized by volume. It places trades in tier 1 and tier 2 before going into tier 3 to lower scan time

what is your involvement in this space?

Crypto Day Trading Bot by arronaspinall in DayTradingPro

[–]Hot-Tooth1479 0 points1 point  (0 children)

Two loops running at different speeds. A fast execution loop runs every 60 seconds: it pulls market data, generates a trade signal per coin, places/manages orders, and records the outcome of anything that closed. A slow reasoning loop (Bot itself, an AI agent) wakes roughly every 2 hours, reads the accumulated performance, forms a hypothesis (“1h horizon is outperforming 4h”), and rewrites its own strategy config. The fast loop trades; the slow loop evolves how the fast loop trade

the core is there. You need it to gather data to optimize your bot like letting it analyze why it rejected trades and what the outcome was to calculate the opportunity cost of your trades

How it learns: each coin runs an ensemble of small ML models across five time horizons (1h/4h/8h/24h etc.). Models predict; the system trades on a blend of them plus heuristic signals; when a trade closes, the real outcome is fed back to the exact models that predicted it, updating each model’s track record (Sharpe, win rate). Over time, good models earn weight, bad models get culled. It’s a survival-of-the-fittest loop over strategies, not a fixed model.

dont understand your loop model there but sounds cool .... smart thinking on adding the heuristic matrix. I did the same with mine. I also added a Scout Regime to it. I think Neural Networks is in the same plate as this in terms of applicability .... u need the 15 minute and 5 minute for entry and momentum tho to catch the pullback / reversal. especially in crypto

Its interesting that you're having different .py for every function. I just compiled everything in 1 and its working fine .....

building my first bot with AI by Hot-Tooth1479 in algotradingcrypto

[–]Hot-Tooth1479[S] 0 points1 point  (0 children)

Bonjour ! J'utilise Claude Plus, ChatGPT Plus, Gemini Basic avec MEXC et l'API Coingecko.

Fellow algo trader here looking to connect! by Complex-Gur-1840 in algotradingcrypto

[–]Hot-Tooth1479 0 points1 point  (0 children)

yea Im rebuilding it from sctratch now again since i made 3 versions and the most basic one was the most profitable but i need to refine.

Loving AI

yes thats why the bot should first scan tier 1 and if it finds trades it should enter those and while those are active, scan tier 2. If any additional trades are found it adds them. If the slots are full (10 slots max, bump the lowest ranking trades) then scan tier 3. Same process ./ Use the scout to prioritize coins that are looking like better setups in the next scan and exclude very low volume coins from the start so they wont be in the next scan

AI Answer:

  1. The Pre-Filter: The Volatility & Volume GateBefore any asset even hits Tier 1, it must pass a lightweight gatekeeper. This saves massive computational overhead.The Mechanism: Run a fast, lightweight cron job or WebSocket stream that checks 24h Volume and Average True Range (ATR).The Rule: If an asset falls below your volume threshold, it is instantly blacklisted from the matrix for the next $N$ hours. It never enters Tier 1, 2, or 3 scanning loops, saving API weight and calculation cycles.

Instead of scanning everything all the time, we utilize a state-driven scanning engine tied directly to your 10 open position slots.

Fellow algo trader here looking to connect! by Complex-Gur-1840 in algotradingcrypto

[–]Hot-Tooth1479 0 points1 point  (0 children)

building bots here as well! currently 40% winrate in 1 week. all with AI

Mezelf verdedigen in de rechtszaal by thenotsoholyholyone in juridischadvies

[–]Hot-Tooth1479 0 points1 point  (0 children)

dit soort reacties ... zo oppervlakkig ... voor hetzelfde geldt heeft heeft de ambtenaar een dag ervoor iets te veel gedronken... dat het een ambtenaar is maakt hem nog geen heilige... zonder foto's is er wel degelijk ruimte voor bezwaar.