suzik18 / Profil
Arkadaşlar
İstekler
Profillerinden veya arama yoluyla arkadaş ekleyerek, onlarla kolayca iletişim kurabilir ve sitede çevrimiçi olup olmadıklarını takip edebilirsiniz
Giden
suzik18
Здравствуйте все! На форуме был индикатор
/ru/forum/145455/page933,%d0%9f%d0%be%d0%b4%d1%81%d0%ba%d0%b0%d0%b6%d0%b8%d1%82%d0%b5 пожалуйста, как открыть его в терминале?
#property indicator_separate_window
#property indicator_buffers 3
#property indicator_color1 Aqua
#property indicator_width1 1
#property indicator_color2 Red
#property indicator_width2 1
#property indicator_color3 Yellow
#property indicator_width3 1
extern int Fperiod=1;
extern int Speriod=2;
extern int Method=3;
extern int PRICE_MODE=PRICE_WEIGHTED;
double Buf0[];
double Buf1[];
double Buf2[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
SetIndexBuffer(0,Buf0);
SetIndexBuffer(1,Buf1);
SetIndexBuffer(2,Buf2);
SetIndexStyle(0,DRAW_LINE);
SetIndexStyle(1,DRAW_LINE);
SetIndexStyle(2,DRAW_LINE);
SetIndexEmptyValue(1,EMPTY_VALUE);
SetIndexEmptyValue(2,EMPTY_VALUE);
IndicatorShortName("Proba ");
SetIndexDrawBegin(0, 0);
SetIndexDrawBegin(1, 0);
SetIndexDrawBegin(2, 0);
return(0);
}
//+------------------------------------------------------------------+
//| Moving Averages Convergence/Divergence |
//+------------------------------------------------------------------+
int start()
{
int i;
int limit;
int counted_bars=IndicatorCounted();
if(counted_bars0) counted_bars--;
limit=Bars-counted_bars;
for (i = limit;i>=0;i--)
{
Buf0[i]=iMA(NULL,0,Fperiod,0,Method,PRICE_MODE,i)-iMA(NULL,0,Speriod,0,Method,PRICE_MODE,i);
if(Buf0[i] > Buf0[i+1])
{
Buf1[i] = Buf0[i];
// if(Buf0[i+1] > Buf0[i+2])
// Buf1[i+1] = Buf0[i+1];
// else Buf2[i+1] = Buf0[i+1];
}
else
{
Buf2[i] = Buf0[i];
// if(Buf0[i+1] < Buf0[i+2])
// Buf2[i+1] = Buf0[i+1];
// else Buf1[i+1] = Buf0[i+1];
}
}
return(0);
}
/ru/forum/145455/page933,%d0%9f%d0%be%d0%b4%d1%81%d0%ba%d0%b0%d0%b6%d0%b8%d1%82%d0%b5 пожалуйста, как открыть его в терминале?
#property indicator_separate_window
#property indicator_buffers 3
#property indicator_color1 Aqua
#property indicator_width1 1
#property indicator_color2 Red
#property indicator_width2 1
#property indicator_color3 Yellow
#property indicator_width3 1
extern int Fperiod=1;
extern int Speriod=2;
extern int Method=3;
extern int PRICE_MODE=PRICE_WEIGHTED;
double Buf0[];
double Buf1[];
double Buf2[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
SetIndexBuffer(0,Buf0);
SetIndexBuffer(1,Buf1);
SetIndexBuffer(2,Buf2);
SetIndexStyle(0,DRAW_LINE);
SetIndexStyle(1,DRAW_LINE);
SetIndexStyle(2,DRAW_LINE);
SetIndexEmptyValue(1,EMPTY_VALUE);
SetIndexEmptyValue(2,EMPTY_VALUE);
IndicatorShortName("Proba ");
SetIndexDrawBegin(0, 0);
SetIndexDrawBegin(1, 0);
SetIndexDrawBegin(2, 0);
return(0);
}
//+------------------------------------------------------------------+
//| Moving Averages Convergence/Divergence |
//+------------------------------------------------------------------+
int start()
{
int i;
int limit;
int counted_bars=IndicatorCounted();
if(counted_bars0) counted_bars--;
limit=Bars-counted_bars;
for (i = limit;i>=0;i--)
{
Buf0[i]=iMA(NULL,0,Fperiod,0,Method,PRICE_MODE,i)-iMA(NULL,0,Speriod,0,Method,PRICE_MODE,i);
if(Buf0[i] > Buf0[i+1])
{
Buf1[i] = Buf0[i];
// if(Buf0[i+1] > Buf0[i+2])
// Buf1[i+1] = Buf0[i+1];
// else Buf2[i+1] = Buf0[i+1];
}
else
{
Buf2[i] = Buf0[i];
// if(Buf0[i+1] < Buf0[i+2])
// Buf2[i+1] = Buf0[i+1];
// else Buf1[i+1] = Buf0[i+1];
}
}
return(0);
}
: