Fix my arrow indicator

仕事が完了した

実行時間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%
類似した注文
I want someone who can turn my trading strategy in a bot.... To execute automated trades... Strategy is simply based on two moving averages, when they cross pass. Bot must be fully automated
I have the ea with me , can you please change the comment? i only got the ex4 file with me , please do chnage the comment only and i need you to put license and cloud lock to this ea can any body do it
Hello, I am looking for someone that can develop for me a trading bot, that can trade on Crash 500 and 1000, and also on Boom 500 and 1000. The bot must buy on Crash 500 and 1000 and sell on Boom 500 and 1000. The indicator we use is the Awesome Oscillator. The CRASH 500/1000 we scalp it by buying. We only place our ENTRY that is to BUY when the Awesome Oscillator changes from VALUE DOWN to VALUE UP and by changing I
Hi there, I need a profitable MT5 trading robot with confirmed profitable results. It can be for any major pair, I just need a profitable bot, on autopilot. If you have a profitable bot, please contact me. And if possible, will need to test it for sometime before I purchase it
1. I want function that will use the totalBuyLots and totalSellLots to place trades when there is reverse trade direction. For example, if there is an open trade of buy, 0.1, 0.1, 0.1, then if the trade direction change to sell, meaning a sell trad is opened, then the totalBuyLots which now 0.3 will be used to open the sell of 0.3 lots. Same if a sell trade is opened first, then total lots will be use d when
Please make a new pending order software and add it to the each of the Ea's that I would send the source codes. If any of the settings of the usual pattern of the Ea's have there in the EA's are not clear to you, then I will explain that part
I wan to oder a product for copytrade online like that : - master on mt4 - slaver (copier) by python that mean MT4 open an oder, python will open the same on client account => python will click the mouse then results will show manual (not expert) value : autolot (ratio with receiver balance) - fixed lot - Smart ratio (ratio with master account) trade on many pairs get source for manage license hide everything that
Hello everyone, I need a simple Hedging EA that won't open opposing trades right away. The key is to avoid Hedging with the aim to lock in a price/spread arbitrage. If you already have a profitable EA that is similar and that has result I would be more than welcome to take a look at it or if you can build one for me I am more than welcome to pay for it. It must be an MT5 EA
Spike EA 41+ USD
Hi coder in the house i need an experience coder who can make two indicators into EA The ea will open on joint signal and also on single indicator signal details of open order strategy and closing will be discussed inside THE ea will have able to work on all asset on mt5 platform, Money Mgt/Manual Lot size, Auto Stop lot etc Trailing , Breakeven and profit locked and partial close etc Trading Days, and others feature
Temple EA 30 - 50 USD
The goal of this project is to catch positions which are moving in the right direction, while locking / hedging the ones that do not. Positions are only opened when price has been moving according to the predominant trend, and wins are used to buy down existing locked positions as required. Please see the attached files for full explanation

プロジェクト情報

予算
30+ USD
VAT(付加価値税) (19%): 5.7 USD
合計: 35.7 USD
開発者用
27 USD
締め切り
最低 1 最高 2 日