TRUE Forex

Просмотр кода форекс индикатора !XPS v7 PRICELINE.mq4

// +------------------------------------------------------------------------------------------+ //
// |    .-._______                           XARD777                            _______.-.    | //
// |---( )_)______)                 Knowledge of the ancients                  (______(_( )---| //
// |  (    ()___)                              \¦/                               (___()    )  | //
// |       ()__)                              (o o)                               (__()       | //
// |--(___()_)__________________________oOOo___(_)___oOOo___________________________(_()___)--| //
// |______|______|______|______|______|______|______|______|______|______|______|______|______| //
// |___|______|_Cam__|______|______|______|______|______|______|______|Ismael|______|______|__| //
// |______|______|______|______|______|______|__Big_Joe____|______|______|______|______|______| //
// |___|______|______|______|_Mundu|______|______|______|______|______|______|______|______|__| //
// |______|__cja_|______|______|______|__Hendrik____|______|______|______|______|______|______| //
// |___|______|______|______|______|______|______|______|Tzuman|______|______|______|______|__| //
// |______|______|______|Hercs_|______|______|______|______|______|______|Joy22_|______|______| //
// |___|______|______|______|______|______|___Poruchik__|______|______|______|______|______|__| //
// |______|___Pava_the_Clown___|______|______|______|______|__Leledc_____|______|______|_Xard_| //
// |                                                                                     2011 | //
// |                 File:     !XPS v8 PRICELINE.mq4                                          | //
// | Programming language:     MQL4                                                           | //
// | Development platform:     MetaTrader 4                                                   | //
// |          End product:     THIS SOFTWARE IS FOR FOREX TRADERS ONLY                        | //
// |                                                                                          | //
// |                                                                                          | //
// |     Online Resources:     www.Forex-TSD.com                                              | //
// |                           www.2bgoogle.com/forex4.html                                   | //
// |                           www.forexstrategiesresources.com                               | //
// |                           www.traderszone.com                                            | //
// |                           http://fxcoder.ru/indicators                                   | //
// |                           www.worldwide-invest.org/                                      | //
// |                           http://indo-investasi.com                                      | //
// |                                                                                          | //
// |                                                                                          | //
// |                                                                                          | //
// |                                                                                          | //
// |                                                                                          | //
// |                                                           [Xard777 Proprietory Software] | //
// +------------------------------------------------------------------------------------------+ //

#property indicator_chart_window
#property indicator_buffers 3
#property indicator_color1 DodgerBlue
#property indicator_width1 3
#property indicator_color2 Yellow
#property indicator_color3 Yellow
#property indicator_width3 3

int            gi_76                = 16;
int            gi_80                = 0;
int            g_ma_method_84       = MODE_LWMA;
int            g_applied_price_88   = PRICE_CLOSE;

double         gd_92                = 2.0;
bool           arrow                = false;
int            gi_unused_104        = 48;
int            gi_unused_108        = 38;

bool           gi_112               = FALSE;
bool           gi_116               = FALSE;
bool           gi_120               = FALSE;
bool           gi_124               = FALSE;

double         g_ibuf_128[];
double         g_ibuf_132[];
double         g_ibuf_136[];
double         g_ibuf_140[];

int            gi_144;
string         gs_148;
int            g_time_156           = 0;

string GetTimeFrameStr() {
   string l_timeframe_4;
   switch (Period()) {
   case PERIOD_M1:
      l_timeframe_4 = "M1";
      break;
   case PERIOD_M5:
      l_timeframe_4 = "M5";
      break;
   case PERIOD_M15:
      l_timeframe_4 = "M15";
      break;
   case PERIOD_M30:
      l_timeframe_4 = "M30";
      break;
   case PERIOD_H1:
      l_timeframe_4 = "H1";
      break;
   case PERIOD_H4:
      l_timeframe_4 = "H4";
      break;
   case PERIOD_D1:
      l_timeframe_4 = "D1";
      break;
   case PERIOD_W1:
      l_timeframe_4 = "W1";
      break;
   case PERIOD_MN1:
      l_timeframe_4 = "MN1";
      break;
   default:
      l_timeframe_4 = Period();
   }
   return (l_timeframe_4);
}



int init() {
   IndicatorBuffers(4);
   if (!SetIndexBuffer(0, g_ibuf_128) && !SetIndexBuffer(1, g_ibuf_132) && !SetIndexBuffer(2, g_ibuf_136) && !SetIndexBuffer(3, g_ibuf_140)) Print("cannot set indicator buffers!");
   if (arrow) {
      SetIndexStyle(0, DRAW_ARROW);
      SetIndexStyle(1, DRAW_ARROW);
      SetIndexStyle(2, DRAW_ARROW);
      SetIndexArrow(0, 1);
      SetIndexArrow(1, 1);
      SetIndexArrow(2, 1);
   } else {
      SetIndexStyle(0, DRAW_LINE);
      SetIndexStyle(1, DRAW_LINE);
      SetIndexStyle(2, DRAW_LINE);
   }
   
   gi_144 = gi_76 + MathFloor(MathSqrt(gi_76));
   
   SetIndexDrawBegin(0, gi_144);
   SetIndexDrawBegin(1, gi_144);
   SetIndexDrawBegin(2, gi_144);
   
   IndicatorDigits(MarketInfo(Symbol(), MODE_DIGITS) + 1.0);
   IndicatorShortName("Trend(" + gi_76 + ")");
   SetIndexLabel(0, "Trend");
   
   gs_148 = Symbol() + " (" + GetTimeFrameStr() + "):  ";
   return (0);
}



int start() {
   double l_ima_on_arr_20;
   int li_8 = IndicatorCounted();
   if (li_8 < 1) {
      
      for (int li_4 = 1; li_4 <= gi_144; li_4++) g_ibuf_140[Bars - li_4] = 0;
      for (li_4 = 1; li_4 <= gi_76; li_4++) {
         
         g_ibuf_128[Bars - li_4] = 0;
         g_ibuf_132[Bars - li_4] = 0;
         g_ibuf_136[Bars - li_4] = 0;
      }
   }
   
   if (li_8 > 0) li_8--;
   
   int li_0 = Bars - li_8;
   
   for (li_4 = 0; li_4 < li_0; li_4++) g_ibuf_140[li_4] = 2.0 * iMA(NULL, 0, MathFloor(gi_76 / gd_92), gi_80, g_ma_method_84, g_applied_price_88, li_4) - iMA(NULL, 0, gi_76, gi_80, g_ma_method_84, g_applied_price_88, li_4);
   
   double l_ima_on_arr_12 = iMAOnArray(g_ibuf_140, 0, MathFloor(MathSqrt(gi_76)), 0, g_ma_method_84, 0);
   
   for (li_4 = 1; li_4 < li_0; li_4++) {
      l_ima_on_arr_20 = iMAOnArray(g_ibuf_140, 0, MathFloor(MathSqrt(gi_76)), 0, g_ma_method_84, li_4);
      if (l_ima_on_arr_20 > l_ima_on_arr_12) {
         
         g_ibuf_128[li_4] = EMPTY_VALUE;
         g_ibuf_132[li_4] = EMPTY_VALUE;
         g_ibuf_136[li_4] = l_ima_on_arr_20;
         g_ibuf_136[li_4 - 1] = l_ima_on_arr_12;
      
      } else {
         
         if (l_ima_on_arr_20 < l_ima_on_arr_12) {
            g_ibuf_128[li_4] = l_ima_on_arr_20;
            g_ibuf_128[li_4 - 1] = l_ima_on_arr_12;
            g_ibuf_132[li_4] = EMPTY_VALUE;
            g_ibuf_136[li_4] = EMPTY_VALUE;
         
         } else {
            
            g_ibuf_128[li_4] = -1;
            g_ibuf_132[li_4] = l_ima_on_arr_20;
            g_ibuf_136[li_4 - 1] = l_ima_on_arr_12;
            g_ibuf_136[li_4] = -1;
         }
      }
      
      if (gi_112) {
         if (l_ima_on_arr_20 < l_ima_on_arr_12) {
            if (!gi_120) {
               if (BarChanged()) {
                  if (gi_116) {
                  }
               }
               gi_120 = TRUE;
               gi_124 = FALSE;
            }
         }
        
       if (l_ima_on_arr_20 > l_ima_on_arr_12) {
          if (!gi_124) {
             if (BarChanged()) {
                if (gi_116) {
                }
              }
              
              gi_124 = TRUE;
              gi_120 = FALSE;
            }
         }
      }
      
      l_ima_on_arr_12 = l_ima_on_arr_20;
   }
   
   return (0);
}


bool BarChanged() {
   if (g_time_156 != Time[0]) {
      g_time_156 = Time[0];
      return (TRUE);
   }
   
   return (FALSE);
}
// ------------------------------------------------------------------------------------------ //
//                                     E N D   P R O G R A M                                  //
// ------------------------------------------------------------------------------------------ //
/*                                                         
                                        ud$$$**BILLION$bc.                          
                                    u@**"        PROJECT$$Nu                       
                                  J                ""#$$$$$$r                     
                                 @                       $$$$b                    
                               .F                        ^*3$$$                   
                              :% 4                         J$$$N                  
                              $  :F                       :$$$$$                  
                             4F  9                       J$$$$$$$                 
                             4$   k             4$$$$bed$$$$$$$$$                 
                             $$r  'F            $$$$$$$$$$$$$$$$$r                
                             $$$   b.           $$$$$$$$$$$$$$$$$N                
                             $$$$$k 3eeed$$b    XARD777."$$$$$$$$$                
              .@$**N.        $$$$$" $$$$$$F'L $$$$$$$$$$$  $$$$$$$                
              :$$L  'L       $$$$$ 4$$$$$$  * $$$$$$$$$$F  $$$$$$F         edNc   
             @$$$$N  ^k      $$$$$  3$$$$*%   $F4$$$$$$$   $$$$$"        d"  z$N  
             $$$$$$   ^k     '$$$"   #$$$F   .$  $$$$$c.u@$$$          J"  @$$$$r 
             $$$$$$$b   *u    ^$L            $$  $$$$$$$$$$$$u@       $$  d$$$$$$ 
              ^$$$$$$.    "NL   "N. z@*     $$$  $$$$$$$$$$$$$P      $P  d$$$$$$$ 
                 ^"*$$$$b   '*L   9$E      4$$$  d$$$$$$$$$$$"     d*   J$$$$$r   
                      ^$$$$u  '$.  $$$L     "#" d$$$$$$".@$$    .@$"  z$$$$*"     
                        ^$$$$. ^$N.3$$$       4u$$$$$$$ 4$$$  u$*" z$$$"          
                          '*$$$$$$$$ *$b      J$$$$$$$b u$$P $"  d$$P             
                             #$$$$$$ 4$ 3*$"$*$ $"$'c@@$$$$ .u@$$$P               
                               "$$$$  ""F~$ $uNr$$$^&J$$$$F $$$$#                 
                                 "$$    "$$$bd$.$W$$$$$$$$F $$"     
                                   ?k         ?$$$$$$$$$$$F'*                     
                                    9$$bL     z$$$$$$$$$$$F                       
                                     $$$$    $$$$$$$$$$$$$                        
                                      '#$$c  '$$$$$$$$$"            
                                       .@"#$$$$$$$$$$$$b                          
                                     z*      $$$$$$$$$$$$N.                       
                                   e"      z$$"  #$$$k  '*$$.                     
                                .u*      u@$P"      '#$$c   "$$c                   
                        u@$*"""       d$$"            "$$$u  ^*$$b.               
                      :$F           J$P"                ^$$$c   '"$$$$$$bL        
                     d$$  ..      @$#                      #$$b         '#$       
                     9$$$$$$b   4$$                          ^$$k         '$      
                      "$$6""$b u$$                             '$    d$$$$$P      
                        '$F $$$$$"                              ^b  ^$$$$b$       
                         '$W$$$$"                                'b@$$$$"         
                                                                  ^$$$*/

Комментарии к исходному коду форекс индикатора !XPS v7 PRICELINE.mq4
В целях безопасности и борьбы со спамом в тексте комментариев запрещено размещать html-теги и ссылки. Благодарим за понимание.

  • X
  • 0% загружено
« индикатор !XPS v7 PRICE.mq4
индикатор !XPS v7 PROFIT.mq4 »