- نومبر 20, 2013
- پاران شايع ٿيل: فاریکس وڪي ٽيم
- زمرو: مفت فاریکس EA
نالو: |
|
||
ليکڪ: | systrad5 (2006.09.08 14:46) | ||
درجه بندي: | 11 | ||
ڊائون لوڊ ٿيل: | 9216 | ||
ڊائون لوڊ ڪريو: |
|
||
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. 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] |
|||
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(" + Depth + ")"; اشارو مختصر نالو(short_name); سيٽ انڊيڪس ليبل(0, "DriveUp"); سيٽ انڊيڪس ليبل(1, "DriveDn"); //---- واپسي(0); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int شروع() { int i, جي; double UpCnt, DnCnt; جيڪڏهن(بار <= Depth + 10) واپسي(0); //---- last counted bar will be recounted int counted_bars = IndicatorCounted(); int limit = Bars - شمار ٿيل_بار; جيڪڏهن(شمار ٿيل_بار > 0) limit++; //---- Load prices into CBuffer[0] لاءِ(i = 0; i < limit; i++) { UpCnt = 0; DnCnt = 0; لاءِ(j = 0; جي < Depth; j++) { UpCnt = UpCnt + (هاءِ[i+j] - کليل[i+j]) + (ڪلose[i+j] - گھٽ[i+j]); DnCnt = DnCnt + (کليل[i+j] - گھٽ[i+j]) + (هاءِ[i+j] - بند[i+j]); } UpBuffer[i] = (UpCnt / (2 * Depth)) / نقطو; DownBuffer[i] = (DnCnt / (2 * Depth)) / نقطو; } واپسي(0); } //+------------------------------------------------------------------+
|