Reply To: Strange Syntax when using DONCH()

Optuma Forums Optuma Scripting Strange Syntax when using DONCH() Reply To: Strange Syntax when using DONCH()

#62866
Matthew
  • 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).

Pin It on Pinterest