OPEN-SOURCE SCRIPT

Run Timer

Updated
This is a simple utility which counts the number of bars and time elapsed after starting the script. This can be used in time or bars based conditions to modify script behavior.

This particular script does the following:
  • Starts timer when script is added to chart
  • Timer is green when starting and continues to be in green if the right Auth key is used in input (Which is hardcoded as 1234 here)
  • If right auth key is not provided in the input, timer background turns red after trial bars.


Script can be modified to use elapsed time instead.

Thanks to Bjorgum on assisting on few calculations :)
Release Notes
Added key as interactive input.
timerTrend Analysisutility

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer