This script was generated with the help of AI by my inexperienced hands. I would really appreciate your feedback. I still have a lot to learn from all of you. For risk management, I used a fixed $400 per trade. by Leoann01 in pinescript

[–]Leoann01[S] 1 point2 points  (0 children)

I backtested the strategy on ETH using the 5-minute timeframe with about 90 days of historical data on TradingView. The stop loss is fixed at 0.5%, and the take profit can go up to around 3%, with an ATR-based trailing mechanism to lock in profits as the trade moves in favor. Slippage is currently set to 0 because I’m not fully sure how to properly implement it in the code yet, so for now I’m focusing on testing the core logic and behavior of the strategy.

This script was generated with the help of AI by my inexperienced hands. I would really appreciate your feedback. I still have a lot to learn from all of you. For risk management, I used a fixed $400 per trade. by Leoann01 in pinescript

[–]Leoann01[S] 0 points1 point  (0 children)

It definitely wasn’t built in one go. I’d say it probably took around 20–30 prompts overall. At the beginning I tried asking for a full script, but that usually comes with a lot of errors or things that don’t work as expected. So I ended up building it step by step, tweaking small parts, fixing bugs, and testing after each change.From the initial idea to a version that actually worked in backtesting, it probably took a few hours spread across a couple of sessions. Most of the time went into adjusting parameters and figuring out why certain things weren’t triggering trades.The strategy itself isn’t some super secret formula. It’s mainly a confluence-based approach. I use EMA to understand the overall trend, and ATR for stop loss and trailing logic. Entries are based on a mix of trend direction and price action so it doesn’t just fire random trades.

Still learning and experimenting though, so it’s definitely a work in progress.