showBreakoutSignals one candle to the left

Mart

New member
VIP
Does anyone know if there is a way to plot a showBreakoutSignal one candle sooner than it normally would plot? Thank you all for any help, I appreciate it.
 
Solution
I am not looking at the future bar or trigger. I am trying to move the BreakoutSignal one candle to the left and plot it one candle earlier on the chart.

There is no way in real time to know that a BreakoutSignal is going to happen, one bar before it actually happens. So no it cannot be moved.
Does anyone know if there is a way to plot a showBreakoutSignal one candle sooner than it normally would plot? Thank you all for any help, I appreciate it.
You can search the forum for "future bars". Future bars wait for the future bar to close and then goes back and repaints on the previous bar.
movingAverage[-1];
This is for appearances only. The signal didn't really occur one bar earlier.
It is just repainted to make it appear that it did.
It makes charts look prettier. But it is smoke and mirrors because it is a repainter.

Otherwise, there is no way in real time to know that a signal is going to trigger, one bar before it actually signals.

This is a common wish for retail traders who are using lagging indicators especially those incorporating moving averages.
Moving Averages and other lagging indicators look like they have so much potential; until with use, it is discovered, they come into the party late and more disastrous, they stay in the trade too long.
Read more:
https://usethinkscript.com/threads/lagging-indicator-accuracy-in-thinkorswim.15624/#post-126015
 
Last edited:

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

I am not looking at the future bar or trigger. I am trying to move the BreakoutSignal one candle to the left and plot it one candle earlier on the chart.
 
I am not looking at the future bar or trigger. I am trying to move the BreakoutSignal one candle to the left and plot it one candle earlier on the chart.

and how do you think you will move a signal left? you have to look at the next future bar , to the right, and wait for it. then draw it on the current bar... 1 bar earlier .

reread merrydays post
 
I believe both replies are correct. Your trigger condition "fires" on a specific bar, and even if you're trying to plot an offset of your study (i.e. just moving an arrow left one bar) it still requires the future bar to exist in the first place.

If you're simply trying to understand how to plot an offset plot, it's simple: plot myPlot = plotdata[-1];

That will shift your plot one bar left, but it won't get around the need for that future bar to exist first. You need to understand repaints.
 
I am not looking at the future bar or trigger. I am trying to move the BreakoutSignal one candle to the left and plot it one candle earlier on the chart.

There is no way in real time to know that a BreakoutSignal is going to happen, one bar before it actually happens. So no it cannot be moved.
 
Solution

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
456 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