Try this. It will check for difference and do a trend change alert as Buy or Sell as before and a difference alert for Buy continue or Sell continue.acerdufer wrote: Sat May 20, 2017 5:36 am Hi Mrpip thank you very much for wanting to help me no matter the trend I only want the indicator to warn me when buyers exceed in volume the x point sellers
Re: Coding Help
312Thank you very much Mrpip, the markets are currently closed. I am waiting on Monday, but it is possible to remove the function of an alert when the trend changes and only put an alert on this indicator for the difference?
					
															
															
					Re: Coding Help
313Is there a zone indicator for this indicator? What I mean is that the background of chart changes with the colour of the indicator. 
To be used with renko.
Thanks
TEAMTRADER
					
															
																
										
					To be used with renko.
Thanks
TEAMTRADER
Re: Coding Help
314The trend change requires the difference to be met and is the first of the series of alerts for the trend direction.acerdufer wrote: Sat May 20, 2017 8:11 pm Thank you very much Mrpip, the markets are currently closed. I am waiting on Monday, but it is possible to remove the function of an alert when the trend changes and only put an alert on this indicator for the difference?
Re: Coding Help
316Can someone help me put an alert to this indicator when x point exceeds that difference? please 
					
															
															
					Re: Coding Help
317Can an encoder help me here I need help I would only put two message alert on two indicator first and a ticks volume indicator the second of volatility for the first I would only like it And a function or I can enter a difference between seller and buyer and receive an alert whenever this difference and exceed for example the sellers have 100 point buyers 150 I receive an alert has every 50 difference, for the second I would like Just a message alert and not sound only message help me please sorry for my english i am french
					
															
																Re: Coding Help
318I have this Deltaforce Indicator in ex4 format and it works perfectly.  But the MQ4 when compiled will only show the positive values.  I have been trying to find a working copy but found several references to this same phenomenon.  It has been corrected by mladen but it is impossible to download because of some error.
Would it be possible to correct this version or post a working copy please??
					
															
															
					Would it be possible to correct this version or post a working copy please??
Code: Select all
//+--------------------------------------------------------------------------------------+
//|                                                                            Delta Force.mq4 |
//|                      Copyright © 2004, MetaQuotes Software Corp. |
//|                                                                                                          |
//+--------------------------------------------------------------------------------------+
#property  copyright "Copyright © 2004, MetaQuotes Software Corp."
#property  link      --------------------------------------------------
//---- indicator settings
#property  indicator_separate_window
#property  indicator_buffers 2
#property  indicator_color1  MediumSeaGreen
#property  indicator_color2  Crimson
//---- indicator buffers
double ind_buffer1[];
double ind_buffer2[];
double ind_buffer3[];
//----
double CB = 0, valueh1 = 0, valuel = 0, valueh = 0, value = 0, price = 0, hi = 1, lo = 1;
double resh = 0, resl = 0, deltah = 0, deltal = 0;
int CurrentBar=0;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- 1 additional buffer used for counting.
   IndicatorBuffers(3); 
//---- drawing settings
   SetIndexStyle(0, DRAW_HISTOGRAM, STYLE_SOLID, 3);
   SetIndexStyle(1, DRAW_HISTOGRAM, STYLE_SOLID, 3);
   IndicatorDigits(MarketInfo(Symbol(), MODE_DIGITS) + 1);
   SetIndexDrawBegin(0, 34);
   SetIndexDrawBegin(1, 34);
//---- 3 indicator buffers mapping
   if(!SetIndexBuffer(0, ind_buffer1) &&
      !SetIndexBuffer(1, ind_buffer2) &&
      !SetIndexBuffer(2, ind_buffer3))
      Print("cannot set indicator buffers!");
//---- name for DataWindow and indicator subwindow label
   IndicatorShortName("DeltaForce");
   SetIndexLabel(0, "DF1");
   SetIndexLabel(1, "DF2");       
//---- initialization done
   return(0);
  }
//+------------------------------------------------------------------+
//| Delta Force                                                      |
//+------------------------------------------------------------------+
int start()
  {
   for(CB = 0 ; CB <= Bars ; CB++)
     {
       CurrentBar = Bars - CB;
       if(Close[CurrentBar] > Close[CurrentBar+1]) 
         {
           resl = 0;
           if(resh == 0)  
               deltah = 0;
           deltah = deltah + (Close[CurrentBar] - Close[CurrentBar+1]);
           // valueh =  High[CurrentBar];
           resh=  1;
         }
       if(resh == 0) 
           deltah = 0;
       ind_buffer1[CurrentBar] = deltah;
       if(Close[CurrentBar] < Close[CurrentBar+1] )
         {
           resh = 0;
           if(resl == 0) 
               deltal = 0;
           deltal = deltal + (Close[CurrentBar+1] - Close[CurrentBar]);
           //valuel = Low[CurrentBar];
           resl= 1;
         }
       if(resl == 0 ) 
           deltal=0;
       ind_buffer2[CurrentBar] = deltal;
     }
//---- done
   return(0);
  }
//+------------------------------------------------------------------+Re: Coding Help
320These are warnings - not errorsArina wrote: Sun May 21, 2017 4:57 pm Помогите исправить индикатор. При компиляции выдает ошибки.Спасибо
and do not effect the working behavior of the indicator
Indicator is just a tool.
Use it only if it can benefit you. Leave it if you don't know how to use it optimally.
					
					
																													
																						
					Use it only if it can benefit you. Leave it if you don't know how to use it optimally.