This script will draw horizontal lines at user-specified levels on a trading chart, which is especially useful for marking key support and resistance levels.
Explanation:
Indicator Definition: The indicator function sets up the script with the name "Draw Horizontal Lines" and specifies that it should overlay the price chart.
Processing Levels: The space-separated string of levels is split into an array using str.split.