Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

Converting a bar_index in the future to a date in Pinescript

$
0
0

In the example of TSLA the current bar_index is 3444 and I calculate a turning point at bar_index 3535 (trading days), how do I convert that 3535 into a date format dd/MM/YY to display in my table?

Tried str.format function having used str.tostring(3535) tried ChatGPT and after 1 hour it is still thinking about it!


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>