Skip to main content

Questions tagged [trendline]

The tag has no usage guidance.

trendline
0 votes
1 answer
37 views

Trying to add a loess smooth line to ggplot while retaining colored groupings

I'm hoping to create a scatterplot with a loess smooth line to capture the trend across the full time period. At the same time, the study population is pregnent, so I'm wanting to color each point ...
longshot_ologist's user avatar
0 votes
0 answers
20 views

Kendo Chart date not converted correctly its in GMT which needs to be UTC

To properly format your heatExchangerSurveyCalculationsDataSource and ensure that dates are correctly handled as UTC, here's the full implementation: Define the toDate function to parse and return ...
ashwini patil's user avatar
1 vote
2 answers
66 views

How to add trend line to exponential data in {ggplot2}?

I am trying to add a trend line to my {ggplot2} plot using ggplot2::geom_smooth(). I have tried multiple times to add the line but have not been able to figure it out. Here is my most recent attempt. ...
Preston Carey's user avatar
0 votes
0 answers
32 views

Why does stat_poly_eq give a wrong formula for the trendline when plotting the graph on a log-scale?

My problem is when I plot the same data with linear and with log-transformed axes, the equation that is calculated by stat_poly_eq gives is different between both plots (wrong in the log-transformed ...
Abdulrazzaq Alheraky's user avatar
0 votes
0 answers
82 views

Ending Trend Lines After Breakout

The code below automatically draws trend lines and generates signals when there is a breakout. After the breakout, it checks the next candle for confirmation, and if confirmation occurs, it ends the ...
Nurettin Özdemir's user avatar
1 vote
1 answer
58 views

Add trendline equation and R2 value [closed]

I have plotted the variation of concentration with time for a particular chemical. I needed to show the expotential trendline for the data. The data was filtered fom a larger dataset. I used the below ...
Arya Alex's user avatar
0 votes
0 answers
33 views

Tradingview - Link highest point between two weeks

How do I only keep Week2 (yellow cirle) high to Week1 (blue circle) high lines(red cirle). And skip other wrong connect line. My code as below: var float weekly_high_price = na var int weekly_high_idx ...
James Yang's user avatar
0 votes
1 answer
65 views

Tradingview - Plot higher timeframe trend line in lower time frame

Is it possible to plot trend line base on higher time frame in lower time frame? For example: Plot Week level trend line in Day level chart. Trend line set from Week[2] high to Week1 high And show on ...
James Yang's user avatar
0 votes
0 answers
24 views

Pinescript Calculating 3rd point by joining 2 existing points from previous bar. i.e projecting trends

I am trying to project a trend through points on the chart. I have 2 set of points(lets say highs of 2 previous candles).If I draw a trendline through those 2 points, it will be extended right to the ...
Kapil G's user avatar
  • 4,131
1 vote
1 answer
30 views

Display trendline equations for facet wrapped date

I am working with a lot of data looking for variation in spider behavior. Here, multiple behaviors were recorded for multiple spiders in an experiment simulating rain. I have the amount of time each ...
Katie Van Havel's user avatar
0 votes
1 answer
57 views

How to code to force run an indicator when crossing a manual horizontal line

I have an indicator that works fine to send a webhook message on different conditions like 3 green high cross, 20 EMA cross etc and trades go well... however sometimes I find random opportunities on ...
Vasu M's user avatar
  • 3
0 votes
1 answer
83 views

How do I animate this graph so that it displays my trendline along with my points and line graph?

My code looks like this: df3 <- nfl_data |> group_by(team) |> summarize( year, wins ) df3 <- df3 |> filter(team == 'Atlanta Falcons') df3 graph4 <-...
albh37's user avatar
  • 1
1 vote
2 answers
203 views

How to add multiple trendlines to a scatter plot by groups

I'm trying to add multiple trendlines to a scatter plot in ggplot by age groups. I have 4 Age_range's 20_under, 21_24, 25_29, and 30_up so I'm looking to have 4 trendlines for each of these age groups ...
ChrisSmith's user avatar
0 votes
0 answers
155 views

chartjs-trendline implement a dashed line?

using chartjs and chartjs-trendline plugin. I am attempting to satisfy the ui by implementing a dashed trendline. However this is proving to be a significant challenge to me. I have suggestions ...
macm's user avatar
  • 643
0 votes
1 answer
28 views

Add Trendline if none exists

I have created the following code to format a chart. Now I only want to add a trendline if none exists yet. How do I do this or where is my mistake? I am sure that I am missing something obvious Sub ...
WalmitAal's user avatar

15 30 50 per page
1
2 3 4 5
19