I have an indicator that plots when price is up x pct within x bars

Piper2808t

Member
2019 Donor
VIP
any way to rid of the dots on each bar till condition is met?

SiDs6yT.png


https://tos.mx/QsW0bpX

Code:
#created by calitrader
input bars = 20 ;
input percent =15;
def dayC= close(period=AggregationPeriod.DAY)[1];
def dayO= high(period=AggregationPeriod.DAY);
def c1=dayO/dayC >=1.2;
def c2=if high==highest(high,bars) and high/lowest(close,bars)>=1+percent/100 then yes else no;
def line=if c1 and c2 then high else line[1];
plot signal=line;
signal.SetPaintingStrategy(paintingStrategy = PaintingStrategy.DASHES);
 
any way to rid of the dots on each bar till condition is met?

SiDs6yT.png


https://tos.mx/QsW0bpX

Code:
#created by calitrader
input bars = 20 ;
input percent =15;
def dayC= close(period=AggregationPeriod.DAY)[1];
def dayO= high(period=AggregationPeriod.DAY);
def c1=dayO/dayC >=1.2;
def c2=if high==highest(high,bars) and high/lowest(close,bars)>=1+percent/100 then yes else no;
def line=if c1 and c2 then high else line[1];
plot signal=line;
signal.SetPaintingStrategy(paintingStrategy = PaintingStrategy.DASHES);
your script does not contain any plot statements creating "dots"


Help us Help you:
  • We need you to include a screenshot that is of the WHOLE chart, we need to see what symbol, what aggregations, and other settings you are using.
  • Because those dots are not generated by this script, we need you to provide a shared chart link. This will help others understand the context of your question and allow them to replicate the conditions that you are describing.
If you're unsure of how to share chart links or upload screenshots to the forum, don't worry, we've included some easy-to-follow directions for you.
How to create a shared chart link:
https://usethinkscript.com/threads/how-to-share-a-chart-in-thinkorswim.14221/
How to upload screenshots to the forum:
https://usethinkscript.com/threads/answers-to-commonly-asked-questions.6006/#post-58714


We look forward to seeing your next post and helping you out!
 
Last edited:

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

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
484 Online
Create Post

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