客服热线:18391752892

YTG DveMashki

   日期:2019-01-12     浏览:662    

//+------------------------------------------------------------------+
//|                             ytg_DveMashki_ind.mq4 |
//|                                   Yuriy Tokman |
//|                             yuriytokman@gmail.com |
//+------------------------------------------------------------------+
#property copyright Yuriy Tokman
#property link      yuriytokman@gmail.com

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Lime
#property indicator_color2 Red
#property indicator_width1 6
#property indicator_width2 6
//----
extern color color1 = Lime;
extern color color2 = Red;
extern int ma_1 = 25;
extern int ma_2 = 50;
extern int method = 0;
extern int price = 0;
//---- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
//----
int ExtCountedBars=0;
//nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
int init()
 {
 string char[256]; int i;
 for (i = 0; i 256; i++) char[i] = CharToStr(i);
 string txt = 
 char[121]+char[117]+char[114]+char[105]+char[121]+char[116]+char[111]
 +char[107]+char[109]+char[97]+char[110]+char[64]+char[103]+char[109]
 +char[97]+char[105]+char[108]+char[46]+char[99]+char[111]+char[109];
//---- indicators
   SetIndexStyle(0,DRAW_HISTOGRAM, 0, 6, color1);
   SetIndexBuffer(0, ExtMapBuffer1);
   SetIndexStyle(1,DRAW_HISTOGRAM, 0, 6, color2);
   SetIndexBuffer(1, ExtMapBuffer2);
   IndicatorShortName(txt);
   SetIndexLabel(0,txt);
   SetIndexLabel(1,txt);   
//----
   SetIndexDrawBegin(0,10);
   SetIndexDrawBegin(1,10);
//---- indicator buffers mapping
   SetIndexBuffer(0,ExtMapBuffer1);
   SetIndexBuffer(1,ExtMapBuffer2);
   
Comment( nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn  +txt);

   return(0);
 }
//nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
int start()
 {
   if(Bars =10) return(0);
   ExtCountedBars=IndicatorCounted();
//---- check for possible errors
   if (ExtCountedBars 0) return(-1);
//---- last counted bar will be recounted
   if (ExtCountedBars 0) ExtCountedBars--;
   int pos=Bars-ExtCountedBars-1;
   while(pos =0)
   {
     ExtMapBuffer1[pos]=iMA(Symbol(),0,ma_1,0,method,price,pos);
     ExtMapBuffer2[pos]=iMA(Symbol(),0,ma_2,0,method,price,pos);
          pos--;
   }
//----
   return(0);
 }
//nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn复制代码

外汇交易有很大的风险性,本站所有资源均来自网络,请选择使用,如若出现亏损,本站不承担任何责任!

特别提示:本信息由相关企业自行提供,真实性未证实,仅供参考。请谨慎采用,风险自负。


0相关评论
相关行情
推荐行情
点击排行