Renko blocks seem to produce incorrect trade prices

Floomi

New member
Hi all,

I've just written a simple indicator in ThinkScript and am executing it on a Renko chart. I think that in some cases, the ToS Strategy Report uses the wrong execution price. Either that or there's something I don't understand :)

Here's an example:

This is a Renko chart of /MES on 2021-02-02 with a price range of 25 ticks. We are looking at the Close of this trade (labelled #2). Both the chart and the strategy report show the trade price was $3825 with an execution time of 3:59PM.

mmOeqJj.png


2UfHZEJ.png


However, this is not the correct price at that time! Here is a 1m chart of /MES on the same date and time:

haC9Ut2.png



The price at that time was 3820. At no point did it hit 3825.

It makes sense that the previous Renko block (labelled #1) would close at 3820, since it's one range interval away from its opening price. However, this should make the price of the "Close" trade 3820, not 3825.

It seems that what ToS is doing is (correctly) drawing the #2 block starting at 3825, but in doing so it incorrectly overwrites the "open" value for that block. Then the Strategy Report comes along and uses the open price for that block, which is now wrong. It should instead be using the close price of the previous block.

So: does this make sense? Have I found a ToS bug, or am I doing something wrong? Is there a workaround for this? Thanks!
 
Last edited:

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

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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