#property indicator_chart_window
#define PREFIX "T3S"
#property indicator_buffers 2
#property indicator_color1 Lime
#property indicator_color2 White
extern int Snake_HalfCycle = 14;
extern int T3Period = 21;
extern int T3Price = PRICE_CLOSE;
extern double b = 0.518;
extern string TimeFrame = "current time frame";
extern bool Indi_Lines = true;
extern bool Real = true;
extern int Arr_otstup = 0;
extern int Arr_width = 2;
extern bool AlertsMessage = true;
extern bool AlertsSound = false;
extern bool AlertsEmail = false;
extern bool AlertsNotification = false;
extern int SignalBar = 0;
int sig_alert=0;
double Sn[],T3[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init
{
SetIndexBuffer;
SetIndexLabel ;
SetIndexBuffer;
SetIndexLabel ;
if{
SetIndexStyle ;
SetIndexStyle ;
}else{
SetIndexStyle ;
SetIndexStyle ;}
IndicatorShortName;
return;
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit
{
for-1; i >= 0; i--)
if , 0,
StringLen) == PREFIX)
ObjectDelete);
return;
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start
{
int i;
int counted_bars=IndicatorCounted;
int limit=Bars-counted_bars;
ifint snk=0; else snk=Snake_HalfCycle;
for
{
Sn[i] = iCustom,0,"Snake",Snake_HalfCycle,0,i);
T3[i] = iCustom,0,"T3_clean",T3Period,T3Price,b,TimeFrame,0,i);
}
//+------------------------------------------------------------------+
for
{
if
arrows_wind;
else ObjectDelete);
if
arrows_wind;
else ObjectDelete);
//-----------------------------------------------------------------------+
if
{
string message1 = +" TF+") - Signal for BUY");
string message2 = +" TF+") - Signal for SELL");
if
{
if Alert;
if SendMail+" T3+Snake ",message1);
if SendNotification;
if PlaySound;
sig_alert=1;
}
if
{
if Alert;
if SendMail+" T3+Snake ",message2);
if SendNotification;
if PlaySound;
sig_alert=2;
}
}
}
//+------------------------------------------------------------------+
return;
}
//====================================================================
void arrows_wind
{
string objName = PREFIX+N+TimeToStr;
double gap = /4.0)+ots*Point;
ObjectCreate;
ObjectSet ;
ObjectSet ;
ObjectSet ;
if
ObjectSet;
else
ObjectSet;
}
//==================================================================== |