分类
外汇期权交易

使用 Donchian Channel 指标的优缺点

汇商传媒 ​

DONCHIAN CHANNELS (DC)

Donchian Channels (DC) are used in technical analysis to measure a market’s volatility. It is a banded indicator, similar to Bollinger Bands %B (%B). Besides measuring a market’s volatility, Donchian Channels are primarily used to identify potential breakouts or overbought/oversold conditions when price reaches either the Upper or Lower Band. These instances would indicate possible trading signals.

History

The Donchian Channels (DC) indicator was created by the famous commodities trader Richard Donchian. Donchian would become known as The Father of Trend 使用 Donchian Channel 指标的优缺点 Following.

Calculation

For this example, a 20 day period is used which is a very 使用 Donchian Channel 指标的优缺点 commonly used timeframe.

The basics

Donchian Channels are one of the more straightforward indicators to calculate and understand. The indicator simply takes a user defined number of periods (20 Days for example) and calculates 使用 Donchian Channel 指标的优缺点 the Upper and Lower Bands. The Upper Band is the high price for the period. The Lower Band is the low price for the period. The Middle 使用 Donchian Channel 指标的优缺点 Line is simply the average of the two.

The main function of Donchian Channels is to measure volatility. When volatility is high, the bands will widen and when volatility is low, the bands become more narrow. When price reaches or breaks through one of the bands, this indicate an overbought or oversold condition. This can essentially result in one of two things. First, the current trend has been confirmed and the breakthrough will cause a significant move in price in the same direction. The second result is that the trend has already been confirmed and the breakthrough indicates a possible small reversal before continuing in the same direction.

Summary

The Donchian Channels indicator (DC) measures volatility in order to gauge whether a market is overbought or oversold. What is important to remember is that Donchian 使用 Donchian Channel 指标的优缺点 Channels primarily work best within a clearly defined trend. During a Bullish Trend, movement into overbought territory may indicate a strengthening trend (especially if the movements occur 使用 Donchian Channel 指标的优缺点 frequently during the trend). During a Bearish Trend, frequent movement into oversold territory may also indicate a strengthening trend. Also, during an uptrend (downtrend), movements into oversold (overbought) territory may just be temporary 使用 Donchian Channel 指标的优缺点 and the overall trend will continue. That 使用 Donchian Channel 指标的优缺点 使用 Donchian Channel 指标的优缺点 being said, being sure of the 使用 Donchian Channel 指标的优缺点 overall trend plays a major role in getting the most out of Donchian Channels. They could be used with additional technical analysis tools such as trend lines or the Directional Movement (DMI) indicator.

【CNN】理解卷积神经网络中的通道 channel

置顶 scxyz_ 于 2018-04-04 16:07:15 发布 101537 收藏 765

在深度学习的算法学习中,都会提到 channels 这个概念。在一般的深度学习框架的 conv2d 中,如 tensorflow 、mxnet , channels 都是必填的一个参数。

首先,是 使用 Donchian Channel 指标的优缺点 tensorflow 中给出的,对于输入样本中 channels 的含义。一般的RGB图片, channels 数量是 3 (红、绿、蓝);而monochrome图片, channels 数量是 1 。

channels : Number of color channels in the example images. For color images, the number of channels 使用 Donchian Channel 指标的优缺点 is 3 (red, green, blue). For 使用 Donchian Channel 指标的优缺点 monochrome images, there is just 1 channel (black). ——tensorflow

其次,mxnet 中提到的,一般 channels 的含义是,每个卷积层中卷积核的数量

channels (int) : The dimensionality of the output space, 使用 Donchian Channel 指标的优缺点 i.e. the number of output channels (filters) in the convolution. ——mxnet

如下图,假设现有一个为 6 × 6 × 3 6 × 6 × 3 的图片样本,使用 3 × 3 使用 Donchian Channel 指标的优缺点 × 3 3 × 3 × 3 的卷积核(filter)进行卷积操作。此时输入图片的 channels 为 3 3 ,而卷积核中的 in_channels 与 需要进行卷积操作的数据的 channels 一致(这里就是图片样本,为3)。

接下来,进行卷积操作,卷积核中的27个数字与分别与样本对应相乘后,再进行求和,得到第一个结果。依次进行,最终得到 4 × 4 的结果。

上面步骤完成后,由于只有一个卷积核,所以最终得到的结果为 4 × 4 × 1 4 × 4 × 1 , out_channels 使用 Donchian Channel 指标的优缺点 为 1 1 。

在实际应用中,都会使用多个卷积核。这里如果再加一个卷积核,就会得到 4 × 使用 Donchian Channel 指标的优缺点 4 × 2 的结果。

总结一下,我偏好把上面提到的 channels 分为三种:

  1. 最初输入的图片样本的 channels ,取决于图片类型,比如RGB;
  2. 卷积操作完成后输出的 out_channels ,取决于卷积核的数量。此时的 out_channels 也会作为下一次卷积时的卷积核的 in_channels ;
  3. 卷积核中的 in_channels ,刚刚2中已经说了,就是上一次卷积的 out_channels 使用 Donchian Channel 指标的优缺点 ,如果是第一次做卷积,就是1中样本图片的 channels 。

说到这里,相信已经把 channels 讲的很清楚了。在CNN中,想搞清楚每一层的传递关系,主要就是 height , width 的变化情况,和 channels 的变化情况。

最后再看看 tensorflow 中 tf.nn.conv2d 的 input 和 filter 这两个参数。
input : [batch, in_height, in_width, in_channels] ,
filter : 使用 Donchian Channel 指标的优缺点 [filter_height, filter_width, in_channels, out_channels] 。

一种有效的趋势策略——唐奇安通道详解

汇商传媒 ​

在交易世界中,人们痴迷于在理想的底部/顶部进行买入和卖出,这种心态容易导致交易者过早建仓,或者是急于获利了结。那么是否存在一种交易系统,让交易者每次都能在市场发生重大转折的时刻做出正确的选择呢?

早在1970年,一本名为"The Traders Notebook"的小册子就比较了最著名的商品交易系统。人们发现,最成功的交易系统是理查德·唐奇安开发的四周规则。

什么是四周规则?

理论上,交易员始终有持仓。然而,这种交易方法的一个明显弱点——需要注意的是,四周规则在横盘交易中并不奏效,因为价格通常在一个区间内运行。

使用唐契安通道指標進行交易

使用唐契安通道指標進行交易

唐契安通道指標

唐契安通道指標

安裝和設置指示器

並非每個交易終端都包含 Donchian 通道; 因此,您可能需要下載指標文件並在您的終端中進行設置。 您可以下載指標 MetaTrader的4 通過本文末尾的鏈接。

要安裝指標,請將文件複製到指標文件夾。 通過主菜單,打開文件/打開數據目錄/MQL 4/指標,複製文件,然後重新啟動終端。

  • Upper Line (border) = High (n, n) – n 個週期的最高點
  • 下線(邊界)=低(n,n)——n個週期的最低點
  • Middle Line = (Upper Line + Lower Line) / 2 是通道邊界的算術平均值,在實踐中幾乎從未使用過。

按指標交易

Donchian Channel 有兩種主要的交易策略:交易趨勢和交易 假突破.

這是使用理查德丹尼斯在海龜策略中使用的唐奇安通道交易趨勢的經典方式。 該策略假定當 2 天高/低被突破時按實際趨勢開倉。 該策略適用於長期定向趨勢頻繁出現的市場(如股票市場)。

這是一種反趨勢策略,假設交易 20 天高點/低點的虛假突破。 這是著名股票專家琳達·布拉德福德·拉施克 (Linda Bradford Raschke) 提出的 Turtle Soup 策略的基礎原則。 該策略主要適用於頻繁反轉的市場(外匯、期貨)。

Donchian 通道是一個非常簡單且有用的指標。 是很好的補充 技術分析 顯示在設定的時間間隔內圖表上價格變動的範圍。 在 20 使用 Donchian Channel 指标的优缺点 天價格通道的突破上,有兩個著名的策略是基於:Richard Dennis 的 Turtles 和 Linda Raschke 的 Turtle Soup。

維克多·格里亞津

自 2004 年以來一直在金融市場交易。他所獲得的知識和經驗構成了他自己的資產分析方法,他很高興與 RoboForex 網絡研討會的聽眾分享這些方法。