- noviembre 20, 2013
- publicado por: Equipo Wiki de Forex
- Categoría: Forex gratis EA
Nombre: |
|
||
Autor: | hermana fila5 (2006.09.08 14:46) | ||
Clasificación: | 11 | ||
descargado: | 9216 | ||
Descargar: |
|
||
Green above Red -> Arriba.
Rojo sobre verde -> Abajo. Los períodos que parecen útiles son 4, 16, 128. El valor se calcula de la siguiente manera: Arriba (Verde) = ((Alto - Abierto) + (Cerca - Bajo))/2, promediado para el período seleccionado; Abajo (Rojo) = ((Abierto - Bajo) + (Alto - Cerca))/2, promediado para el período seleccionado. 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 inicio() { //---- 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 = "Conducir(" + Profundidad + ")"; IndicatorShortName(short_name); SetIndexLabel(0, "DriveUp"); SetIndexLabel(1, "DriveDn"); //---- devolver(0); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ inicio int() { int i, j; double UpCnt, DnCnt; si(Barras <= Depth + 10) devolver(0); //---- last counted bar will be recounted int counted_bars = IndicatorCounted(); int limit = Bars - counted_bars; si(counted_bars > 0) limit++; //---- Load prices into CBuffer[0] para(yo = 0; i < límite; i++) { UpCnt = 0; DnCnt = 0; para(j = 0; j < Profundidad; j++) { UpCnt = UpCnt + (Alto[i+j] - Abierto[i+j]) + (clO[i+j] - Bajo[i+j]); DnCnt = DnCnt + (Abierto[i+j] - Bajo[i+j]) + (Alto[i+j] - Cerca[i+j]); } UpBuffer[i] = (UpCnt / (2 * Profundidad)) / Punto; DownBuffer[i] = (DnCnt / (2 * Profundidad)) / Punto; } devolver(0); } //+------------------------------------------------------------------+
|