WebMar 29, 2024 · Mar 29, 2024. This is likely not possible in the way you are asking for it in ToS. Each line would need to be a separate plot, so if you have 100 bars on your chart, you would need 20 separate plots (10 on top / 10 on bottom). There is no "standard" programming way to do this in ToS using a For Each style loop, where you would look at … WebHere is a little thinkscript you can use: input EntryPrice = 123.45; input ExitPrice =543.21; plot Buy = EntryPrice; plot Sell = ExitPrice; This will put two horizontal lines across your …
thinkscript - How to draw a horizontal line conditionally?
WebDescription Adds a vertical line with specified text. Input parameters Example input period = {WEEK, default MONTH}; AddVerticalLine ( (period == period.WEEK and GetWeek () <> GetWeek () [1]) or (period == period.MONTH and GetMonth () <> GetMonth () [1]), "", Color.ORANGE, curve.SHORT_DASH); WebIt is clearly drawing a blue square-dot line that begins at the pre-market high and extends to the right. It also displays a gray square-dot line starting at pre-market low and extending to the right. This works exactly as I had hoped. I will study your code so I can continue learning more about how ThinkScript works. :) fufm • 1 yr. ago japan meteorological agency wikipedia
Extend horizontal line across high few days ahead and backward
WebDec 24, 2024 · How to draw a horizontal line conditionally? A script creates a quasi boolean flag lowBar 0 / 1 to control the visibility of an indicator line. When that flag is used to … Webplot upper = if okToPlot and alertPeriod then open (period = timeFrame) * ( (prctUpper / 100) + 1) else Double.NaN; If alertPeriod is true, we plot the values. When false, we set the plot to NaN. If user input showOnlyLastPeriod is set to yes, we plot the lines only on the current day. Screenshot below shows the result. japan method to reduce stress