Optuma Forums › Optuma Scripting › Strange Syntax when using DONCH() › Reply To: Strange Syntax when using DONCH()
March 8, 2021 at 9:57 am
#62866
- Topics: 5
- Replies: 625
- Posts: 630
Hi,
VAR1 is finding a Weekly value for the Donchian Channel.
VAR2 is finding the Weekly Close value.
The 3rd line is looking for instances where the previous weekly close crosses above the previous weeks Donchian Channel.
When time frame overrides like WEEK() are being used, it is usually because the script is being applied to a chart with a different time frame (like Daily).