Hi, did not see this in search can someone direct me or create line chart that includes the wick, TOS line chart only charts the body unless im mistaken. Thanks in advance
Thanks yes I need to clarify: line chart that plots the high of a bull candle and the low of a bear candlegenerally a line chart connects the closes from each time segment ( each candle)
'include the wick' doesn't tell us what you are thinking about.
study candlesticks , then come back and ask a different question, one that uses open, high, low, and/or close
https://www.investopedia.com/trading/candlestick-charting-what-is-it/
I'm thinking of a simple line chart that includes the wicks would like it to be a stand alone not including the candles, for instance the line would start at the low of the first candle to the high of the next candle and so on. Thanks for any help you can providePlots it how?
There's lots of ways to do it. It can be a wick that spikes out of the main line, or a separate line that flips above and below the main line, it can change colors, be a cloud, all sorts of things. Can you describe what you're envisioning? Otherwise the code is incredibly simple.
# ANTWERKS - USE EQUIVOLUME CANDLES
declare upper;
# =========================
# INPUTS
# =========================
input volLength = 20;
input rangeLength = 20;
# =========================
# BASE CALCULATIONS
# =========================
def avgVol = Average(volume, volLength);
def highVol = volume > avgVol;
def lowVol = volume < avgVol;
def upBar = close > open;
def downBar = close < open;
def spread = high - low;
def avgSpread = Average(spread, rangeLength);
def bigMove = spread > avgSpread;
def smallMove = spread < avgSpread;
# =========================
# 🔥 PARTICIPATION LABEL
# =========================
AddLabel(yes,
if highVol then "HIGH PARTICIPATION"
else "LOW PARTICIPATION",
if highVol then Color.CYAN
else Color.GRAY
);
# =========================
# 🔥 BUYING / SELLING PRESSURE
# =========================
AddLabel(yes,
if upBar and highVol then "STRONG BUYING"
else if downBar and highVol then "STRONG SELLING"
else if upBar then "WEAK BUYING"
else if downBar then "WEAK SELLING"
else "NEUTRAL",
if upBar and highVol then Color.GREEN
else if downBar and highVol then Color.RED
else Color.GRAY
);
# =========================
# 🔥 MOVE QUALITY (VERY IMPORTANT)
# =========================
AddLabel(yes,
if highVol and bigMove then "EXPANSION (REAL MOVE)"
else if highVol and smallMove then "ABSORPTION (NO PROGRESS)"
else if lowVol and smallMove then "CHOP / LOW INTEREST"
else "NORMAL",
if highVol and bigMove then Color.GREEN
else if highVol and smallMove then Color.YELLOW
else Color.GRAY
);
# =========================
# 🔥 TRAP DETECTION (KEY EDGE)
# =========================
def buyerTrap =
upBar and highVol and close < close[1];
def sellerTrap =
downBar and highVol and close > close[1];
AddLabel(yes,
if buyerTrap then "BUYERS TRAPPED (REVERSAL RISK)"
else if sellerTrap then "SELLERS TRAPPED (REVERSAL RISK)"
else "NO TRAP",
if buyerTrap then Color.YELLOW
else if sellerTrap then Color.ORANGE
else Color.GRAY
);
# =========================
# 🔥 FOLLOW-THROUGH (CONFIRMATION)
# =========================
def followThroughUp =
upBar and highVol and close > close[1];
def followThroughDown =
downBar and highVol and close < close[1];
AddLabel(yes,
if followThroughUp then "CONFIRMED BUYING (CONTINUATION)"
else if followThroughDown then "CONFIRMED SELLING (CONTINUATION)"
else "NO CONFIRMATION",
if followThroughUp then Color.GREEN
else if followThroughDown then Color.RED
else Color.GRAY
);
# =========================
# 🔥 RESTORE HI / LO LINES
# =========================
input hiLoLength = 10;
def hiLine = Highest(high, hiLoLength);
def loLine = Lowest(low, hiLoLength);
plot HiPlot = hiLine;
plot LoPlot = loLine;
HiPlot.SetDefaultColor(Color.RED);
LoPlot.SetDefaultColor(Color.GREEN);
HiPlot.SetLineWeight(2);
LoPlot.SetLineWeight(2);
HiPlot.SetStyle(Curve.FIRM);
LoPlot.SetStyle(Curve.FIRM);
plot MidLine = (hiLine + loLine) / 2;
MidLine.SetDefaultColor(Color.YELLOW);
MidLine.SetStyle(Curve.SHORT_DASH);
Join useThinkScript to post your question to a community of 21,000+ developers and traders.
Start a new thread and receive assistance from our community.
useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.
We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.
If you are new, or just looking for guidance, here are some helpful links to get you started.