Ticaret robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Twitter üzerinde bulun!
Fan sayfamıza katılın
Komut dosyasını ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Komut dosyasını beğendiniz mi? MetaTrader 5 terminalinde deneyin
Göstergeler

Gap indicator - MetaTrader 4 için gösterge

Görüntülemeler:
17643
Derecelendirme:
(10)
Yayınlandı:
2016.04.26 16:21
Güncellendi:
2023.03.15 12:54
Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git
//+------------------------------------------------------------------+
//| Gap indicator                                                    |
//| FOREX&STOX                                                       |
//| ram-kr@krastalk.ru                                               |
//+------------------------------------------------------------------+
#property copyright "ram-kr@krastalk.ru"
#property link ""
#property indicator_separate_window
#property indicator_buffers 2
#property indicator_color1 Blue
#property indicator_color2 Red
#property indicator_width1 2
#property indicator_width2 2

double ExtMapBuffer1[];
double ExtMapBuffer2[];

//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
IndicatorBuffers(2);
SetIndexStyle(0,DRAW_HISTOGRAM);
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexLabel(0,"Blue");
SetIndexStyle(1,DRAW_HISTOGRAM);
SetIndexBuffer(1,ExtMapBuffer2);
SetIndexLabel(1,"Red");
//----
IndicatorShortName("Gap indicator FOREX&STOX");
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
{
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
{
int counted_bars=IndicatorCounted();
double BandsMode,BandsPrice,PowerPrice;

//+----Main Section--------------------------------------------------+
double value1, value2;
for(int i=0;i<=Bars;i++)
{
value1=0; value2=0;
// gap DOWN \---------------------------------------------
if( (Open[i]-Close[i+1])>0 ) value1=(Open[i]-Close[i+1])/Point;
// gap UP /----------------------------------------------
if( (Open[i]-Close[i+1])<0 ) value2=(Open[i]-Close[i+1])/Point;
//--------------------------------------------------------
ExtMapBuffer1[i]=value1;
ExtMapBuffer2[i]=value2;
} //end for
//+------------------------------------------------------------------+
return(0);
}
//+------------------------------------------------------------------+

MetaQuotes Ltd tarafından Rusçadan çevrilmiştir.
Orijinal kod: https://www.mql5.com/ru/code/7366

Demark Lines Demark Lines

My version of plotting the DeMark lines, also draws channels in addition to the trend lines and targets. Added one more target (the third one defined as 1.62 of the inner extremum), added the signal cancellation when closing within the channel.

SmPriceBend-T01 SmPriceBend-T01

The indicator of the first price change derivative or simply trend speed and sign.

ang_Amp_ZZ ang_Amp_ZZ

The Zig Zag indicator with a sound alert on appearance of a new line on the chart.

SuperWoodiesCCI SuperWoodiesCCI

Indicator for a strategy that uses CCI. When trading Woodies CCI all you need is to find Woodies CCI patterns.