Fix my arrow indicator

MQL4 指标 专家

工作已完成

执行时间11 分钟
客户反馈
good job, if it took only 1 minute for him.

指定

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.



反馈

1
开发者 1
等级
(878)
项目
1391
67%
仲裁
117
32% / 42%
逾期
215
15%
空闲
2
开发者 2
等级
(338)
项目
532
32%
仲裁
23
65% / 9%
逾期
15
3%
空闲
3
开发者 3
等级
(1119)
项目
1421
62%
仲裁
21
57% / 10%
逾期
43
3%
空闲
相似订单
Make a horizontal line for the following. Opening candle ( Keep a solid line across the entire chart for the day. Sessions Opening candle ( Keep a solid line across just the time frame specified only. Then when it restarts, start a new line) 15 mins 30 mins 1 hr 4 hr Daily Weekly Monthly Example —————————————————————————————————————— Entries Order Type Buy Sell Both Set a pip count for entry. Example Long
Need an expert to create an EA based on my strategy for any broker,fast execution of opening and closing trade,also with a condition for take profit,lot size isn't fixed,it should be easy to change without editing the code for a no programmer
Hello there, I have a functional EA that I need a modification done to. Previous developer is overloaded with work and has been dragging his feet. Basically what I need is a modification to the Auto Lot option. Currently you can set a lot size per x amount of account balance and it will auto trade readjusting the lots based on account balance. What I am looking for is a modification that allows me to specify the
I need a robot/Ea that can open pending orders based on th market price for SELL/BUY fora given pair. It needs a few configurable parameters like: MARKET_PRICE --> As described, it is the entry point from where to create an initial marker for the orders. (The real market price for a PAIR) INITIAL_GAP - this is a number in pips that, in addition to the MARKET price, becomes the first real entry point for the first
I already have a Trading View EA for Renko Candles with most of what is required. However i am looking for it to be modified with a few extra options. This is what I am looking for as a whole. Rules Trades executed on Renko Candles on Trading View Only allow one trade at a time. Buy/Long trade closes when Sell/Short trade opens, and visa versa. Ability to exclude certain days from opening trades. E.g. no trades to
Please note that my budget is for both mt4 and mt5 platforms The EA should have 1. An option that I can change it parameters, that's the period, method and application 2. The EA should sell when on every bullish candle that closes under the MA 3. The EA should buy on every bearish candle that forms Above the EA. It's should close trades on reverse cross. I mean when it's in a buy trade and crosses the MA for a sell
I have working MT4 and MT5 example program code using pipes via importing kernell32.dll in MT5 to receive transactional messages sent from another MT4 instance running. Most of the time it works fine. But intermittently I get an ‘Access violation’ error generated showing in the Experts tab of MT5. It fails to read the message sent from MT4 and does not trap the error. Also, when I try it on a different VPS computer -
A Hedge EA 50+ USD
Hi I need someone to develop a Hedge EA with specific actions once the maximum number of trades is reached before TP The input would determine the maximum number of hedge before the specific actions take place As an example if the maximum number of of trades is 3 and the hedge mutiplier is 3 Initial trade(Buy): 1 lots Hedge (Sell): 3 lots (1x3) Hedge (Buy): 9 lots (3x3) Then the maximum trades number is reached - no
Helo Geeks i need an experienced developer of forex Eas who can make my purchased EA that has the activation llicense to run to my mt5. I have purchased this EA to someone on telegram but he just not responding to me to give me activation license ,but i believe there are geeks here who can make it run to my mt5. i will share more details on that
Am nevoie de o conversie a unui EA din mql4 in mql5. La final sa fie testata, compilata si rezultatul sa nu aiba erori. Modificarea parametrilor sa se faca dint-un fisier cu extensia txt. Am eu modelul Hi. I need a conversion of an EA from mql4 to mql5. At the end, it should be tested, compiled and the result should have no errors. Modifying the parameters should be done from a file with the extension txt. I have the

项目信息

预算
30+ USD
VAT (19%): 5.7 USD
总计: 35.7 USD
开发人员
27 USD
截止日期
 1  2 天