Answers to Commonly Asked Questions

Status
Not open for further replies.

MerryDay

Administrative
Staff member
Staff
VIP
Lifetime
Everything you wanted to know about REPAINTING and were afraid to ask
ZigZags, Swings, Waves, Reversals, Pivots, Order Books, Fair Value Gaps and all Higher Highs-Lower Lows are all repainting indicators.
Repainting indicators paint on a signal or condition, then go back and erase it, then repaint it sometime later, so on and so on...

Forward-looking scripts using future bars also repaint.
Future bars wait for a signal or a condition. Then go back, many bars ago and paint the perfect-looking signal on a long-ago candle. Making it appear that it was there the whole time.


No, repainting indicators can not be rewritten to not repaint. Repainting is part of their DNA.

The Positive: Repainters are the fastest tool for identifying trends making them an integral part of a trader's toolbox.
The biggest and costliest mistake that new retail traders make is using repainters for trade entry.
Repainters can not be relied upon for entry or exit signals.

Repainters serve as a visual aid to spot trends, but other indicators and analysis need to be used to determine entry and exit points.
Use repainters in correlation with price action, candlestick patterns, a disciplined stop-loss plan.

The Negative: Repainting is problematic especially for newer traders using them for entry signals. Repainting arrows are ONLY signaling that a stock has moved lower. NOT THAT IT HAS REVERSED!
But n00bs tend to read those arrows as entry signals. Thinking that the stock has hit a low (or high) and that it is indicating NOW NOW NOW is the time to make entry,
That is NOT what repainters tell us, it is just saying that the stock is lower. As the stock continues to plummet, it erases the signal, continues to drop like a rock, and crushes previous profits. Just the potential of that possibility causes traders to lack confidence, to leave trades early at the smallest sign of trouble, creating a feedback loop of ever-smaller profits and ever-larger losses.

Positive Side of these Indicators:
They are written specifically to repaint.
Repainter's proper use, by most traders, is not for entry but for analyzing trendlines and support & resistance on a higher timeframe.
They purposely repaint when trends change and when support or resistance are broken through thus providing up-to-date data as to the state of our trend.


When using repainting studies:
Never use a repainting arrows for entry!

Both up and down signals will repaint.
You will see more low arrow repainting when the instrument has a strong bearish trend. As it makes new lows, the previous low signals will be erased.
You will see more high arrow repainting when the instrument has a bullish trend. As it makes new highs the previous high signals will be erased.

How do you know if an indicator is a repainting indicator?
If you look at a script and if there is a fold operation using highest and/or lowest that is the indication that it repaints.
Fold is a recursive operation that keeps redefining the highest and lowest and redrawing them.

Generally, if you have an indicator that shows low and high signals on your chart and every single signal works out perfectly, such as: Trend Reversals, Zigzags, Swing High, Swing Low, COG, Hurst indicators, some Pivot Points. all Waves, etc... then most likely that indicator repaints. Looks great for backtesting because all the intermediate signals are erased.

It's important to note that repainted signals are not recommended for entry, which is why the Forum adds the prefix "repaints" to those indicators.

Be careful with your coding, folks!
Another type of repainting occurs when you trade on the current bar, a common mistake of n00b traders.
When you write triggers on the current bar, obviously repainting will occur since the current bar doesn't know what the final close, high, and low is going to be until it's finished forming. Therefore, by definition, you are asking it to repaint with new information on every tick.

To avoid repainting, ToS recommends using the open of the next bar open[-1] for entry in strategies,
and use of the previous bar [1] for studies. Thereby, never experiencing repainting again!


Multi-Timeframe REPAINTING-type Behavior
Aetfs.png


This information was compiled from the various posts written about repainting. A search of this forum will provide the detail from which these statements were derived.
HTH
 
Last edited:
ToS Platform Limitations

ToS studies can be referenced in custom studies. Custom studies cannot be referenced in another script.
There is not a work_around. :(

The ToS platform does not allow backtesting of anything other than strategies. The Strategy script needs to contain all the conditions necessary to create the AddOrder statement.
 
Last edited:
Want A TradingView Script Converted To TOS?
Try explaining in detail why you think this improves the existing indicator and how it might enhance our trading. The more abundant the information you provide, the better chance that some enterprising poster might become interested in making enhancements to an existing TOS indicator or even creating one from scratch.

Provide a URL link.
Provide the script that is to be converted.
Provide at least one image of the whole chart and then any close-up screenshots of details you want to highlight.
Unsure of how to upload screenshots to the forum, Here are directions.
 
Last edited:
FYI:
Thinkscript does not provide us any means of writing studies that will be interactive with the platform-controlled elements or any ThinkOrSwim modules... Custom modifications are beyond the scope of the capabilities of the platform...

For example:
There are no settings or scripts that would allow the ToS Volume Profile's colors to be changed in this manner as ToS doesn't provide separate buy/sell information in the profile data.

DsuGC1rm.png
 
Last edited:
Scans only update every 3-4 minutes.
When EDITING scans, best practices dictate that scans being EDITED be saved with a NEW scan name.

There are short-term issues with EDITING scans. When a scan is edited and you hit scan, it will provide the correct results. But because the scan is not immediately updated on the TDA servers and it will shortly revert to an old version. The new version isn't lost, it just takes "awhile" for the TDA servers to update EDITED scans.

The workaround is when editing a scan, save it with a new name. Thus, nothing for it to revert to.

Maximum Scanner Data Available:
f2F8Ixh.png
 
Last edited:
WE ASK MEMBERS TO NOT POST CODE FOR THE BACKTESTING OF REPAINTING INDICATORS.
THERE CAN BE NO REALISTIC BACKTESTING RESULTS FOR REPAINTING INDICATORS.
REPAINTING INDICATORS HAVE ERASED ALL THE FAILED SIGNALS. THEREFORE, NONE OF THE FAILED SIGNALS APPEAR IN BACKTESTING RESULTS, MAKING THE RESULTS APPEAR FAVORABLE WHEN IN REALITY THEY ARE NOT.
 
Last edited:
The ToS platform utilizes ThinkScript language to create code. ThinkScript makes decisions, using Boolean expressions (true/false) inside conditionals (if/else). Thanks to conditionals, the script can respond differently based on different inputs and parameters.

When asking for something to be scripted:
  • The true / false statements need to be defined.
  • The conditionals need to be defined.
  • The inputs and the parameters need to be defined.
If your request is missing the above, it is less likely that your request will be able to be answered.
 
When there is no reply to your question, perhaps it is because it is not clear what you are asking.

Help us help you:
Provide a detail explanation of what you are trying to accomplish.
Provide a marked-up screenshot of what a chart that meets all your conditions would look like.
Unsure of how to upload screenshots to the forum, Here are directions.

When you are posting your question, please follow the guidelines found here:
https://usethinkscript.com/threads/answers-to-commonly-asked-questions.6006/#post-58016
 
Status
Not open for further replies.

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Thread starter Similar threads Forum Replies Date
J007RMC Pre-Market Questions & Answers Questions 20

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
451 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top