Web# plot a horizontal line # at the average price of your open position def open_position_avg_price = GetAveragePrice (); # color the plot line based on position side # quantity will be negative if short def open_position_qty = GetQuantity (); def PnL_Line_Color = if open_position_qty < 0 then -1 else 1; #debug WebThe thinkscript documentation infers that there are more forms of the if-then-else, but the additional examples are merely the base form shown with nested if-then-else statements/expressions. ... Plots a horizontal line at a value of today's market opening price input CashOpen = 0930; input Settlement = 1615; def Today = GetDay() == GetLastDay ...
Price Indicator Horizontal Line : r/thinkorswim - Reddit
WebSetStyle SetStyle ( int curve); Description Controls a style of a curve. Input parameters Example plot Data = low; Data.SetStyle (Curve.SHORT_DASH); This example script draws the Low price plot using a short-dashed curve. SetPaintingStrategy TakeValueColor Top How to thinkorswim thinkManual Trading How-Tos Mobile Trading Reference Drawings WebMar 24, 2024 · How do I plot a horizontal line (that extends to the right but not the left) starting at a specific time of the day, outside of trading hours. I want to plot two horizontal lines actually, one on the high and one on the low of the 8am candle of a 10 minute chart. I would like for it to be plotted historically as well. my htmt global attendance
Can thinkscript plot text words? - Hahn-Tech, LLC
WebDec 6, 2024 · plot linehigh1 = if plotOne then high (period = “day” ) [1] else Double.NaN; In order to expand this so as to include a user input to select up or down bars: input direction … Webplot HorizontalLine = if ThisBar <= bar else Double.NaN; HorizontalLine.SetStyle (Curve.Long_Dash); HorizontalLine.SetDefaultColor (CreateColor (250,75,75)); HorizontalLine.SetLineWeight (1); ### if you do not want the chart bubble, either add # sign right before AddChartBubble, or delete all lines of code below this note Webplot Maximum = if condition then close else open; This script will plot a line connecting the higher of Close and Open for each bar. This can be also achieved using the third type of conditional expressions: if-function. myhts caracthers with hands on the hips