Ybkmlambo

MQL4 指标 专家

指定

//**************************************************************************//
//***                         ZZ NRP AA TT [x3]                            ***
//**************************************************************************//
#property copyright   "©  Tankk,  10  January  2017,  http://forexsystemsru.com/"
#property link        "http://forexsystemsru.com/indikatory-foreks/76901-delyus`-graalem.html"    //http://forexsystemsru.com/indikatory-foreks-f41/
#property description "Copyright © 2008, AleksD  -->  ''Казахский Удав''  :))"
#property description " * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * "
#property description "ZigZag предназначается для анализа движений цен с заданной амплитудой. Индикатор изображает только самые важные развороты, что значительно облегчает оценку графиков."
#property description "Стрелки показывают БАР, на котором последний Low/High полностью сформирован."
//#property version  "3.00"
//#property strict
#property indicator_chart_window
#property indicator_buffers 7
//-----
#property indicator_color1  Green   //LightCyan   //RoyalBlue   
#property indicator_color2  White   //LightCyan   //LightSteelBlue
#property indicator_color3  Red     //OrangeRed    //Gold
#property indicator_color4  White   //
#property indicator_color5  Red     //Lime
#property indicator_color6  RoyalBlue   //
#property indicator_color7  MediumOrchid     //Lime
//---
#property indicator_width1  1
#property indicator_width6  1
#property indicator_width7  1
//#property indicator_width4  0
//#property indicator_width5  0
//---
#property indicator_style1  2
#property indicator_style6  2
#property indicator_style7  2
//**************************************************************************//
//***                   Custom indicator ENUM settings                     ***
//**************************************************************************//
enum calcZZ { CloseClose, LowHigh, KazakhBoa};
enum drawZZ { NoZigZag, zzLINE, zzARROWS, zzFULL };
//**************************************************************************//
//***                Custom indicator input parameters                     ***
//**************************************************************************//

extern int               ZZHistory  =  864;
extern calcZZ          Calculation  =  KazakhBoa;
extern int                 ZZSpeed  =  12;
extern ENUM_MA_METHOD     MAMethod  =  MODE_LWMA;
extern int            ChannelWidth  =  0;
extern bool            ShowChannel  =  true;
extern drawZZ           ShowZigZag  =  zzFULL;  //ARROWS;  //NoZigZag;
extern int                   ZZGap  =  0,
                             ZZCodLO  =  168,  //218,  //233  //110
                             ZZCodUP  =  168,  //217,  //234  //111
                             ZZSize  =  2;
extern bool             ShowArrows  =  true;
extern int                  ArrGap  =  0,   //Дистанция от High/Low свечи
                            ArrCodUP  =  233,  //147,  116, 117, 234,   //226
                            ArrCodDN  =  234,   //181,  233,   //225
                            ArrSize  =  0;
extern string  ZIGZAG_ALERTS  =  "-----------------------------------------------------------------";  //
extern int               SIGNALBAR  =  0;
extern bool          AlertsMessage  =  true,   //false,
                     AlertsSound  =  true,   //false,
                     AlertsEmail  =  false,
                     AlertsMobile  =  false;
extern string            SoundFile  =  "news.wav";   //"stops.wav"   //"alert2.wav"   //"expert.wav"

//**************************************************************************//
//***                     Custom indicator buffers                         ***
//**************************************************************************//
double ZigZag[], ZZBottom[], ZZVertex[], ArrUP[], ArrDN[];
double MAUnder[], MAOver[];
int TimeBar=0;
string ZZNAME = "ZZ NRP AA TT ["+ZZSpeed+"]";
//**************************************************************************//
//***               Custom indicator initialization function               ***
//**************************************************************************//
int init()
  {
   IndicatorBuffers(7);
   IndicatorDigits(Digits);
   if(Digits==3 || Digits==5)
      IndicatorDigits(Digits-1);
//---- 7 распределенных буфера индикатора
   SetIndexBuffer(0,ZigZag);
   SetIndexBuffer(1,ZZBottom);
   SetIndexBuffer(2,ZZVertex);
   SetIndexBuffer(3,ArrUP);
   SetIndexBuffer(4,ArrDN);
   SetIndexBuffer(5,MAUnder);
   SetIndexBuffer(6,MAOver);
//---- настройка параметров отрисовки
   int ZZL=DRAW_NONE;
   if(ShowZigZag==1 || ShowZigZag==3)
      ZZL=DRAW_SECTION;
   SetIndexStyle(0,ZZL);
   int ZZA=DRAW_NONE;
   if(ShowZigZag==2 || ShowZigZag==3)
      ZZA=DRAW_ARROW;
   SetIndexStyle(1,ZZA,0,ZZSize);
   SetIndexArrow(1,ZZCodLO);
   SetIndexStyle(2,ZZA,0,ZZSize);
   SetIndexArrow(2,ZZCodUP);
   int ARR=DRAW_NONE;
   if(ShowArrows)
      ARR=DRAW_ARROW;
   SetIndexStyle(3,ARR,0,ArrSize);
   SetIndexArrow(3,ArrCodUP);
   SetIndexStyle(4,ARR,0,ArrSize);
   SetIndexArrow(4,ArrCodDN);
   int LNT=DRAW_NONE;
   if(ShowChannel)
      LNT=DRAW_LINE;
   SetIndexStyle(5,LNT);
   SetIndexStyle(6,LNT);
//---- значение 0 отображаться не будет
   SetIndexEmptyValue(0,0.0);
   SetIndexEmptyValue(1,0.0);
   SetIndexEmptyValue(2,0.0);
   SetIndexEmptyValue(3,0.0);
   SetIndexEmptyValue(4,0.0);
   SetIndexEmptyValue(5,0.0);
   SetIndexEmptyValue(6,0.0);
//---- отображение в DataWindow
   SetIndexLabel(0,"ZigZag ["+IntegerToString(ZZSpeed)+"]");
   SetIndexLabel(1,"ZZ Bottom");
   SetIndexLabel(2,"ZZ Vertex");
   SetIndexLabel(3,"Arrow BUY");
   SetIndexLabel(4,"Arrow SELL");
   SetIndexLabel(5,"MA Under ["+IntegerToString(ZZSpeed)+"]");
   SetIndexLabel(6,"MA Over  ["+IntegerToString(ZZSpeed)+"]");
//---- "короткое имя" для DataWindow и подокна индикатора +++ "уникальное имя индикатора"
   IndicatorShortName(ZZNAME);
//---//---//---
   return(0);
  }
//**************************************************************************//
//***              Custom indicator deinitialization function              ***
//**************************************************************************//
int deinit() { return(0); }
//**************************************************************************//
//***                 Custom indicator iteration function                  ***
//**************************************************************************//
int start()
  {
   int  w, limit;
   int counted_bars = IndicatorCounted();
   if(counted_bars < 0)
      return (-1);       //Стандарт-Вариант!!!
   if(counted_bars > 0)
      counted_bars--;
   limit = ZZHistory;
   if(ZZHistory==0)
      limit = Bars-counted_bars;;
//**************************************************************************//
   int ZagAA, ZagNN, zup, zdn;
   double ZZLL, ZZHH, BBHH, BBLL;
//---
   double MAGap=ChannelWidth*Point;
   if(Digits==3 || Digits==5)
      MAGap=ChannelWidth*Point*10;
   double GapZZ=ZZGap*Point;
   if(Digits==3 || Digits==5)
      GapZZ=ZZGap*Point*10;
   double GapAA=ArrGap*Point;
   if(Digits==3 || Digits==5)
      GapAA=ArrGap*Point*10;
//---
   for(w=limit; w>=0; w--)     //for (i=0; i<=ZZHistory; i++)   //
     {
      ZZVertex[w]=0;
      ZZBottom[w]=0;
      ArrUP[w]=0;
      ArrDN[w]=0;
      MAUnder[w]=0;
      MAOver[w]=0;
      //---   //enum calc   { CloseClose, LowHigh, KazakhBoa};
      if(Calculation==KazakhBoa)
        {
         ZZLL = Low[iLowest(NULL,0,MODE_LOW,ZZSpeed,w+1)];
         ZZHH = High[iHighest(NULL,0,MODE_HIGH,ZZSpeed,w+1)];
         //---
         if(Low[w]<ZZLL && High[w]>ZZHH)
           {
            ZagAA=2;
            if(ZagNN==1)
               zup=w+1;
            if(ZagNN==-1)
               zdn=w+1;
           }
         else
           {
            if(Low[w]<ZZLL)
               ZagAA=-1;
            if(High[w]>ZZHH)
               ZagAA=1;
           }
        }
      //---
      if(Calculation!=KazakhBoa)
        {
         ZZLL = iMA(NULL,0,ZZSpeed,0,MAMethod,PRICE_LOW,w) -MAGap;
         MAUnder[w]=ZZLL;
         ZZHH = iMA(NULL,0,ZZSpeed,0,MAMethod,PRICE_HIGH,w) +MAGap;
         MAOver[w]=ZZHH;
        }
      //---
      if(Calculation==1)
        {
         if(Low[w]<ZZLL && High[w]>ZZHH)
           {
            ZagAA=2;
            if(ZagNN==1)
               zup=w+1;
            if(ZagNN==-1)
               zdn=w+1;
           }
         else
           {
            if(Low[w]<ZZLL)
               ZagAA=-1;
            if(High[w]>ZZHH)
               ZagAA=1;
           }
        }
      //---
      if(Calculation==0)
        {
         if((Close[w]<ZZLL && Close[w+1]>ZZLL) && (Close[w]>ZZHH && Close[w+1]<ZZHH))
           {
            ZagAA=2;
            if(ZagNN==1)
               zup=w+1;
            if(ZagNN==-1)
               zdn=w+1;
           }
         else
           {
            if(Close[w]<ZZLL)
               ZagAA=-1;
            if(Close[w]>ZZHH)
               ZagAA=1;
           }
        }
      //**************************************************************************//
      if(ZagAA!=ZagNN && ZagNN!=0)
        {
         if(ZagAA==2)
           {
            ZagAA=-ZagNN;
            BBHH=High[w];
            BBLL=Low[w];
           }
         if(ZagAA==-1)
           {
            ZigZag[zup]=BBHH;     //High[zup]
            ZZVertex[zup]=BBHH+GapZZ;
            ArrDN[w]=High[w]+GapAA;
           }
         if(ZagAA==1)
           {
            ZigZag[zdn]=BBLL;    //Low[zdn]
            ZZBottom[zdn]=BBLL-GapZZ;
            ArrUP[w]=Low[w] -GapAA;
           }
         //---
         BBHH=High[w];
         BBLL=Low[w];
        }
      //---
      if(ZagAA==1)
        {
         if(High[w]>=BBHH)
           {
            BBHH=High[w];
            zup=w;
           }
        }
      if(ZagAA==-1)
        {
         if(Low[w]<=BBLL)
           {
            BBLL=Low[w];
            zdn=w;
           }
        }
      //---
      ZagNN=ZagAA;
      //**************************************************************************//
      //***                         ZZ NRP AA TT [x3]                            ***
      //**************************************************************************//
      if(AlertsMessage || AlertsEmail || AlertsMobile || AlertsSound)
        {
         string messageDN =(ZZNAME+" - "+Symbol()+", TF ["+IntegerToString(Period())+"]  <<<  ZZ Angle at the Vertex  ==  SELL");   //SSL Channel TT  //HA CLH 4C SHLD TT  //MA 3x3 TT
         string messageUP =(ZZNAME+" - "+Symbol()+", TF ["+IntegerToString(Period())+"]  >>>  ZZ Angle at the Bottom  ==  BUY");    //SSL Channel TT  //HA CLH 4C SHLD TT  //MA 3x3 TT
         //---
         if(TimeBar!=Time[0] && ArrDN[0+SIGNALBAR]!=0)
           {
            if(AlertsMessage)
               Alert(messageDN);
            if(AlertsEmail)
               SendMail(Symbol(),messageDN);
            if(AlertsMobile)
               SendNotification(messageDN);
            if(AlertsSound)
               PlaySound(SoundFile);   //"stops.wav"   //"news.wav"
            TimeBar=Time[0];
            //return(0);
           }
         //---
         else
            if(TimeBar!=Time[0] && ArrUP[0+SIGNALBAR]!=0)
              {
               if(AlertsMessage)
                  Alert(messageUP);
               if(AlertsEmail)
                  SendMail(Symbol(),messageUP);
               if(AlertsMobile)
                  SendNotification(messageUP);
               if(AlertsSound)
                  PlaySound(SoundFile);   //"stops.wav"   //"news.wav"
               TimeBar=Time[0];
               //return(0);
              }
        }
      //**************************************************************************//
     }  //*конец цикла* for (int w=ZZHistory; w>=0; w--)
//---//---//---
   return(0);
  }
//**************************************************************************//
//***                         ZZ NRP AA TT [x3]                            ***
//**************************************************************************//

附加的文件:

反馈

1
开发者 1
等级
(7)
项目
9
22%
仲裁
0
逾期
0
已载入
2
开发者 2
等级
(12)
项目
18
44%
仲裁
2
0% / 100%
逾期
3
17%
工作中
相似订单
Need proficient coder. skilled mql4 mql5 specialist to help with the optimization of my existing EA per asset, you must be well vast and ready for ongoing businesses as I am requesting optimization based various assets, kindly reach out if you can help with this exactly thanks
I need an experienced MQL4/MQL5 developer to optimize my existing EA on multiple assets (S&P500, Nasdaq, Tesla, Nvidia, Meta, GBPJPY) using the H4 timeframe. The EA is already built; the task is to optimize key parameters such as: SL, TP, Break-even SL Trailing profit & Partial take profit Number of trades open Market vs Pending orders Deliverables include optimized parameter sets for each asset, with reliable
Hello, I want to make candles on the same chart as the one in the picture so that the trend is very clear and I know the upward or downward trend in a filtered way and with the same filter of the clear chart in front of you in the picture This is not an indicator, but a chart like Japanese candlesticks, Renko, etc. I want this chart as shown in the picture in front of you. It is the best chart I want because it shows
Can someone modify the alert option on this indicator...the alert appears very late after a couple candles the arrow appeared. Thereafter convert the indicator to .mq5. The alert should appear immediately after the arrow appears and at the end of the expiry of the candle
I need developers that can create thinkorswim indicator or scanner Possibly a long term developer for my subsequent projects, I work with some clients that requires thinkorswim project created for them. Look to hire a TOS developer for my works
Hello expert developer how are you doing ? Please see my strategy on the video but right now I want to create only ATM as my PDF file showing please let me know how much would you charge me for the only ATM to work as my images showing Auto trade works like this i.e, (It will send automatically orders on every bar) https://ninza.co/&nbsp; please check this website and see if you can create similar ATM based on my
Please read carefully before apply. Budget is fixed So don't negotiate inbox Requiremtns: You need to fixed EA bugs in Copier and Modify telegram app. 1. Must be efficient in python and MQL5 abd MQL5 2. Issue 1 (MT4 AND MT5): Trade goes to pending when add entry price. 3. Issue 2 (MT4 AND MT5). Randomly coming updates expert tab. Update only come when trade open and trade close and BE (Move SL to entry) and Update
Hi, I’d like a bot to be made for Ninja Trader 8 to place and execute the trades but I want to use MT4 for the analysis and trade entry criteria. MT4 has different price data feeds so this strategy seems to work better when I use MT4 for the analysis to determine the entry. I’ve attached the strategy and rules and settings I want for the bot. Let me know if you think it will work to automate this strategy and do it
I’m seeking an experienced NinjaTrader / NinjaScript developer to help build a custom trading solution. The project includes: Creating a custom signal for NinjaTrader. Developing a separate indicator box showing green/red arrows based on direction. Using multiple timeframes: current chart, 5 min, 15 min, 30 min, and 1 hr. Automating the strategy with a reliable trading bot . Requirements: Proven experience with
I need small modification TRADINGVIEW INDICATOR(source of code 112 lines) , If it's possible please create a simple EA to backtest this strategy. Only experienced programmers please, not with 0 projects done

项目信息

预算
30+ USD

客户

所下订单1
仲裁计数0