0
(0)
姓名:
Drive
作者: systrad5 (2006.09.08 14:46)
評分: 11
已下載: 9216
下載:
Drive 1
_Drive.mq4 (2.3 KB) 看法
Green above Red -> 向上.

Red above Green -> 向下.

Periods that seem useful are 4, 16, 128.

Value is calculated as follows:

向上 (綠色的) = ((高的 - 打開) + (關閉 - 低的))/2, averaged for the selected period;

向下 (紅色的) = ((打開 - 低的) + (高的 - 關閉))/2, averaged for the selected period.

Drive 2

This may have another name or be similar to an existing indicator. I've made up the name drive. Please drop me an email if you've run into a similar indicator before - [email protected]

2 評論 發表新評論, 請 登錄 或者 登記

I like it. On EURUSD 1H, it's giving better exit signals than my current indicators.
16.07.2011 08:30 maj1es2tic

#property indicator_separate_window #property indicator_buffers 2 #property indicator_color1 Green #property indicator_color2 Red //---- input parameters extern int Depth = 16; //---- buffers double UpBuffer[]; double DownBuffer[]; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int init() { //---- additional buffers SetIndexStyle(0, DRAW_LINE); SetIndexBuffer(0, UpBuffer); SetIndexStyle(1, DRAW_LINE); SetIndexBuffer(1, DownBuffer); //---- name for DataWindow and indicator subwindow label string short_name = "Drive(" + 深度 + ")"; IndicatorShortName(short_name); SetIndexLabel(0, "DriveUp"); SetIndexLabel(1, "DriveDn"); //---- return(0); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int start() { int i, j; double UpCnt, DnCnt; 如果(酒吧 <= Depth + 10) return(0); //---- last counted bar will be recounted int counted_bars = IndicatorCounted(); int limit = Bars - counted_bars; 如果(counted_bars > 0) limit++; //---- Load prices into CBuffer[0] 為了(i = 0; 我 < 限制; i++) { UpCnt = 0; DnCnt = 0; 為了(j = 0; j < 深度; j++) { UpCnt = UpCnt + (高的[i+j] - 打開[i+j]) + (Cl或者[i+j] - 低的[i+j]); DnCnt = DnCnt + (打開[i+j] - 低的[i+j]) + (高的[i+j] - 關閉[i+j]); } UpBuffer[我] = (UpCnt / (2 * 深度)) / 觀點; DownBuffer[我] = (DnCnt / (2 * 深度)) / 觀點; } return(0); } //+------------------------------------------------------------------+

這篇文章有多有用?

點擊一顆星即可對其進行評分!

平均評分 0 / 5. 計票數: 0

目前還沒有投票! 成為第一個評價這篇文章的人.

很抱歉這篇文章對您沒有用!

讓我們改進這篇文章!

告訴我們如何改進這篇文章?



作者: 外匯維基團隊
我們是一支經驗豐富的外匯交易員團隊 [2000-2023] 致力於以我們自己的方式生活的人. 我們的主要目標是實現財務獨立和自由, 我們追求自我教育並在外匯市場上獲得豐富的經驗,以此作為實現自我可持續生活方式的手段.