Fix my arrow indicator

MQL4 Indicateurs Experts

Tâche terminée

Temps d'exécution 11 minutes
Commentaires du client
good job, if it took only 1 minute for him.

Spécifications

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.



Répondu

1
Développeur 1
Évaluation
(878)
Projets
1391
67%
Arbitrage
117
32% / 42%
En retard
215
15%
Gratuit
2
Développeur 2
Évaluation
(338)
Projets
532
32%
Arbitrage
23
65% / 9%
En retard
15
3%
Gratuit
3
Développeur 3
Évaluation
(1119)
Projets
1421
62%
Arbitrage
21
57% / 10%
En retard
43
3%
Gratuit
Commandes similaires
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 Everyone, Herewith sending the existing Trading view Indicator, and required the same Indicator with all display into MT5. Trading view Indicator Screen shot attached for more reference. Price is negotiable
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
Hello, i need professionalthat can help me handle this, I want used replica to of my trading From trading view And copy to my tradovate this is exactly i need https://youtu.be/WOMA8Ift9r8?si=PPf0CHNrZkZ0InHN

Informations sur le projet

Budget
30+ USD
TVA (19%): 5.7 USD
Total: 35.7 USD
Pour le développeur
27 USD
Délais
de 1 à 2 jour(s)