1 Adjunto (s).
https://www.forexycfds.com/attachmen...1774969303.mq4
Publi |
1 Adjunto (s).
https://www.forexycfds.com/attachmen...1774969303.mq4
Código insertado/ --------------------------------------------- --------------------- /| HighLow_Custom.Mq4 |/pag ----------------------------------------------- ------------------- #property indior_chart_window #property indior_buffers 5 #property indior_color1 DodgerBlue #property indior_color4 Chocolate por ejemplo - búferes intermedios dobles ExtMapBuffer1 # 91; # 93 ;; doble ExtMapBuffer2 # 91; # 93 ;; doble ExtMapBuffer3 # 91; # 93 ;; doble ExtMapBuffer4 # 91; # 93 ;; doble ExtMapBuffer5 # 91; # 93 ;; serie externa Time_Frame_value = 0, M1, M5, M15, M30, H1, H4, D1, W1, MN1; serie externa Time_Frame = D1; int timeFrame;/ ----------------------------------------------- ------------------- /| Servicio de inicialización personalizado indior |/pag ----------------------------------------------- ------------------- int init () if (Time_Frame == M1) timeFrame = PERIOD_M1; else if (Time_Frame == M5) timeFrame = PERIOD_M5; si no (Time_Frame == M15) timeFrame = PERIOD_M15; else if (Time_Frame == M30) timeFrame = PERIOD_M30; else if (Time_Frame == H1) timeFrame = PERIOD_H1; si no (Time_Frame == H4) timeFrame = PERIOD_H4; else if (Time_Frame == D1) timeFrame = PERIOD_D1; else if (Time_Frame == W1) timeFrame = PERIOD_W1; else if (Time_Frame == MN1) timeFrame = PERIOD_MN1; else timeFrame = 0; alerta if (timeFrame lt; Stage ()) (el intervalo debe ser mayor que el actual); deinit (); SetIndexBuffer (0, ExtMapBuffer1); SetIndexStyle (0, DRAW_LINE); SetIndexBuffer (1, ExtMapBuffer2); SetIndexStyle (1, DRAW_LINE); SetIndexBuffer (2, ExtMapBuffer3); SetIndexStyle (2, DRAW_LINE); SetIndexBuffer (3, ExtMapBuffer4); SetIndexStyle (3, DRAW_LINE); SetIndexBuffer (4, ExtMapBuffer5); SetIndexStyle (4, DRAW_LINE); retorno (0);/ ----------------------------------------------- ------------------- /| Función de desinicialización indior personalizada |/ ----------------------------------------------- ------------------- int deinit () Comment (); retorno (0);/ ----------------------------------------------- ------------------- /| Servicio personalizado de iteración |/ ----------------------------------------------- ------------------- int begin () int shift, I, CurDay, BarCount; doble DayMax, DayMin; doble DayOpen, DayClose, Avg; para (shift = Bars-1; shiftgt; = 0; shift) int timeFrameIndex = iBarShift (NULL, timeFrame, Time # 91; shift # 93 ;, true); if (CurDay! = iTime (NULL, timeFrame, timeFrameIndex)) para (I = BarCount; igt; = 0; I--) ExtMapBuffer1 # 91; shift I # 93; = DayMax; ExtMapBuffer2 # 91; shift I # 93; = (DayMax DayMin)2; ExtMapBuffer3 # 91; shift I # 93; = DayMin; ExtMapBuffer4 # 91; shift I # 93; = (DayMax DayMin) * 0.25;ExtMapBuffer5 # 91; shift I # 93; = (DayMax DayMin) * 0.75; CurDay = iTime (NULL, timeFrame, timeFrameIndex); BarCount = 0; DayMax = 0; DayMin = 1000; DayOpen = Open # 91; shift # 93 ;; if (DayMax lt; Top # 91; shift # 93; -RRB- DayMax = High # 91; shift # 93 ;; if (DayMin gt; Low # 91; shift # 93; -RRB- DayMin = Low # 91; shift # 93 ;; BarCount = BarCount 1; para (I = BarCount; igt; = 0; I--) ExtMapBuffer1 # 91; shift I # 93; = DayMax; ExtMapBuffer2 # 91; shift I # 93; = ( DayMax DayMin) * 0.50; ExtMapBuffer3 # 91; shift I # 93; = DayMin; ExtMapBuffer4 # 91; shift I # 93; = DayMin (DayMax-DayMin) * 0.25; ExtMapBuffer5 # 91; shift I # 93 ; = DayMin (DayMax-DayMin) * 0.75; DayClose = Close # 91; 0 # 93 ;; Avg = (DayMax DayMin)2; return (0);/ --------- -------------------------------------------------- ------- * Comentario (DayMin, DoubleToStr (ExtMapBuffer3Number 91; 0 # 93 ;, Digits), n, .25, DoubleToStr (ExtMapBuffer4Number 91; 0 # 93 ;, Digits), n, .50, DoubleToStr (ExtMapBuffer2Number 91; 0 # 93 ;, dígitos), n, .75, DoubleToStr (ExtMapBuffer5Number 91; 0 # 93 ;, Di gits), n, DayMax, DoubleToStr (ExtMapBuffer1Number 91; 0 # 93 ;, dígitos), n,); *
1 Adjunto (s) ¿alguien puede poner una opción de cambio en este indicador por favor? (es exactamente el mismo de lo que trata este hilo, pero lo colocaré aquí de todos modos) gracias, ~ Tim
https://www.forexycfds.com/attachmen...1094153859.mq4
Necesito la etiqueta en cada línea que muestre el nivel de precios, ya que uso 2 indiors al mismo tiempo. Alguien puede ayudarme ? Por favor ... Gracias antes de