donchian_signal
Function Name: donchian_signal
Tags: None
Category: Price
A simple Price Channel of the Highest High of Last x Periods and Lowest Low of Last x Periods. In addition the median of the upper and lower channel is plotted.
When the price goes above upper donchian level, then issue a Sell signal. When the price goes below lower donchian level, issue a Buy signal.
Parameters:
PeriodHigh, periodLow: Donchian channel parameters.
ShowOnlyAlternateSignals: When set to True, consecutive buy/sell signals will be omitted.
ShowDonchianChannel: Show/Hide donchian channel.
Author: Richard Davoud Donchian
Link: http://www.investopedia.com/terms/d/donchianchannels.asp
periodHigh |
|
|
Default Value: 20 | Minimum: 1 | Maximum: 9999 |
|
Type: Numeric |
periodLow |
|
|
Default Value: 20 | Minimum: 1 | Maximum: 9999 |
|
Type: Numeric |
ShowOnlyAlternateSignals |
|
|
Default Value: -1 |
|
Type: Boolean |
ShowDonchianChannel |
|
|
Default Value: -1 |
|
Type: Boolean |