highlight a “X” trading” day or fixed time regression
Forums › ProRealTime English forum › ProBuilder support › highlight a “X” trading” day or fixed time regression
- This topic has 10 replies, 2 voices, and was last updated 11 months ago by renzocarioca.
-
-
12/03/2023 at 11:23 AM #224748
Hi,
I like to use the regression line tool and I would like to know if it is possible to preset and quantity of trading days ?
the other alternative, could be with a date function (?) to highlight in the chart (vertical line? colour?)
or… a count function?
thank you kind regards
Renzo
12/03/2023 at 3:09 PM #224752Hi,
You can configure the drawn linear regression line with a start and end date…
Start 18 okt 2023 – End 15 nov 2023 (25 trading days)
1 user thanked author for this post.
12/04/2023 at 1:15 PM #224811thanks , I saw that you can input the date but we should be able to input the qauntity of trading days like for other indicators (MA EMA etc..)
12/04/2023 at 2:44 PM #224821You can use the “Linear Regression” indicator (on price), where you can specify the number of days…
1 user thanked author for this post.
12/05/2023 at 2:54 AM #224859did not think about this option, thanks. However, I still prefer to see the regression line, The should in fact add the quantity of days in the formatting menu of the regression line!! do not know why they did not do it ??
12/05/2023 at 9:19 AM #224865You can also create an indicator based on the linear regression…
This indicator draws a line between two points of the linear regression, where the distance between the points can be set [N]…
LR Segment1234567DefParam DrawOnLastBarOnly=TrueN=20 //20 daysxLR =LinearRegression[N](close)xFP=xLR[N]xSP=xLRDRAWSEGMENT(BarIndex[N], xLR[N], BarIndex, xLR)Return12/07/2023 at 4:15 PM #225012Thanks
I used your formula to test and drew one regression line for the same 20 trading days manually (pink line)
The result is different ??
12/07/2023 at 4:59 PM #22501812/07/2023 at 5:02 PM #225020daily, SPY or ESXXX I used for the test if I rememember
12/07/2023 at 6:04 PM #22502412/08/2023 at 3:53 AM #225036thanks anyway,
they really should add in the menu, when you draw a linear regression the option of quantity of candles instead of days/dates
-
AuthorPosts