- Katılım
- 23 Eki 2020
- Mesajlar
- 1,826
My understanding is that Donchian Channels are channels formed by the highest high and lowest low in the last 20 days (traditionally). The MetaStock code for the indicator would then be: |
|
Donchain Channels Periods:= Input("Enter number of periods", 20, 60, 20); UpperChannelLine:= Ref(HHV(HIGH, Periods), -1); LowerChannelLine:= Ref(LLV(LOW, Periods), -1); UpperChannelLine; LowerChannelLine; (UpperChannelLine + LowerChannelLine)/2; |
from Glen Wallace | |
| |
Source / From: |