Apologies in advance I’m not a Pine script expertd. I’ve been using ChatGPT to get me through some work.
I’ve created a trading script that is pre-average. I’ve noticed that there are a lot of consecutive losses, and when I conduct a manual simulation in the CSV with ChatGPT to remove two consecutive losses and then only take a trade after a profitable trade appears.
This turns my average strategy into something pretty decent. However, after hours of working with ChatGPT, I cannot get script to work.
This the rules I want to implement…
IF last 2 closed trades were losses:
PAUSE → don't take the next trade signal
KEEP WATCHING → simulate what would have happened
IF the simulated trade WOULD HAVE WON → resume
IF the simulated trade WOULD HAVE LOST → keep pausing, watch the next one
If anyone can spread some wisdom I’d be really grateful 🙏