Fix Pine Script Replay Signals and order not filling sending to tradingview alerts

via Freelancer ·

Budget / Salary$30–250
TypeFreelance project
LocationRemote
Posted1 hour ago
I have a multi-time-frame strategy written in Pine Script (v5) that trades on the 1-second to 1-minute chart while using a higher-time-frame candle as the filter. Everything works in live mode, but the moment I press Bar Replay the entry and exit markers vanish, the equity curve resets, and the Strategy Tester no longer matches what I see on the chart.

The behaviour I need is simple: whatever appears in real time must look identical in Bar Replay. In other words, the chart, the Strategy Tester, and the replay window all have to show the same fills, quantities, and P&L. The signal from the bigger time frame should only become active once that candle has closed, so no “ghost” trades should appear or disappear mid-bar.

I will share the exact entry/exit logic once we connect, but in broad strokes:

• Higher-time-frame candle delivers the signal.
• Trade is executed on the sub-minute chart only after that candle closes.
• Results must remain identical whether I scroll back with Bar Replay or run the tester forward.

Deliverable
A revised Pine Script file that reproduces my current logic yet keeps every marker visible and synchronised under Bar Replay across 1-second, 5-second, 15-second, 30-second and 1-minute charts.

If you are comfortable with Pine Script’s `request.security()` nuances and understand how `barstate.isreplay` can affect plotting, this should be straightforward. I’m ready to provide the existing code and clarify any details necessary to get this working flawlessly.
financial markets market research financial analysis scripting data visualization pine script data analysis trading backtesting algorithmic trading
Apply on Freelancer →

Project sourced from Freelancer.com. Applications happen directly on the original platform — we never collect your data.