FOREX MT4 INDICATORS DOWNLOAD
  • Donate to the operator
  • MT4 INDICATORS A
  • MT4 INDICATORS B
  • MT4 INDICATORS C
  • MT4 INDICATORS D
  • MT4 INDICATORS E
  • MT4 INDICATORS F
  • MT4 INDICATORS G
  • MT4 INDICATORS H
  • MT4 INDICATORS I
  • MT4 INDICATORS J
  • MT4 INDICATORS K
  • MT4 INDICATORS L
  • MT4 INDICATORS M
  • MT4 INDICATORS N
  • MT4 INDICATORS O
  • MT4 INDICATORS P
  • MT4 INDICATORS Q
  • MT4 INDICATORS R
  • MT4 INDICATORS S
  • MT4 INDICATORS T
  • MT4 INDICATORS U
  • MT4 INDICATORS V
  • MT4 INDICATORS W
  • MT4 INDICATORS X
  • MT4 INDICATORS Y
  • MT4 INDICATORS Z
  • MT4 INDICATORS NUM
  • MT4 INDICATORS SIGN

BykovTrend_Sig alert.mq4

BykovTrend_Sig alert.mq4 download link will appear after 10 seconds.


Icon

BykovTrend_Sig alert.mq4

1 file(s) 3.87 KB
Download


BykovTrend_Sig alert.mq4 Programming source code.

//+------------------------------------------------------------------+
//| BykovTrend_Sig.mq4 
//| Ramdass - Conversion only
//+------------------------------------------------------------------+

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Magenta
#property indicator_color2 Aqua
#property indicator_width1 0
#property indicator_width2 0

//---- input parameters
extern int RISK=3;
extern int SSP=9;
extern int CountBars=500;

extern string Alert;
extern bool UseSound = true; 
extern bool AlertSound = true; 
extern string SoundFileBuy = "alert2.wav";
extern string SoundFileSell = "email.wav";
extern bool SendMailPossible = false;
extern int SIGNAL_BAR=1;
bool SoundBuy = false;
bool SoundSell = false;

extern string Arrow;
extern int _High_ = 234;
extern int _Low_ = 233;
extern int _Distance_ = 5;

//---- buffers
double val1[];
double val2[];

//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
   string short_name;
//---- indicator line
   IndicatorBuffers(2);
   SetIndexStyle(0,DRAW_ARROW);
   SetIndexArrow(0,_High_);
   SetIndexStyle(1,DRAW_ARROW);
   SetIndexArrow(1,_Low_);
   SetIndexBuffer(0,val1);
   SetIndexBuffer(1,val2);

//----
   return(0);
  }
//+------------------------------------------------------------------+
//| BykovTrend_Sig                                                   |
//+------------------------------------------------------------------+
int start()
  {   
   SetIndexDrawBegin(0,Bars-CountBars+SSP+1);
   SetIndexDrawBegin(1,Bars-CountBars+SSP+1);
   int i,counted_bars=IndicatorCounted();
   int K;
   bool uptrend,old;
   double wpr;
   
   K=33-RISK;
//----
   if(Bars<=SSP+1) return(0);
//---- initial zero
   if(counted_bars=SSP+1) i=CountBars-counted_bars-1;
   while(i>=0)
     {
     
   wpr=iWPR(NULL,0,SSP,i);
   val1[i]=0.0; val2[i]=0.0;
   if (wpr<-100+K) uptrend=false;
   if (wpr>-K) uptrend=true;
   if ((! uptrend==old) && uptrend==true) {val2[i]=Low[i]-_Distance_*Point;}
   if ((! uptrend==old) && uptrend==false) {val1[i]=High[i]+_Distance_*Point;}
   old=uptrend;
      
      i--;
     }
     
string  message  = StringConcatenate(WindowExpertName() +""," -"," ","BUY"," -"," ",Symbol()," -"," ",Period()," ","-"," " ,TimeToStr(TimeLocal(),TIME_SECONDS)); 
string  message2 = StringConcatenate(WindowExpertName() +""," -"," ","SELL"," -"," ",Symbol()," -"," ",Period()," ","-"," " ,TimeToStr(TimeLocal(),TIME_SECONDS)); 
    //     //                              //     //
if (val2[SIGNAL_BAR] != EMPTY_VALUE && val2[SIGNAL_BAR] != 0 && SoundBuy)
{
SoundBuy = False;
if (UseSound) PlaySound (SoundFileBuy);
if(AlertSound){         
Alert(message);                             
if (SendMailPossible) SendMail(Symbol(),message); 
}              
}                 //     //                              //     //
if (!SoundBuy && (val2[SIGNAL_BAR] == EMPTY_VALUE || val2[SIGNAL_BAR] == 0)) SoundBuy = True;  
    //       //                              //       //
if (val1[SIGNAL_BAR] != EMPTY_VALUE && val1[SIGNAL_BAR] != 0 && SoundSell)
{
SoundSell = False;
if (UseSound) PlaySound (SoundFileSell); 
if(AlertSound){                    
Alert(message2);             
if (SendMailPossible) SendMail(Symbol(),message2); 
}            
}                  //       //                              //       //
if (!SoundSell && (val1[SIGNAL_BAR] == EMPTY_VALUE || val1[SIGNAL_BAR] == 0)) SoundSell = True; 
     
   return(0);
  }
//+------------------------------------------------------------------+
BuySel Alert.mq4 Candle Signal AA CM+FS+TT.mq4

Related Posts

METATRADER4B

BuySel Alert.mq4

METATRADER4B

BUTTONS_SW_TRO_MODIFIED.mq4

METATRADER4B

BUOVB_BEOVB 1.mq4

METATRADER4B

boSugarman Signals_v3 (1).ex4

METATRADER4B

Bollinger band bars.mq4

METATRADER4B

BO_NRP.mq4

METATRADER4B

BKMGC2.ex4

METATRADER4B

BigReversalSystem_V1.0.ex4

METATRADER4B

Bigger TF Candles WeekDay KB+TT.mq4

METATRADER4B

BetterVolume 1.5 new with Alerts mod.mq4

METATRADER4B

BetterVolume 1.4+Alert.mq4

METATRADER4B

besttrendindicator.ex4

How to use this site.
  1. Subscribe YouTube
  2. Subscribe Facebook
  3. Subscribe Instagram
  4. Download MT4
  5. Watch Youtube Video
  6. Downliad Indicator and Try Trading
  7. Donate to the operator

Recent News

  • EATA pollan vers mod 2_2 (mq4).mq4
  • EATA _Alert2.mq4
  • Wpr (alerts + arrows).mq4
  • WmiVol.mq4
  • wlxFractals.mq4

Donate