jeremy1338
New member
I'm trying to create a basic indicator in ThinkScript that automatically plots horizontal lines based on Fib retracements from different timeframes for SPX. However, when I add lines that are outside of a timeframe (such as 1D), the scale of the chart gets messed up so that ToS shows every line it's plotting. Is there something simple I can add to my code so that it only shows the price range that would typically be visible in a given timeframe, without warping it to display every line?
Here is a sample of the code, it's all basically the same format with lines ranging from 2191 to 4813:
Here is a sample of the code, it's all basically the same format with lines ranging from 2191 to 4813:
Code:
plot Fire1year1 = 3636;
Fire1year1.AssignValueColor(color.red);
Fire1year1.SetLineWeight(3);