Fix my arrow indicator

MQL4 Indikatoren Experten

Auftrag beendet

Ausführungszeit 11 Minuten
Bewertung des Kunden
good job, if it took only 1 minute for him.

Spezifikation

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.



Bewerbungen

1
Entwickler 1
Bewertung
(878)
Projekte
1391
67%
Schlichtung
117
32% / 42%
Frist nicht eingehalten
215
15%
Frei
2
Entwickler 2
Bewertung
(338)
Projekte
531
32%
Schlichtung
23
65% / 9%
Frist nicht eingehalten
15
3%
Frei
3
Entwickler 3
Bewertung
(1118)
Projekte
1420
62%
Schlichtung
21
57% / 10%
Frist nicht eingehalten
43
3%
Frei
Ähnliche Aufträge
I'm in need of an experienced Meta 4 expert who can solve two specific problems and improve the current Martingale and Pyramid strategies within my EA. - Bug Fix: The EA is currently facing an issue where orders are not being executed correctly. This is causing a signal matching error and leading to potential losses. The primary task is to resolve this bug and ensure the EA executes trades accurately and as intended
I need an experienced developer who can turn my simply strategy to an EA on MT5 and MT4, will be using two EMAs and MACD and a risk management setting, please message me on time so we start work on it, waiting for you
Dear expert developer I have been trading futures and mainly indices for about 5 years and would now like to automate my trading strategy with the help of an intelligently set up bot. My strategy, which would have to be implemented, is mainly based on the following indicators: CCI / RSI / MACD and Stochastic I analyze the market according to volume peaks, the daily highs and lows and the prominent points and look for
Tim: //+------------------------------------------------------------------+ //| ggjhjh.mq4 | //| Copyright 2023, MetaQuotes Ltd. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property indicator_chart_window #property indicator_buffers 1
I need a developer that can turn my strategy to an EA, We will be using Fib, some indicators and a risk management settings, please message me on time so we start work on it, waiting for you
hello developers.i am currently looking for a simple line chart custom indicator,whenever the line char makes a horizontal line and the next bar closes bullish after the horizontal line an up arrow should draw and if we get a bearish bar a down arrow should draw...the indicator should also be able to send out all types of alerts.thank you
Hello I want to change my TREND indicator. The conditions for the alerts do not need to be changed, the indicator works very very well. I would like to add visible Stop and Tp level lines. Attached is the source code and text file. If you think you could do this job, let me know. Thanks in advance
i have an existing EA that takes trades when you reach a preset value of Demarker ( or RSI , or MACD, or combination of those 3) it buys at oversold zones it sells at overbought zones. I currently have an option to take more than one trade but it is not a typical martingale style. it just takes the same trade every certain distance that you set. i need someone to modify that and let EA make martingale trades with a
So looking to prevent multiple trades opening at the same time and fine a way to remove the draw down spikes that i see happening when optimising and converting it mt5 and what's your budget for this
I need an experienced developer to build the Cypher pattern scanner. Cypher pattern is a Harmonic pattern which consists of 5 legs (X-A-B-C-D), I will provide rules and conditions for the pattern and Scanner. Should be able to scan multi timeframes and multi patterns, create alert based on set conditions and should draw pattern on timeframe where pattern was discovered. Dashboard to display identified pattern based

Projektdetails

Budget
30+ USD
MwSt (19%): 5.7 USD
Insgesamt: 35.7 USD
Für die Entwickler
27 USD
Ausführungsfristen
von 1 bis 2 Tag(e)