Skip to content
  • Categories
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
Collapse
Forum ForexRoasted Logo

Forum Forexroasted

  1. ForexRoasted Community
  2. Categories
  3. Platform Tech
  4. TradingView
  5. how do i know if a pine script indicator repaints before i trust it

how do i know if a pine script indicator repaints before i trust it

Scheduled Pinned Locked Moved TradingView
tradingviewpine-script
10 Posts 10 Posters 20 Views 10 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    endlessroad
    wrote on last edited by
    #1

    downloaded a free pine script that looks incredible on the chart, calls tops and bottoms almost perfectly. which is exactly why im suspicious. how do i actually verify whether it repaints or recalculates on historical bars before i build anything around it?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Dean
      wrote on last edited by
      #2

      fastest practical test: add it to a chart, then switch the chart to bar replay and step forward one candle at a time. if the signals stay put exactly where they were, its fine. if arrows jump, disappear, or move to a better spot as new bars form, it repaints. the replay tool exposes it in about two minutes.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        alexturner
        wrote on last edited by
        #3

        bar replay is the right tool. also check the code for security calls with lookahead enabled and signals plotted on the realtime bar instead of confirmed bars. anything using future-leaning data or plotting before a bar closes will look magical historically and fail live.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          cloudyvision
          wrote on last edited by
          #4

          if a free indicator nailed tops and bottoms it would not be free, it would be a hedge fund. the fact that you found it on the internet for nothing is the test result. you can skip the rest.

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Chris
            wrote on last edited by
            #5

            the troll is blunt but the heuristic is real. that said, plenty of honest non-repainting indicators are free too, they just look boring because they only fire on closed bars and miss the exact extremes. boring and reliable beats magical and fictional every time.

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Caleb
              wrote on last edited by
              #6

              where is the bar replay button, ive never used it. is it on the free plan?

              1 Reply Last reply
              0
              • D Offline
                D Offline
                derekwhite
                wrote on last edited by
                #7

                its in the top toolbar, looks like a little play icon, available on free with some limits on how far back you can replay. pick a starting point a few hundred bars back, hit play paused, and step forward manually. watch the indicator as each candle closes. thats the whole verification.

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Adam
                  wrote on last edited by
                  #8

                  bar replay caught two repainters for me already.

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    parkerlee
                    wrote on last edited by
                    #9

                    just tested my 'best' indicator with replay and watched the arrows literally rearrange themselves 💯 feel stupid for trading it for a month. thanks for this thread.

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      carterw
                      wrote on last edited by
                      #10

                      good outcome. one more habit: even for a confirmed non-repainter, forward test it on demo before risking money. historical accuracy and live profitability are different things, repainting is just the first filter, not the last.

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      Powered by NodeBB Contributors
                      • First post
                        Last post
                      0
                      • Categories
                      • Unread 0
                      • Recent
                      • Tags
                      • Popular