# Draw Vertical Line Through Each Daily Candle

##### New member
Is there a way to draw a vertical line through the middle of each daily candle?

That can interact with a calculated moving line that's going through my chart to signal crossovers.

Solution
Is there a way to draw a vertical line through the middle of each daily candle?

That can interact with a calculated moving line that's going through my chart to signal crossovers.

The black line in the chart below drawn vertically through the middle cannot interact with the ema plot. It uses the unsupported addchart() function. It does perhaps act as a visual for you where the ema crosses between the high and low, depicted by the dot. Hope this helps.

Ruby:
``````def Last_bar = HighestAll(
if !IsNaN(close)
then BarNumber()
else Double.NEGATIVE_INFINITY
);
input type = chartType.BAR;

plot ema1 = expaverage(close,8);
plot crossover = if...``````
Is there a way to draw a vertical line through the middle of each daily candle?

That can interact with a calculated moving line that's going through my chart to signal crossovers.

The black line in the chart below drawn vertically through the middle cannot interact with the ema plot. It uses the unsupported addchart() function. It does perhaps act as a visual for you where the ema crosses between the high and low, depicted by the dot. Hope this helps.

Ruby:
``````def Last_bar = HighestAll(
if !IsNaN(close)
then BarNumber()
else Double.NEGATIVE_INFINITY
);
input type = chartType.BAR;

plot ema1 = expaverage(close,8);
plot crossover = if between(ema1,low,high) then ema1 else double.nan;
crossover.Setstyle(curve.POINTS);
crossover.setdefaultColor(color.black);
input lineweight = 5;
crossover.setlineWeight(lineweight);``````

87k+ Posts
327 Online

## The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
• Exclusive indicators
• Proven strategies & setups
• Private Discord community
• Exclusive members-only content
• 1 full year of unlimited support

What is useThinkScript?

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.

How do I get started?

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.

What are the benefits of VIP Membership?