Fix my arrow indicator

MQL4 Indicators Experts

Job finished

Execution time 11 minutes
Feedback from customer
good job, if it took only 1 minute for him.

Specification

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.



Responded

1
Developer 1
Rating
(878)
Projects
1390
67%
Arbitration
117
32% / 42%
Overdue
215
15%
Working
2
Developer 2
Rating
(333)
Projects
523
32%
Arbitration
23
65% / 9%
Overdue
15
3%
Free
3
Developer 3
Rating
(1118)
Projects
1420
62%
Arbitration
21
57% / 10%
Overdue
43
3%
Free
Similar orders
Unicorn model entry for boom and crash only to catch spikes and crashes... Selling crash and buying boom Please have knowledge about boom and crash before applying Also demo to confirm uick selection
This is a Ready Made grid Automatic EA 1 Need some bug fixing and little modification. 1. This Grid EA has some bug like -After MT4 Restart the EA place 4-5 random trade at the same strike price without any logic. plz fix this bug 2. add RSI for buy sell https://drive.google.com/file/d/1f1_MJR2KoKCAPIlNohvnhaC0NqC6bQ2T/view?usp=sharing Here is a short video. what kind of problem i face
I'm looking for someone who will take the source code of an existing trading bot and make some adjustments and tweaks to it. Mostly is about changing the UI and basic default parameters. No need to change the algorithm itself. The result must be a file that I can install as any other expert advisor in the MT4 terminal. For now I can share the more detailed task in my video
Hello I have purchased an EA from MQL market. The name of the EA is "Eternal Profit" and it works on MT4 only. Its available in market and you can still find it to run DEMO. Though I have purchased the EA but its not working properly for XAUUSD pair owing to some inherent programming issues in the EA. The same EA is working good on currency pair. The key issue is the decimal place in in the pair. Its designed for
Add alerts, pop up, sound, notifications and email when threshold Slope level 1 and slope level 2 ( and their negatives is reached). Alerts should change as the Slope level variable is changed and should alert once or have a one hour time restriction for multiple occurrences. Thanks
I have a dropservicing agency (service intermediation) and I'm looking for a professional to configure the Force Value 1.00 indicator in MetaTrader 5 from the Hanteck brokerage. I need the configuration to meet the operating requirements in all markets (forex, stocks, crypto, etc.), allowing day trade operations following the market trend, using the M15 chart and including the Stop Loss functionality." Required
I want a bot developer deriv He has experience and I want a profitable robot, the profit is higher than the loss Or I want someone to sue with me. I have a profitable robot, but I want another robot or to improve another robot I have
Where/How to request Oanda retail open positions? I've tried through with a Oanda API and requesting this way; url= " https://api-fxpractice.oanda.com/v3/instruments/AUD_USD/positionBook " but I get result different results (see attached pic). If someone is able to replicate/ make some similar to this indicator, im willing to pay
I would fix the speed and accurancy of indicator in pinescript for tradingview it's slow and doesn't have a good accurancy, is there a way to fix it? thank you
Create a MT5 EA based on certain strategy creating a proprietary automatic trading strategy for our private investment portfolio. This is a unique opportunity to work on an exclusive project that demands creativity, strategic thinking, and a deep understanding of financial markets. Project Description: We are looking for a developer to design and implement an advanced automatic trading strategy tailored to our

Project information

Budget
30+ USD
VAT (19%): 5.7 USD
Total: 35.7 USD
For the developer
27 USD
Deadline
from 1 to 2 day(s)