I analyzed the code, it repaints heavily as recalculates the last 50 bars, looks for pivots into the future and has no signal persistence.updowncrude wrote: Sat Aug 30, 2025 12:18 pm I am attaching the code.
Could you be kind enough to check,refine and repost the code?
Here you find a fixed version, but naturally with less optimistic signals. At least they now are real.