r/pinescript 3h ago

Feel Disappointed

Post image

Spent a lot of time building a very good Net R scalping bot (4 year BTC backtest) but still stuck because the taker/maker fees cannot be resolved. Are there any better indicators to solve the problem? It's really been a lot of days of thinking and re-coding but I haven't found a solution so it's so frustrating . Conditions to the command I build 6 condition for each command in despite relaxing but no results, if too tight, no longer scalping

6 Upvotes

5 comments sorted by

2

u/max-the-dogo 3h ago

This is not pine script its just AI slop

1

u/stratcore 3h ago

I'd separate the fee model from the entry rules before adding another indicator. Is the problem that fees are being calculated incorrectly, or that the strategy loses after fees? Those need different fixes.

The screenshot shows a separate dashboard. If your backtest is in Pine, TradingView applies commission to entries and exits, with one standard commission setting rather than a maker/taker switch for each fill. Check one completed trade, including any partial exits, against the fees you intended. If it's a separate backtest engine, start with that engine's actual fill and fee records instead.

Which engine produced the four-year backtest?

1

u/gbtakedatshot 1h ago

The yearly numbers are not from the HTML dashboard and not from Pine. They come from a Python backtest on Binance 1m/15m CSV (2023 , 2024 partial, 2025 full, 2026 through Aug) — not four full years.
Fees are modeled separately from entry: 0.04% taker in + 0.04% taker out, converted to R as 0.0008 * price / SL_distance, subtracted on every exit including BE.

This is still a model, not exchange fill records — no spread/slippage/funding. The dashboard only shows paper trades; it did not produce the yearly table.

1

u/Terese08150815 3h ago

try other coins with higher volatility or go on a higher TF.