//اسم و عنوان المبرمج
#property copyright "Copyright 2016, MetaQuotes Software Corp."
#property link "https://www.mql5.com"
//الاصدار
#property version "1.00"
// لا اعرف عنة شيء
#property strict
// يرسم على الشارت مباشرة
#property indicator_chart_window
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
//ينفذ ما يكتب داخله مرة واحده
int OnInit()
{
//--- indicator buffers mapping
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
const int prev_calculated,
const datetime &time[],
const double &open[],
const double &high[],
const double &low[],
const double &close[],
const long &tick_volume[],
const long &volume[],
const int &spread[])
{
//---
//...........................
// التنبيه
if (Close[1]> High[1])
Alert ("صعود");
//..............................
if (Close[0]<Low[1])
Alert("نزول ");
//..............................
يطبع حسب التك
Comment(" يكتب أعلى اليسار");
//..............................
printf ("يكتب تحت بالاكسبيرت");
//..............................);
//--- return value of prev_calculated for next call
return(rates_total);
}
//+------------------------------------------------------------------+