Donchian Persistance
Forums › ProRealTime English forum › ProBuilder support › Donchian Persistance
- This topic has 7 replies, 2 voices, and was last updated 8 years ago by Nicolas.
-
-
08/05/2016 at 6:41 PM #11253
Bonjour Nicolas
Is there a way to get Donchian based HH & LL’s over n periods to persist and continue to draw their respective levels to the right rather than being re-written at the next period refresh? I appreciate this may make a chart look at little messy over the course of a day but for me it would be useful to identify S&R zones as the trading day evolves.
Thanks in advance
::copperwave
08/06/2016 at 1:32 PM #11284Hello Copperwave,
Since we never know in advance, how much time the higher high and the lower low will change in a day, it would involve to build multiple lines into a data array and there is not possibility to build array with ProBuilder.
So maybe, we could limit the number of past HH and LL lines that can be drawn on chart, and we could build something with, what do you think?
08/06/2016 at 4:58 PM #11307Hi Nicolas – thanks for responding and confirming my thoughts about not being able to do an array. In the meantime I kludged this together:
123456789101112131415161718// p = 60, (1 hour lookback on 1 min chart)// n = 1Upper = Highest[p](High)Lower = Lowest[p](Low)if Upper > Upper[n] thenPreviousHigh = Upper[n]PPH = PreviousHigh[n]PPPH = PPH[n]endifif Lower < Lower[n] thenPreviousLow = Lower[n]PPL = PreviousLow[n]PPPL = PPL[n]endifRETURN upper AS "upper" , lower AS "lower", PreviousHigh AS "PH", PreviousLow AS "PL", PPH AS "PPH", PPL AS "PPL", PPPH, PPPLWhile the previous HH and LL’s get drawn, they eventually get overwritten every 60 bars…or whatever p is set to and so it begins to look like strange Darvas boxes. If it is possible to limit to the past 4 HH & LL’s that would be something 🙂
Many thanks
::copperwave
08/06/2016 at 6:49 PM #1131208/07/2016 at 1:18 PM #11321That would get me different overlaid Donchian channels if I understand your suggestion correctly. That isn’t what I am after. All I want to do is preserve an existing HHLL level to the right while re-writing the new one’s as they occur.
Thanks
::copperwave
08/07/2016 at 5:17 PM #1132408/08/2016 at 10:29 AM #11337Hi – OK, well I guess I’ll have to stick to drawing lines manually then 🙂
Thanks
::copperwave
08/08/2016 at 12:24 PM #11351 -
AuthorPosts
Find exclusive trading pro-tools on