Draw a Trend at a Time period? please help
Forums › ProRealTime English forum › ProBuilder support › Draw a Trend at a Time period? please help
- This topic has 8 replies, 3 voices, and was last updated 4 years ago by tobytarczy.
-
-
01/31/2018 at 2:04 AM #61034
Hi.
Is there any help i can get to draw a trend line at 6am. lets say using the 1hour chart .. taking 1am to 6am candles — Draw a trend line connecting a valid swing high with those 6candles (highest point on that 6candles) to the most recent swing high of the previous days (previous days high)
is this possible?? please see the attached pic to get an idea!!! please any help appreciated
01/31/2018 at 11:24 AM #6107401/31/2018 at 4:20 PM #61112Hi Nicolas,
Thanks for the reply.
Yes this is only for 1hour time frame.. not sure how to get the swing high (highest) of that past 6 candles (1am to 6am) and connect to previous days high!!!
Many thanks
Ro
02/05/2018 at 10:03 PM #61604Hi Nicolas,
please are you able help to achieve this?
02/06/2018 at 9:33 AM #61641I think it should works like the way you want. I only plot the lines for the current day, otherwise the chart would be filled with plenty of lines of previous days… since we can’t erase what’s already plotted.
1234567891011121314151617181920212223242526272829303132Arrow = 0Ncandles = 5Nside = (Ncandles - 1) / 2ctime = time>010000 and time<=060000 and date=todayhh=max(high,hh)if hh<>hh[1] thenhighbar=barindexendifif intradaybarindex=0 thenhh=0prevhighbar=highbardrawvline(barindex) coloured(255,0,0)endifif ctime thenIF high[Nside] >= highest[Ncandles](high) THENFup = high[Nside]FupBar = barindex[Nside]Arrow = -1ENDIFIF Arrow = -1 THENDRAWtext("o",barindex[2],high[2]+Averagetruerange[5]/3)coloured(255,0,0)drawline(prevhighbar,dhigh(1),FupBar,Fup)ENDIFendifreturn02/06/2018 at 11:15 AM #61660Hi nicolas,
Thanks very much for the reply,
how can i change this to 1 hour time frame? when its on the one hour only the vertical lines appear? but not the trend line?
02/06/2018 at 1:59 PM #6169002/06/2018 at 2:12 PM #61698ahh.. got it!!! thanks for the help nicolas!
06/05/2020 at 4:41 PM #134745Hi,
I have been trying to find an example that I could use to create a downward and upward trend line based on the highest and lowest bar respectively that includes 3 bars. In otherwords only draw the line if there are 3 points that can be derived. I want to make this work across all the major time frames. I have tried a few examples but I haven’t been able to make it work. The example that was provided in this blog is a good one, only it hits just 2 high points.
Thank you in advance.
Toby
-
AuthorPosts
Find exclusive trading pro-tools on