Fix my arrow indicator

MQL4 Indicadores Asesores Expertos

Trabajo finalizado

Plazo de ejecución 11 minutos
Comentario del Cliente
good job, if it took only 1 minute for him.

Tarea técnica

My code so far:

//+------------------------------------------------------------------+
//|  
//| 
//+------------------------------------------------------------------+
#property  copyright ""

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Tomato
#property indicator_color2 SpringGreen



//---- input parameters

 bool Alert_On=false;


 int CountBars=99999999;

//---- buffers
double val1[];
double val2[];

#define SIGNAL_BAR 1
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {

//---- indicator line
   IndicatorBuffers(2);
   
   SetIndexStyle(1,DRAW_ARROW,STYLE_SOLID,2);
   SetIndexArrow(1,241);
   
   SetIndexStyle(0,DRAW_ARROW,STYLE_SOLID,2);
   SetIndexArrow(0,242);
   
   SetIndexBuffer(0,val1);
   SetIndexBuffer(1,val2);

//----
   return(0);
  }
//+------------------------------------------------------------------+
//| AltrTrend_Signal_v2_2                                            |
//+------------------------------------------------------------------+
int start()
  {
   static datetime bar_time=0;
   if(Time[0]==bar_time)
      return(0);
   bar_time=Time[0];
   if(CountBars>=Bars) CountBars=Bars;
   SetIndexDrawBegin(0,Bars-CountBars);
   SetIndexDrawBegin(1,Bars-CountBars);
   int i,shift,counted_bars=IndicatorCounted();


//---- check for possible errors
   if(counted_bars<0) return(-1);

//---- initial zero
   if(counted_bars<1)
     {
      for(i=1;i<=CountBars;i++) val1[CountBars-i]=0.0;
      for(i=1;i<=CountBars;i++) val2[CountBars-i]=0.0;
     }

   for(shift=CountBars; shift>0; shift--)
     {

double buy=iCustom(Symbol(),0,"Reversal 0000",0,shift);
double sell=iCustom(Symbol(),0,"Reversal 0000",1,shift);    
 
     if(buy !=0)
      
      
        {
          val1[shift]=Low[shift]+1000*Point;
         if(shift==1 && Alert_On);
        }

        
      if(sell!=0)
      
      
        {
          val2[shift]=High[shift]-1000*Point;
         if(shift==1 && Alert_On);
        }
  
  
        } 


   return(0);
  } 


The result:




I need indicator which shows arrows at the same time when blue and red dots appear.



Han respondido

1
Desarrollador 1
Evaluación
(878)
Proyectos
1391
67%
Arbitraje
117
32% / 42%
Caducado
215
15%
Libre
2
Desarrollador 2
Evaluación
(338)
Proyectos
532
32%
Arbitraje
23
65% / 9%
Caducado
15
3%
Libre
3
Desarrollador 3
Evaluación
(1119)
Proyectos
1421
62%
Arbitraje
21
57% / 10%
Caducado
43
3%
Libre
Solicitudes similares
I have an EA which trades with XAUUSD with a grid system, and I need to add a few features: 1.- The EA works with an indicator and open many trades as a grid system. I need the EA to open JUST 1 TRADE INMEDIATELY WHEN THE TREND SHOWS. 2.- I need the EA to keep that trade open until it reaches TP or the reverse signal shows. The EA has already the 'close if reverse signal' parameter. 3.- I need to create a parameter
I wanted to convert from mt4 to Ctrader Cbot and you want a particular option/feature to work as a bot. A nd can you update this point: the option to check the account name/number on which the CBOT will work, if the wrong account number is given the CBOT should not work
Can you convert TradingView Harmonic pattern indicator to ninjatrader8? and I don not need statistic table with numbers, just indicators pattern, PRZ box (predicted prize box) etc. just no tables with numbers
I need a developer that can fix a indicator i have, I have a table that looks at emas and display bullish/bearish, I have spy on the table but its not always updating and need help fixing this I have this table and the first 6 rows looks at the chart symbol and if price is above 12 ema it will sows bullish under the 5/12 ema coulmn and bullish if its above, and same under the 34/50 colmun, if price is below 50 ema
I need a developer that can fix a indicator i have, I have a table that looks at emas and display bullish/bearish, I have spy on the table but its not always updating and need help fixing this I have this table and the first 6 rows looks at the chart symbol and if price is above 12 ema it will sows bullish under the 5/12 ema coulmn and bullish if its above, and same under the 34/50 colmun, if price is below 50 ema
I need an EA in MT5 that trades based on volatility with market orders. It must check and correctly process possible errors in trading operations. Entry and exits based on volatility threshold
Modificar EA 30+ USD
Es posible descompilar un EA de mt4? Tengo uno y me gustaría descompilarlo y poder tener el archivo haber como funciona de verdad. Saludos amigos programadores. espero tenga solución este problema
Hello, I am looking to have two custom indicators developed for integration into an Expert Advisor (EA): 1. Malaysian SNR (Support and Resistance) Indicator : This indicator should accurately identify and plot support and resistance levels based on Malaysian trading principles and methodologies. 2. Break of Structure Indicator : This indicator should detect and signal breaks in market structure, indicating potential
Hello there, I need a professional mt4 developer who can perfectly help me to backtest my mt4 trading strategy on these trading pairs, XAUUSD H1 PEPPERSTONE 1:200 LEVERAGE. The strategy would be provided once you bid to this task
Hello, I am looking for a professional who can assist me with the following tasks: Create a used replica of my trading setup from TradingView. Copy and configure this setup in my Tradovate account. This is exactly what I need. Your assistance would be greatly appreciated this is exactly what i want https://youtu.be/WOMA8Ift9r8?si=PPf0CHNrZkZ0InHN

Información sobre el proyecto

Presupuesto
30+ USD
IVA (19%): 5.7 USD
Total: 35.7 USD
Para el ejecutor
27 USD
Plazo límite de ejecución
de 1 a 2 día(s)