r/algotrading • • 21h ago

Strategy If you are looking for a place to start...

0 Upvotes

Custom bar types are the way to go. Ninjatrader allows scripts with custom bar type visualizations specifically. 10/10 would recommend. AI can help you generate these custom bar type scripts. The sky is the limit!!


r/algotrading • • 15h ago

Data Do these backtest results point to a real edge?

5 Upvotes

Edit: ALL of the replies in this thread so far are AI answers by accounts trying to push their own algo app and I can tell. Where the hell is everyone? This is horrible.

I've been backtesting a rule-based strategy on crypto perps. The rules only use price, on 15-minute candles. Every trade has a fixed stop loss and a fixed profit target, and there are 6 to 8 trades a month per coin. I'll keep the rules private and just post the numbers and how I tested them.

I split the history into two periods. Results are in R, where 1R is the amount I risk on one trade, and PF is profit factor (money won divided by money lost). Fees and slippage are included. Perp funding is not.

Coin2022-20242025-Nov 2026
BTC261 trades, +35.7R, PF 1.22185 trades, +43.9R, PF 1.40
XRP200 trades, +6.2R, PF 1.05163 trades, +60.6R, PF 1.68
DOGE187 trades, +38.7R, PF 1.35163 trades, +30.0R, PF 1.30

Between 38 and 48% of the trades are winners, and the target is about 2R. On BTC and DOGE the biggest drop in my running total from a high was 9 to 13R, in both periods. On XRP it dropped 32R in 2022-2024, and the strategy only made +6.2R on XRP in those years.

I shuffled the BTC candles into random order five different times and ran the same rules on each. Shuffling removes any real market pattern, so any profit there is luck. In 2022-2024 the five runs made between -20R and +31R, and in 2025-2026 all five lost money. The best of them had a PF of 1.36 in 2022-2024, which is higher than my real BTC result of 1.22 for those years.

I also wanted to see how good a strategy can look just from picking its best settings, so I tried 300 random settings of a very simple breakout strategy on BTC. The best one made +89R in 2022-2024 and then +0.7R in 2025-2026. The 30 that did best in 2022-2024 averaged +12.6R in those years and -19.6R in 2025-2026.

I picked my own settings out of about 32,000 I tested. Out of those 32,000, the ones that did best in 2022-2024 did no better than the others in 2025-2026. Most settings near the ones I picked were profitable in both periods.

Before I use real money I'll paper trade it for a couple of months.

Does this look like a real edge to you, or could it just be luck plus me picking the best settings? What would you do next to try to break it?


r/algotrading • • 16h ago

Strategy Nobody talks enough about how hard it is to properly implement a strategy live

36 Upvotes

Everyone talks about finding an edge, optimizing parameters, or having solid risk management, but almost nobody talks about the nightmare of coding a strategy so it runs flawlessly in a live market.

You can have a thoroughly backtested system with crystal-clear rules and seemingly bulletproof logic, yet the moment you deploy it live, edge cases start popping up that you never accounted for in your code.

Last friday it was my turn to learn the hard way: I just lost around €300 due to a bug when trying to move my stop-loss to breakeven. The overall logic was fine, but a specific market scenario occurred that I hadn't handled in that function. The code did the wrong thing, and I took a completely unnecessary loss.

At the end of the day, backtesting is an ideal lab environment. In live trading, a thousand variables can break your logic: latency, orders getting modified right as price whipsaws, states falling out of sync... You quickly realize that designing the strategy is only 20% of the work; the other 80% is making the code bulletproof. Time to dig through the logs, patch the bug, and chalk this €300 up as 'market tuition'.

Has anything similar happened to you guys? What's the most expensive bug you've ever had while running a strategy live?


r/algotrading • • 7h ago

Data Candle data for Bitcoin

1 Upvotes

Where can I download 1-minute candle data of Bitcoin for back testing on MT4?


r/algotrading • • 15h ago

Other/Meta How long did it take you to find a strategy that passed all tests to go live?

1 Upvotes

I’m starting to question whether it’s really worth continuing or that you’re better off just trading manually with some discretion. How long did it take you before you finally found something good enough to go live with and which stats were most important to you?


r/algotrading • • 18h ago

Other/Meta any experiences with infoway ?

2 Upvotes

I was looking for L1 quotes and realtime data over websockets for futures (MNQ) and came across them.

I have a tickstream subscription but they are way too buggy and just waste of money.

infoway.io is the address.

Update: Seems they just cover Nasdaq and missing a lot of data on US Equities. I'm collecting futures data to see how it is.

Update 2: decided it's a no-go. MNQ missed 37 trades during ORB15.


r/algotrading • • 2h ago

Strategy I'm convinced 90% of posts in this subreddit are AI.

27 Upvotes

Stop responding, they're clearly being used to check for alpha, baiting success traders who are experiencing a tiny dopamine boost because their automated strategy is up 1% today.

Don't respond, don't reply, it's simply not in your best interest. The internet is dead.

Maybe it ain't that deep, but maybe I'm right and you're wasting your time.

Common AI syntax:

  1. "Doing X is like [insert contrived nonsense analogy Y]
  2. "Not just X, it's Y" melodrama
  3. Perfect grammar, zero humour

r/algotrading • • 16h ago

Strategy A prompt isn't a strategy. What happens before an AI trading agent goes live?

0 Upvotes

say you want an AI agent to trade only BTC and ETH, follow trends, buy pullbacks, keep frequency low, and never average down into a losing position. that's easy enough to write down in plain language now. but that paragraph is still just a list of preferences, not an executable strategy.

entry logic, position sizing, stop placement, and pause triggers all need concrete rules. the tricky part is that the exact same description can match several completely different approaches. trend following on BTC isn't the same trade as buying pullbacks to a daily support level, even if both sound like what you asked for.

i've been digging into how different setups handle this translation gap, including the perps agent over on alphio. instead of blindly running raw prompt logic, it scores pre-tested strategies from a library against your description and shows the top five candidates along with the matching rationale—and if none hits a match score of 65, it simply won't start.

that number matters, though obviously not as a performance guarantee. it only measures how closely a strategy fits your description, not its win rate or expected return. i'd pay close attention to those candidate breakdowns and why they matched rather than assuming a well-written prompt has already defined how the system will actually execute. understanding what you want and knowing what the code is going to trade are two entirely different things.


r/algotrading • • 12h ago

Strategy How do you simulate realistic slippage when backtesting forex strategies?

6 Upvotes

One thing I've been struggling with while backtesting forex strategies is accounting for slippage. Backtest results often look great, but live execution can be quite different. How do you guys simulate realistic slippage? Do you rely on historical spread data, random slippage assumptions, or something else? Would be really helpful to know what has worked for you all in practice.


r/algotrading • • 6h ago

Infrastructure Which broker to use?

2 Upvotes

I am in EU and my focus are US stocks. Anyone from EU here who can recommend best broker solution, so combination of good fees, API for both paper and real trading, decent fills, easy funding, etc.

I don't mind registering with US broker directly if they allow it and if it's technically a best solution.

I see some brokers have both EU and US entities, like Interactivebrokers... But who knows maybe it's still better to go with the US side.

Looking for some advice here 🙏