www.opentraders.ru/downloads/2336/
Готово.
Визуальный, текстовый и звуковой сигналы.
<code>//+------------------------------------------------------------------+ //| GDV.mq4 | //| Copyright 2019, | //| | //+------------------------------------------------------------------+ #property copyright "GDV" #property version "1.00" #property strict #property indicator_chart_window input string mus="alert.wav"; static bool bPlayS=true; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int OnInit() { if(GlobalVariableCheck("val")==True){ if(Period()==1440 ) PlaySound("alert.wav");bPlayS=False; if(Period()==240 ) PlaySound("alert.wav");bPlayS=False; if(Period()==60 ) PlaySound("alert.wav");bPlayS=False; if(Period()==30 ) PlaySound("alert.wav");bPlayS=False; if(Period()==15 ) PlaySound("alert.wav");bPlayS=False; if(Period()==5 ) PlaySound("alert.wav");bPlayS=False; if(Period()==1 ) PlaySound("alert.wav");bPlayS=False; } if(GlobalVariableCheck("val")==False) {PlaySound(mus);GlobalVariableSet("val",1);} //--- return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void OnDeinit(const int reason) { if(reason==1) GlobalVariableDel("val"); Comment("\n Total: ",GlobalVariablesTotal()); } //+------------------------------------------------------------------+ //| 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[]) { //--- Comment("\n Total: ",GlobalVariablesTotal()); //--- return value of prev_calculated for next call return(rates_total); } //+------------------------------------------------------------------+</code>
//+------------------------------------------------------------------+
//| GDV.mq4 |
//| Copyright 2019, |
//| |
//+------------------------------------------------------------------+
#property copyright "GDV"
#property version "1.00"
#property strict
#property indicator_chart_window
input string mus="5.wav";
static bool bPlayS=true;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
//--- indicator buffers mapping
if(GlobalVariablesTotal()<1) {PlaySound(mus);GlobalVariableSet("val",1);}
if(Period()==240 ) PlaySound("3175.wav");bPlayS=False;
if(Period()==30 ) PlaySound("3232.wav");bPlayS=False;
if(Period()==15 ) PlaySound("3252.wav");bPlayS=False;
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
if(reason==1) GlobalVariablesDeleteAll();
Comment("\n Total: ",GlobalVariablesTotal());
}
//+------------------------------------------------------------------+
//| 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[])
{
//---
Comment("\n Total: ",GlobalVariablesTotal());
//--- return value of prev_calculated for next call
return(rates_total);
}
//+------------------------------------------------------------------+
Скажи что надо.
Можно любой символ из это и цвет
Servir