fikira

Education: array.new_line() control + #loops

fikira Wizard Updated   
Script which showcases usage of #loops:
  • while
  • for ... to
  • for ... in

With the goal to control the size of an array -> array.new_line()
and controlling whether a x1 of a line is not too far in history

When this is the case, the line gets deleted through several ways

All is explained in the script, I hope this is beneficial, cheers!
Release Notes:
update
Release Notes:
This script is part of a collection of educational scripts
If you want to return to the open source INDEX page, click here
-> Education: INDEX

LuxAlgo Dev: www.luxalgo.com
PineCoder: www.pinecoders.com

- We cannot control our emotions,
but we can control our keyboard -
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 a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?