<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Santiago Uriel Mendez Arriaga</title>
    <description>The latest articles on DEV Community by Santiago Uriel Mendez Arriaga (@santiagouriel_mendezarria).</description>
    <link>https://dev.to/santiagouriel_mendezarria</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4265687%2F9cfcfe1e-4799-4034-ab83-9e76820a6481.png</url>
      <title>DEV Community: Santiago Uriel Mendez Arriaga</title>
      <link>https://dev.to/santiagouriel_mendezarria</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/santiagouriel_mendezarria"/>
    <language>en</language>
    <item>
      <title>I Backtested My Python Crypto Bot on 3 Years of Data: It Failed. Then I Made It Worse.</title>
      <dc:creator>Santiago Uriel Mendez Arriaga</dc:creator>
      <pubDate>Sun, 29 Nov 2026 21:44:17 +0000</pubDate>
      <link>https://dev.to/santiagouriel_mendezarria/i-backtested-my-python-crypto-bot-on-3-years-of-data-it-failed-then-i-made-it-worse-g4j</link>
      <guid>https://dev.to/santiagouriel_mendezarria/i-backtested-my-python-crypto-bot-on-3-years-of-data-it-failed-then-i-made-it-worse-g4j</guid>
      <description>&lt;p&gt;Building an algorithmic trading bot is a journey of constant humbling. When I wrote my V2 rule (EMA crossovers, RSI, and a 24h momentum check), I thought I had found a solid edge.&lt;/p&gt;

&lt;p&gt;To keep myself honest, I decided to backtest it on 3 years of 1-hour candles for BTC and ETH (~26,298 candles per coin) using the public Binance API. I tested a 5% Take Profit (TP) and a 1% Stop Loss (SL) with a realistic 0.78% exchange fee per side (1.56% round-trip).&lt;/p&gt;

&lt;p&gt;I compared my strategy against the ultimate reality check: a random baseline (entering blindly every 4 hours).&lt;/p&gt;

&lt;p&gt;The results were a disaster.&lt;/p&gt;

&lt;p&gt;📉 The "Before": My Rule vs. Randomness&lt;/p&gt;

&lt;p&gt;Coin and Method Trades Hits TP Hits SL Exits at 24h Avg Net (after fees)&lt;br&gt;
BTC, v2 rule 1,146 4.6% 60.1% 35.3% -1.60%&lt;br&gt;
BTC, entering blindly 6,485 4.3% 58.3% 37.3% -1.53%&lt;br&gt;
ETH, v2 rule 1,292 7.8% 73.5% 18.7% -1.65%&lt;br&gt;
ETH, entering blindly 6,485 7.7% 68.9% 23.3% -1.56%&lt;/p&gt;

&lt;p&gt;My algorithm didn't just lose money; it was statistically worse than a coin flip. The reason? A fixed 1% Stop Loss is too tight. For ETH, 73.5% of the trades hit the SL before the market could ever move 5% in my favor. The normal market noise was kicking me out of the trade.&lt;/p&gt;

&lt;p&gt;🛠️ The "Fix": The Momentum Exit (The Trap)&lt;/p&gt;

&lt;p&gt;I thought I could solve this. If I'm getting stopped out by noise, I should just exit dynamically. I rewrote the exit logic: "If the MACD histogram turns negative or the price drops below the EMA200, exit the trade immediately at the close."&lt;/p&gt;

&lt;p&gt;I ran the backtest again. It got worse.&lt;/p&gt;

&lt;p&gt;Here is the data with the new dynamic momentum exit:&lt;/p&gt;

&lt;p&gt;Coin Method Trades Hits TP Hits SL Momentum Exit Avg Net (Fees)&lt;br&gt;
BTC V2 + Momentum 1,146 1.0% 9.1% 89.9% -1.54%&lt;br&gt;
BTC Random + Momentum 6,485 1.0% 10.4% 87.6% -1.53%&lt;br&gt;
ETH V2 + Momentum 1,292 1.5% 20.9% 77.6% -1.63%&lt;br&gt;
ETH Random + Momentum 6,485 1.6% 19.7% 78.1% -1.54%&lt;/p&gt;

&lt;p&gt;🧐 The Autopsy: Why did the dynamic exit fail?&lt;/p&gt;

&lt;p&gt;Look at the Momentum Exit column. The bot is exiting almost 90% of BTC trades this way. But here is the killer stat: 68.7% of those exits happen in the FIRST HOUR.&lt;/p&gt;

&lt;p&gt;Here is what is actually happening:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The bot detects a signal and buys.&lt;/li&gt;
&lt;li&gt;One hour later, a tiny red candle appears, or the MACD dips slightly. The bot panics and sells.&lt;/li&gt;
&lt;li&gt;The trade lasts an average of 2.5 hours.&lt;/li&gt;
&lt;li&gt;Because the trade closes so fast, the price barely moves (0.1% or 0.2%).&lt;/li&gt;
&lt;li&gt;But the 1.56% round-trip fee is guaranteed.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I wasn't trading. I was just feeding the exchange fees. The math is brutal: to break even with a 5% TP and 1% SL, I needed a 42.7% win rate. I achieved 4.6%.&lt;br&gt;
💡 Key Takeaways for Algo-Traders&lt;/p&gt;

&lt;p&gt;Building this bot taught me three harsh lessons:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Timeframes matter: At the 1-hour level, market noise and fees will destroy you. You need higher timeframes (4H or 1D) where price movements are large enough to justify the commission.&lt;/li&gt;
&lt;li&gt;Random Baselines are brutal: If your indicator can't beat entering at random, it has no edge.&lt;/li&gt;
&lt;li&gt;Never underestimate fees: A 0.78% fee per side is a mountain to climb if your average trade duration is 2 hours.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;🚀 What's Next?&lt;/p&gt;

&lt;p&gt;These results proved that traditional indicators (MACD, RSI) and dynamic exits aren't enough on their own.&lt;/p&gt;

&lt;p&gt;In my next iteration (V3), I am throwing out the fixed time exits and adding an AI Gatekeeper (using Groq/Claude). Before executing any buy order, the AI will read the recent price action and the confluence score to block bad trades and hold the position longer.&lt;/p&gt;

&lt;p&gt;This is an educational project in paper-trading mode. No real money is being risked, and this is not financial advice.&lt;/p&gt;

&lt;p&gt;Have you ever backtested a strategy and realized fees ruined it? Let me know in the comments!&lt;/p&gt;

&lt;p&gt;🔗 You can check out the full educational course, the Python code, and the manual here: &lt;a href="https://botsenalescriptointeligente.netlify.app" rel="noopener noreferrer"&gt;https://botsenalescriptointeligente.netlify.app&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>analytics</category>
      <category>playwright</category>
    </item>
    <item>
      <title>I tested my trading rule on 3 years of data: it doesn't beat entering at random</title>
      <dc:creator>Santiago Uriel Mendez Arriaga</dc:creator>
      <pubDate>Sat, 28 Nov 2026 22:20:47 +0000</pubDate>
      <link>https://dev.to/santiagouriel_mendezarria/i-tested-my-trading-rule-on-3-years-of-data-it-doesnt-beat-entering-at-random-26ao</link>
      <guid>https://dev.to/santiagouriel_mendezarria/i-tested-my-trading-rule-on-3-years-of-data-it-doesnt-beat-entering-at-random-26ao</guid>
      <description>&lt;p&gt;I tested my simulator's buy rule on 3 years of 1-hour BTC and ETH candles, with a 5% take profit, a 1% stop loss and Bitso's fees. Result: it reached take profit only 4.6% to 7.8% of the time, when it needed 42.7% just to break even, and it did not beat entering at random. Here is how I measured it, the code, and what it means.&lt;/p&gt;

&lt;p&gt;In my &lt;a href="https://dev.to/santiagouriel_mendezarria/cuantos-aciertos-necesita-un-bot-de-cripto-para-no-perder-con-las-comisiones-de-bitso-5347"&gt;previous article&lt;/a&gt; (in Spanish I calculated that, with TP 5%, SL 1% and a taker fee of 0.78% per trade, a bot needs to reach take profit 42.7% of the time just to break even. The uncomfortable question was still open: does my own rule get anywhere near that?&lt;/p&gt;

&lt;h2&gt;
  
  
  The rule I tested
&lt;/h2&gt;

&lt;p&gt;This is the "v2" engine of my simulator, which works on 1-hour candles. It produces a buy signal (BUY) when all three conditions hold:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The 12-hour exponential moving average is at least 0.5% above the 48-hour one.&lt;/li&gt;
&lt;li&gt;The price rose at least 0.5% over the last 24 hours.&lt;/li&gt;
&lt;li&gt;The 14-hour RSI is 65 or lower, to avoid buying after the price has already run up too much.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If the same signal repeats within 4 hours, it counts only once.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I tested it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Data:&lt;/strong&gt; 1-hour candles for BTCUSDT and ETHUSDT from Binance's public market data, from November 29, 2023 to November 28, 2026 (26,298 candles per coin). They are in dollars, not pesos, because that is where long, free history is available.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Entry:&lt;/strong&gt; at the close of the hour of the signal.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Exit:&lt;/strong&gt; 5% take profit, 1% stop loss or, if neither happens, at 24 hours. If both are touched within the same candle, I count the stop loss, which is the more cautious assumption.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fee:&lt;/strong&gt; 0.78% per side, 1.56% round trip.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Baseline:&lt;/strong&gt; entering blindly every 4 hours, without looking at any signal. If your rule can't beat that, it adds nothing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The function that simulates a trade:&lt;/p&gt;

&lt;p&gt;(&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def trade_exit(candles, i, tp, sl, hours):
    """Enter at the close of candle i. Each candle: [time, open, high, low, close].
    Returns (gross %, reason) or None if there is not a full time window."""
    if i + hours &amp;gt;= len(candles):
        return None
    entry = candles[i][4]
    ceiling, floor = entry * (1 + tp / 100), entry * (1 - sl / 100)
    for c in candles[i + 1:i + 1 + hours]:
        if c[3] &amp;lt;= floor:        # the low touches the stop loss
            return -sl, "sl"     # if it also touches the TP in the same candle, the SL wins
        if c[2] &amp;gt;= ceiling:
            return tp, "tp"
    return (candles[i + hours][4] / entry - 1) * 100, "timeout"


# Example: 29 flat candles after the entry; neither the TP nor the SL is touched
candles = [[0, 100, 100, 100, 100]] + [[h, 100, 100.3, 99.8, 100.1] for h in range(1, 30)]
fee_per_side = 0.78
gross, reason = trade_exit(candles, 0, 5, 1, 24)
net = gross - 2 * fee_per_side   # result after fees
print(reason, round(net, 2))     # timeout -1.46
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Results
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Coin and method&lt;/th&gt;
&lt;th&gt;Trades&lt;/th&gt;
&lt;th&gt;Hits TP&lt;/th&gt;
&lt;th&gt;Hits SL&lt;/th&gt;
&lt;th&gt;Exits at 24 h&lt;/th&gt;
&lt;th&gt;Average net after fees&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;BTC, v2 rule&lt;/td&gt;
&lt;td&gt;1,146&lt;/td&gt;
&lt;td&gt;4.6%&lt;/td&gt;
&lt;td&gt;60.1%&lt;/td&gt;
&lt;td&gt;35.3%&lt;/td&gt;
&lt;td&gt;−1.60% (±0.09)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;BTC, entering blindly&lt;/td&gt;
&lt;td&gt;6,485&lt;/td&gt;
&lt;td&gt;4.3%&lt;/td&gt;
&lt;td&gt;58.3%&lt;/td&gt;
&lt;td&gt;37.3%&lt;/td&gt;
&lt;td&gt;−1.53% (±0.04)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ETH, v2 rule&lt;/td&gt;
&lt;td&gt;1,292&lt;/td&gt;
&lt;td&gt;7.8%&lt;/td&gt;
&lt;td&gt;73.5%&lt;/td&gt;
&lt;td&gt;18.7%&lt;/td&gt;
&lt;td&gt;−1.65% (±0.10)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ETH, entering blindly&lt;/td&gt;
&lt;td&gt;6,485&lt;/td&gt;
&lt;td&gt;7.7%&lt;/td&gt;
&lt;td&gt;68.9%&lt;/td&gt;
&lt;td&gt;23.3%&lt;/td&gt;
&lt;td&gt;−1.56% (±0.04)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;It needed to reach TP 42.7% of the time and reached 4.6% on BTC and 7.8% on ETH.&lt;/li&gt;
&lt;li&gt;Before fees the result is almost zero: −0.04% on BTC and −0.09% on ETH per trade. The 1.56% in fees explains almost all of the loss.&lt;/li&gt;
&lt;li&gt;It does not beat entering blindly: it comes out the same or slightly worse, and the difference falls within the margin of error.&lt;/li&gt;
&lt;li&gt;It is negative in both halves of the period and in every year: from 2024 to 2026, BTC ranges from −1.54% to −1.70% and ETH from −1.56% to −1.73%. (2023 has very few signals: 15 and 20.)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why it comes out this way
&lt;/h2&gt;

&lt;p&gt;A 1% stop loss sits inside the normal noise of a single day in crypto: between 60% and 74% of the trades hit it in under 24 hours. And every trade pays 1.56% in fees, so a rule with no edge loses roughly that much per trade.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this test does not prove
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The data is in dollars (Binance), not pesos (Bitso). With real slippage, the result would be worse, not better.&lt;/li&gt;
&lt;li&gt;I tested a single combination: TP 5%, SL 1% and 24 hours. I could test hundreds until one looks good, but that is fitting the noise, not finding an edge.&lt;/li&gt;
&lt;li&gt;I enter at the close of the signal hour and I don't account for orders that don't fill.&lt;/li&gt;
&lt;li&gt;Signals overlap in time, so the real margin of error is larger than the one I show.&lt;/li&gt;
&lt;li&gt;I only measured the buy signals of a short-term strategy. Other ideas, such as holding for months, are not measured by this test.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I take from this
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Always compare against entering at random. Without that baseline, 7% of trades reaching take profit looks like a data point; with it, you see it is the same thing you get with no rule at all.&lt;/li&gt;
&lt;li&gt;Measure before and after fees, to know whether the idea fails or the cost does.&lt;/li&gt;
&lt;li&gt;Test with years of data and in separate stretches, not a few weeks.&lt;/li&gt;
&lt;li&gt;If there is no demonstrated edge, don't trade with real money. My simulator is still in simulation mode.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  💻 Reproduce the results yourself
&lt;/h3&gt;

&lt;p&gt;If you want to see the code, download the data, or run the backtest with your own parameters, I've made the entire Jupyter Notebook public. &lt;/p&gt;

&lt;p&gt;You don't need to install anything; just click the button below to open it in Google Colab and hit "Run All".&lt;/p&gt;

&lt;p&gt;&lt;a href="https://colab.research.google.com/drive/1_55Hwz2vU_POJbfcGGgnc9x1e2MPlVvK?usp=sharing" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcolab.research.google.com%2Fassets%2Fcolab-badge.svg" alt="Open In Colab" width="117" height="20"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Note: The script downloads 3 years of 1H candles directly from the public Binance API and compares the EMA/RSI rule against a random baseline, including the 0.78% Bitso fee.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Disclaimer and code
&lt;/h2&gt;

&lt;p&gt;This article is educational and is not financial advice. Trading signals over a few hours can lose money, and a test on past data guarantees nothing.&lt;/p&gt;

&lt;p&gt;The full code of this simulator (Bitso, Telegram, Firebase and Streamlit) is part of my course: &lt;a href="https://pay.hotmart.com/F106768008X?checkoutMode=10&amp;amp;off=2wcm7ibr" rel="noopener noreferrer"&gt;Curso práctico de Python con datos del mercado (código educativo)&lt;/a&gt;.(&lt;a href="https://botsenalescriptointeligente.netlify.app/" rel="noopener noreferrer"&gt;https://botsenalescriptointeligente.netlify.app/&lt;/a&gt;). The course is in Spanish. Author: santiago uriel mendez arriaga.&lt;/p&gt;

&lt;p&gt;What other rule would you like me to test this way? Let me know in the comments.&lt;/p&gt;

</description>
      <category>python</category>
      <category>crypto</category>
      <category>trading</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How many successful trades does a crypto bot need to avoid losing money to Bitso’s commissions?</title>
      <dc:creator>Santiago Uriel Mendez Arriaga</dc:creator>
      <pubDate>Thu, 26 Nov 2026 00:40:04 +0000</pubDate>
      <link>https://dev.to/santiagouriel_mendezarria/cuantos-aciertos-necesita-un-bot-de-cripto-para-no-perder-con-las-comisiones-de-bitso-5347</link>
      <guid>https://dev.to/santiagouriel_mendezarria/cuantos-aciertos-necesita-un-bot-de-cripto-para-no-perder-con-las-comisiones-de-bitso-5347</guid>
      <description>&lt;p&gt;How many successful trades does a crypto bot need to avoid losing money to Bitso’s commissions? With a 5% take profit and a 1% stop loss, and Bitso's taker fee (0.78% per trade), a bot needs 42.7% of its trades to reach take profit just to break even. Here is the math, the Python code, and what my own simulator measured.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bitso's fees, round trip
&lt;/h2&gt;

&lt;p&gt;Bitso charges a fee on every trade. At the lowest volume tier I checked, a market order (taker) pays 0.78% and a limit order that rests on the book (maker) pays 0.60%. Check your current tier on Bitso, because it drops as your volume grows.&lt;/p&gt;

&lt;p&gt;The fee is paid when you buy and again when you sell. With taker orders that adds up to 1.56% round trip; with maker, 1.2%. It is a fixed cost your strategy has to cover before it earns a single peso.&lt;/p&gt;

&lt;h2&gt;
  
  
  The break-even math
&lt;/h2&gt;

&lt;p&gt;If every trade ends in either take profit (TP) or stop loss (SL), fees change what you win and lose in each case:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If it hits the 5% TP, you gain 5 − 1.56 = 3.44%.&lt;/li&gt;
&lt;li&gt;If it hits the 1% SL, you lose 1 + 1.56 = 2.56%.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Break-even is the share of winning trades that balances both sides: 2.56 ÷ (3.44 + 2.56) = 42.7%. Below that you lose money even if you are right almost half the time. The math does not include slippage, so in practice break-even is even higher.&lt;/p&gt;

&lt;p&gt;The same math in Python:&lt;/p&gt;

&lt;p&gt;(&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def breakeven_hit_rate(tp, sl, fee_per_side):
    """Percentage of trades that must hit take profit to avoid losing money.
    tp, sl and fee_per_side are in % (5 = 5%). The fee is paid on entry and on exit."""
    round_trip = 2 * fee_per_side
    net_gain = tp - round_trip    # what is left if the trade hits TP
    net_loss = sl + round_trip    # what is lost if the trade hits SL
    if net_gain &amp;lt;= 0:
        return None               # you can't win even by hitting TP every time
    return net_loss / (net_gain + net_loss) * 100

print(round(breakeven_hit_rate(5, 1, 0.78), 1))  # 42.7
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  How many wins you need, depending on TP and SL
&lt;/h2&gt;

&lt;p&gt;With small targets, fees eat everything: with a 1% take profit you can't win even if you hit it every time.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Take profit / Stop loss&lt;/th&gt;
&lt;th&gt;Break-even with taker fee (0.78%)&lt;/th&gt;
&lt;th&gt;Break-even with maker fee (0.60%)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1% / 1%&lt;/td&gt;
&lt;td&gt;Impossible&lt;/td&gt;
&lt;td&gt;Impossible&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2% / 1%&lt;/td&gt;
&lt;td&gt;85.3%&lt;/td&gt;
&lt;td&gt;73.3%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3% / 1%&lt;/td&gt;
&lt;td&gt;64.0%&lt;/td&gt;
&lt;td&gt;55.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5% / 1%&lt;/td&gt;
&lt;td&gt;42.7%&lt;/td&gt;
&lt;td&gt;36.7%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5% / 2%&lt;/td&gt;
&lt;td&gt;50.9%&lt;/td&gt;
&lt;td&gt;45.7%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10% / 2%&lt;/td&gt;
&lt;td&gt;29.7%&lt;/td&gt;
&lt;td&gt;26.7%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Maker helps, but it only counts if your limit order actually fills: if the price never touches it, you don't enter and you miss the move.&lt;/p&gt;

&lt;h2&gt;
  
  
  Being right about direction is not the same as hitting take profit
&lt;/h2&gt;

&lt;p&gt;A signal can be "right" because the price moved in its direction an hour later, and still never reach 5% before hitting the 1% stop. They are two different measures, and it is worth logging both: direction accuracy at 1, 4 and 24 hours, and the simulation result with TP, SL and fees. The 42.7% above refers to reaching take profit, not to getting the direction right.&lt;/p&gt;

&lt;h2&gt;
  
  
  What my simulator measured (no real money)
&lt;/h2&gt;

&lt;p&gt;My simulator is a bot with an AI second opinion: it reads BTC and ETH against MXN on Bitso, sends signals over Telegram, and measures each one at 1, 4 and 24 hours. It does not trade real money. As of November 24, 2026 it had logged 1,783 signals; counting each streak of identical signals once (same coin and direction within 4 hours), 429 remained. Results:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Direction accuracy: 50.5% at 1 hour, 49.1% at 4 hours and 47.2% at 24 hours.&lt;/li&gt;
&lt;li&gt;Average return per signal: close to 0%, against 1.56% round-trip fees.&lt;/li&gt;
&lt;li&gt;Simulation with TP 5%, SL 1% and fees: −2.04% per buy. 83% hit the stop and 3% reached take profit.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;My simulator's conclusion is not to trade. With a few hundred signals, the margin of error on a percentage is around ±5 points, so this proves nothing: it only shows what measuring honestly looks like.&lt;/p&gt;

&lt;p&gt;The repeated-signal trap: if your bot repeats the same signal every 15 minutes while the condition holds, your statistics get inflated and look more solid than they are. Count each streak once.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would do with this
&lt;/h2&gt;

&lt;p&gt;Measure before you risk anything. These four rules work for me:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Calculate your break-even with the real fees of your tier before looking at any results.&lt;/li&gt;
&lt;li&gt;Log every signal and measure it at 1, 4 and 24 hours, with fees, in simulation.&lt;/li&gt;
&lt;li&gt;Count each streak of identical signals once, and wait for at least 30 samples per group before drawing conclusions.&lt;/li&gt;
&lt;li&gt;Don't tweak TP and SL until the numbers look pretty: finding the combination that would have won in the past is fitting the noise, not finding an edge.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Disclaimer and code
&lt;/h2&gt;

&lt;p&gt;This article is educational and is not financial advice. Trading signals over a few hours can lose money, and simulation results guarantee nothing with real money.&lt;/p&gt;

&lt;p&gt;The full code of this simulator (Bitso, Telegram, Firebase and Streamlit) is part of my course: &lt;a href="https://pay.hotmart.com/F106768008X?checkoutMode=10&amp;amp;off=2wcm7ibr" rel="noopener noreferrer"&gt;Curso práctico de Python con datos del mercado (código educativo)&lt;/a&gt;. The course is in Spanish. Author: santiago uriel mendez arriaga.&lt;br&gt;
 Pagina web: &lt;a href="https://botsenalescriptointeligente.netlify.app" rel="noopener noreferrer"&gt;https://botsenalescriptointeligente.netlify.app&lt;/a&gt; Autor: santiago uriel mendez arriaga.&lt;/p&gt;

</description>
      <category>python</category>
      <category>crypto</category>
      <category>trading</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
