PRECISO DE UMA AJUDA COM O MEU INDICADOR, ESTÁ REPINTANDO, ALGUÉM PODE ME AJUDAR?

 

PRECISO DE UMA AJUDA COM O MEU INDICADOR, ESTÁ REPINTANDO, ALGUÉM PODE ME AJUDAR?



#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 clrAliceBlue
#property indicator_color2 clrAliceBlue


//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

int Account_Number=;//      <-----------------------     Use  Account Number here .
datetime Time_Limit=D'';  //   <-----------      Use Time Limit Here .
string Pass_Word =   ""; // <------------------------      Use The Pass Word Here .

//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*



extern string Pass=""; //Use Pass Word
extern int ExtDepth = 115;
extern int ExtDeviation = 130;
extern int ExtBackstep = 80;
extern string SoundFile="Alert.wav";
extern bool UseSound=true;

bool SoundBuy  = False;
bool SoundSell = False;
double Gl_ibuf_88[];
double Gl_ibuf_92[];


int init() {
   IndicatorBuffers(2);
   SetIndexStyle(0, DRAW_ARROW,EMPTY,3,clrAliceBlue);
   SetIndexArrow(0, 233);
   SetIndexStyle(1, DRAW_ARROW,EMPTY,3,clrAliceBlue);
   SetIndexArrow(1, 234);
   SetIndexBuffer(0, Gl_ibuf_88);
   SetIndexBuffer(1, Gl_ibuf_92);
   SetIndexEmptyValue(0, 0.0);
   SetIndexEmptyValue(1, 0.0);
   IndicatorShortName("ZigZag(" + ExtDepth + "," + ExtDeviation + "," + ExtBackstep + ")");
   return (0);
}

int start() {


   if(AccountNumber()==Account_Number && TimeCurrent()<Time_Limit && Pass==Pass_Word)
   {
   double Lcd_16;
   double Lcd_24;
   double Lcd_32;
   double Lcd_40;
   double Lcd_48;
   double Lcd_56;
   for (int Lci_0 = Bars - ExtDepth; Lci_0 >= 0; Lci_0--) {
      Lcd_16 = Low[iLowest(NULL, 0, MODE_LOW, ExtDepth, Lci_0)];
      if (Lcd_16 == Lcd_56) Lcd_16 = 0.0;
      else {
         Lcd_56 = Lcd_16;
         if (Low[Lci_0] - Lcd_16 > ExtDeviation * Point) Lcd_16 = 0.0;
         else {
            for (int Lci_4 = 1; Lci_4 <= ExtBackstep; Lci_4++) {
               Lcd_24 = Gl_ibuf_88[Lci_0 + Lci_4];
               if (Lcd_24 != 0.0 && Lcd_24 > Lcd_16) Gl_ibuf_88[Lci_0 + Lci_4] = 0.0;
            }
         }
      }
      Gl_ibuf_88[Lci_0] = Lcd_16;
      Lcd_16 = High[iHighest(NULL, 0, MODE_HIGH, ExtDepth, Lci_0)];
      if (Lcd_16 == Lcd_48) Lcd_16 = 0.0;
      else {
         Lcd_48 = Lcd_16;
         if (Lcd_16 - High[Lci_0] > ExtDeviation * Point) Lcd_16 = 0.0;
         else {
            for (Lci_4 = 1; Lci_4 <= ExtBackstep; Lci_4++) {
               Lcd_24 = Gl_ibuf_92[Lci_0 + Lci_4];
               if (Lcd_24 != 0.0 && Lcd_24 < Lcd_16) Gl_ibuf_92[Lci_0 + Lci_4] = 0.0;
            }
         }
      }
      Gl_ibuf_92[Lci_0] = Lcd_16;
   }
   Lcd_48 = -1;
   int Lci_8 = -1;
   Lcd_56 = -1;
   int Lci_12 = -1;
   for (Lci_0 = Bars - ExtDepth; Lci_0 >= 0; Lci_0--) {
      Lcd_32 = Gl_ibuf_88[Lci_0];
      Lcd_40 = Gl_ibuf_92[Lci_0];
      if (Lcd_32 == 0.0 && Lcd_40 == 0.0) continue;
      if (Lcd_40 != 0.0) {
         if (Lcd_48 > 0.0) {
            if (Lcd_48 < Lcd_40) Gl_ibuf_92[Lci_8] = 0;
            else Gl_ibuf_92[Lci_0] = 0;
         }
         if (Lcd_48 < Lcd_40 || Lcd_48 < 0.0) {
            Lcd_48 = Lcd_40;
            Lci_8 = Lci_0;
         }
         Lcd_56 = -1;
      }
      if (Lcd_32 != 0.0) {
         if (Lcd_56 > 0.0) {
            if (Lcd_56 > Lcd_32) Gl_ibuf_88[Lci_12] = 0;
            else Gl_ibuf_88[Lci_0] = 0;
         }
         if (Lcd_32 < Lcd_56 || Lcd_56 < 0.0) {
            Lcd_56 = Lcd_32;
            Lci_12 = Lci_0;
         }
         Lcd_48 = -1;
      }
   }
   for (Lci_0 = Bars - 1; Lci_0 >= 0; Lci_0--) {
      if (Lci_0 >= Bars - ExtDepth) Gl_ibuf_88[Lci_0] = 0.0;
      else {
         Lcd_24 = Gl_ibuf_92[Lci_0];
         if (Lcd_24 != 0.0) Gl_ibuf_92[Lci_0] = Lcd_24;
      }
   }
    //+------------------------------------------------------------------+    
      if (Gl_ibuf_88[1] != EMPTY_VALUE && Gl_ibuf_88[1] != 0 && SoundBuy)
         {
         SoundBuy = False;
            if (UseSound) PlaySound (SoundFile);
               Alert("SixtySecondTrades(", Symbol(), ", ", Period(), ")  -  Comprar!");
         }
      if (!SoundBuy && (Gl_ibuf_88[1] == EMPTY_VALUE || Gl_ibuf_88[1] == 0)) SoundBuy = True; 
           
 
      if (Gl_ibuf_92[1] != EMPTY_VALUE && Gl_ibuf_92[1] != 0 && SoundSell)
         {
         SoundSell = False;
            if (UseSound) PlaySound (SoundFile);
             Alert("SixtySecondTrades (", Symbol(), ", ", Period(), ")  -  Vender!");
         }
      if (!SoundSell && (Gl_ibuf_92[1] == EMPTY_VALUE || Gl_ibuf_92[1] == 0)) SoundSell = True;                           
   }
   else Comment("Contact The User");
//+------------------------------------------------------------------+
   return (0);
}

 
Luiz Sabo:

PRECISO DE UMA AJUDA COM O MEU INDICADOR, ESTÁ REPINTANDO, ALGUÉM PODE ME AJUDAR?



#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 clrAliceBlue
#property indicator_color2 clrAliceBlue


//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

int Account_Number=;//      <-----------------------     Use  Account Number here .
datetime Time_Limit=D'';  //   <-----------      Use Time Limit Here .
string Pass_Word =   ""; // <------------------------      Use The Pass Word Here .

//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*



extern string Pass=""; //Use Pass Word
extern int ExtDepth = 115;
extern int ExtDeviation = 130;
extern int ExtBackstep = 80;
extern string SoundFile="Alert.wav";
extern bool UseSound=true;

bool SoundBuy  = False;
bool SoundSell = False;
double Gl_ibuf_88[];
double Gl_ibuf_92[];


int init() {
   IndicatorBuffers(2);
   SetIndexStyle(0, DRAW_ARROW,EMPTY,3,clrAliceBlue);
   SetIndexArrow(0, 233);
   SetIndexStyle(1, DRAW_ARROW,EMPTY,3,clrAliceBlue);
   SetIndexArrow(1, 234);
   SetIndexBuffer(0, Gl_ibuf_88);
   SetIndexBuffer(1, Gl_ibuf_92);
   SetIndexEmptyValue(0, 0.0);
   SetIndexEmptyValue(1, 0.0);
   IndicatorShortName("ZigZag(" + ExtDepth + "," + ExtDeviation + "," + ExtBackstep + ")");
   return (0);
}

int start() {


   if(AccountNumber()==Account_Number && TimeCurrent()<Time_Limit && Pass==Pass_Word)
   {
   double Lcd_16;
   double Lcd_24;
   double Lcd_32;
   double Lcd_40;
   double Lcd_48;
   double Lcd_56;
   for (int Lci_0 = Bars - ExtDepth; Lci_0 >= 0; Lci_0--) {
      Lcd_16 = Low[iLowest(NULL, 0, MODE_LOW, ExtDepth, Lci_0)];
      if (Lcd_16 == Lcd_56) Lcd_16 = 0.0;
      else {
         Lcd_56 = Lcd_16;
         if (Low[Lci_0] - Lcd_16 > ExtDeviation * Point) Lcd_16 = 0.0;
         else {
            for (int Lci_4 = 1; Lci_4 <= ExtBackstep; Lci_4++) {
               Lcd_24 = Gl_ibuf_88[Lci_0 + Lci_4];
               if (Lcd_24 != 0.0 && Lcd_24 > Lcd_16) Gl_ibuf_88[Lci_0 + Lci_4] = 0.0;
            }
         }
      }
      Gl_ibuf_88[Lci_0] = Lcd_16;
      Lcd_16 = High[iHighest(NULL, 0, MODE_HIGH, ExtDepth, Lci_0)];
      if (Lcd_16 == Lcd_48) Lcd_16 = 0.0;
      else {
         Lcd_48 = Lcd_16;
         if (Lcd_16 - High[Lci_0] > ExtDeviation * Point) Lcd_16 = 0.0;
         else {
            for (Lci_4 = 1; Lci_4 <= ExtBackstep; Lci_4++) {
               Lcd_24 = Gl_ibuf_92[Lci_0 + Lci_4];
               if (Lcd_24 != 0.0 && Lcd_24 < Lcd_16) Gl_ibuf_92[Lci_0 + Lci_4] = 0.0;
            }
         }
      }
      Gl_ibuf_92[Lci_0] = Lcd_16;
   }
   Lcd_48 = -1;
   int Lci_8 = -1;
   Lcd_56 = -1;
   int Lci_12 = -1;
   for (Lci_0 = Bars - ExtDepth; Lci_0 >= 0; Lci_0--) {
      Lcd_32 = Gl_ibuf_88[Lci_0];
      Lcd_40 = Gl_ibuf_92[Lci_0];
      if (Lcd_32 == 0.0 && Lcd_40 == 0.0) continue;
      if (Lcd_40 != 0.0) {
         if (Lcd_48 > 0.0) {
            if (Lcd_48 < Lcd_40) Gl_ibuf_92[Lci_8] = 0;
            else Gl_ibuf_92[Lci_0] = 0;
         }
         if (Lcd_48 < Lcd_40 || Lcd_48 < 0.0) {
            Lcd_48 = Lcd_40;
            Lci_8 = Lci_0;
         }
         Lcd_56 = -1;
      }
      if (Lcd_32 != 0.0) {
         if (Lcd_56 > 0.0) {
            if (Lcd_56 > Lcd_32) Gl_ibuf_88[Lci_12] = 0;
            else Gl_ibuf_88[Lci_0] = 0;
         }
         if (Lcd_32 < Lcd_56 || Lcd_56 < 0.0) {
            Lcd_56 = Lcd_32;
            Lci_12 = Lci_0;
         }
         Lcd_48 = -1;
      }
   }
   for (Lci_0 = Bars - 1; Lci_0 >= 0; Lci_0--) {
      if (Lci_0 >= Bars - ExtDepth) Gl_ibuf_88[Lci_0] = 0.0;
      else {
         Lcd_24 = Gl_ibuf_92[Lci_0];
         if (Lcd_24 != 0.0) Gl_ibuf_92[Lci_0] = Lcd_24;
      }
   }
    //+------------------------------------------------------------------+    
      if (Gl_ibuf_88[1] != EMPTY_VALUE && Gl_ibuf_88[1] != 0 && SoundBuy)
         {
         SoundBuy = False;
            if (UseSound) PlaySound (SoundFile);
               Alert("SixtySecondTrades(", Symbol(), ", ", Period(), ")  -  Comprar!");
         }
      if (!SoundBuy && (Gl_ibuf_88[1] == EMPTY_VALUE || Gl_ibuf_88[1] == 0)) SoundBuy = True; 
           
 
      if (Gl_ibuf_92[1] != EMPTY_VALUE && Gl_ibuf_92[1] != 0 && SoundSell)
         {
         SoundSell = False;
            if (UseSound) PlaySound (SoundFile);
             Alert("SixtySecondTrades (", Symbol(), ", ", Period(), ")  -  Vender!");
         }
      if (!SoundSell && (Gl_ibuf_92[1] == EMPTY_VALUE || Gl_ibuf_92[1] == 0)) SoundSell = True;                           
   }
   else Comment("Contact The User");
//+------------------------------------------------------------------+
   return (0);
}

Esse indicador é seu? Você desenvolveu?
 
Luiz Sabo:

PRECISO DE UMA AJUDA COM O MEU INDICADOR, ESTÁ REPINTANDO, ALGUÉM PODE ME AJUDAR?



#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 clrAliceBlue
#property indicator_color2 clrAliceBlue


//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

int Account_Number=;//      <-----------------------     Use  Account Number here .
datetime Time_Limit=D'';  //   <-----------      Use Time Limit Here .
string Pass_Word =   ""; // <------------------------      Use The Pass Word Here .

//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*



extern string Pass=""; //Use Pass Word
extern int ExtDepth = 115;
extern int ExtDeviation = 130;
extern int ExtBackstep = 80;
extern string SoundFile="Alert.wav";
extern bool UseSound=true;

bool SoundBuy  = False;
bool SoundSell = False;
double Gl_ibuf_88[];
double Gl_ibuf_92[];


int init() {
   IndicatorBuffers(2);
   SetIndexStyle(0, DRAW_ARROW,EMPTY,3,clrAliceBlue);
   SetIndexArrow(0, 233);
   SetIndexStyle(1, DRAW_ARROW,EMPTY,3,clrAliceBlue);
   SetIndexArrow(1, 234);
   SetIndexBuffer(0, Gl_ibuf_88);
   SetIndexBuffer(1, Gl_ibuf_92);
   SetIndexEmptyValue(0, 0.0);
   SetIndexEmptyValue(1, 0.0);
   IndicatorShortName("ZigZag(" + ExtDepth + "," + ExtDeviation + "," + ExtBackstep + ")");
   return (0);
}

int start() {


   if(AccountNumber()==Account_Number && TimeCurrent()<Time_Limit && Pass==Pass_Word)
   {
   double Lcd_16;
   double Lcd_24;
   double Lcd_32;
   double Lcd_40;
   double Lcd_48;
   double Lcd_56;
   for (int Lci_0 = Bars - ExtDepth; Lci_0 >= 0; Lci_0--) {
      Lcd_16 = Low[iLowest(NULL, 0, MODE_LOW, ExtDepth, Lci_0)];
      if (Lcd_16 == Lcd_56) Lcd_16 = 0.0;
      else {
         Lcd_56 = Lcd_16;
         if (Low[Lci_0] - Lcd_16 > ExtDeviation * Point) Lcd_16 = 0.0;
         else {
            for (int Lci_4 = 1; Lci_4 <= ExtBackstep; Lci_4++) {
               Lcd_24 = Gl_ibuf_88[Lci_0 + Lci_4];
               if (Lcd_24 != 0.0 && Lcd_24 > Lcd_16) Gl_ibuf_88[Lci_0 + Lci_4] = 0.0;
            }
         }
      }
      Gl_ibuf_88[Lci_0] = Lcd_16;
      Lcd_16 = High[iHighest(NULL, 0, MODE_HIGH, ExtDepth, Lci_0)];
      if (Lcd_16 == Lcd_48) Lcd_16 = 0.0;
      else {
         Lcd_48 = Lcd_16;
         if (Lcd_16 - High[Lci_0] > ExtDeviation * Point) Lcd_16 = 0.0;
         else {
            for (Lci_4 = 1; Lci_4 <= ExtBackstep; Lci_4++) {
               Lcd_24 = Gl_ibuf_92[Lci_0 + Lci_4];
               if (Lcd_24 != 0.0 && Lcd_24 < Lcd_16) Gl_ibuf_92[Lci_0 + Lci_4] = 0.0;
            }
         }
      }
      Gl_ibuf_92[Lci_0] = Lcd_16;
   }
   Lcd_48 = -1;
   int Lci_8 = -1;
   Lcd_56 = -1;
   int Lci_12 = -1;
   for (Lci_0 = Bars - ExtDepth; Lci_0 >= 0; Lci_0--) {
      Lcd_32 = Gl_ibuf_88[Lci_0];
      Lcd_40 = Gl_ibuf_92[Lci_0];
      if (Lcd_32 == 0.0 && Lcd_40 == 0.0) continue;
      if (Lcd_40 != 0.0) {
         if (Lcd_48 > 0.0) {
            if (Lcd_48 < Lcd_40) Gl_ibuf_92[Lci_8] = 0;
            else Gl_ibuf_92[Lci_0] = 0;
         }
         if (Lcd_48 < Lcd_40 || Lcd_48 < 0.0) {
            Lcd_48 = Lcd_40;
            Lci_8 = Lci_0;
         }
         Lcd_56 = -1;
      }
      if (Lcd_32 != 0.0) {
         if (Lcd_56 > 0.0) {
            if (Lcd_56 > Lcd_32) Gl_ibuf_88[Lci_12] = 0;
            else Gl_ibuf_88[Lci_0] = 0;
         }
         if (Lcd_32 < Lcd_56 || Lcd_56 < 0.0) {
            Lcd_56 = Lcd_32;
            Lci_12 = Lci_0;
         }
         Lcd_48 = -1;
      }
   }
   for (Lci_0 = Bars - 1; Lci_0 >= 0; Lci_0--) {
      if (Lci_0 >= Bars - ExtDepth) Gl_ibuf_88[Lci_0] = 0.0;
      else {
         Lcd_24 = Gl_ibuf_92[Lci_0];
         if (Lcd_24 != 0.0) Gl_ibuf_92[Lci_0] = Lcd_24;
      }
   }
    //+------------------------------------------------------------------+    
      if (Gl_ibuf_88[1] != EMPTY_VALUE && Gl_ibuf_88[1] != 0 && SoundBuy)
         {
         SoundBuy = False;
            if (UseSound) PlaySound (SoundFile);
               Alert("SixtySecondTrades(", Symbol(), ", ", Period(), ")  -  Comprar!");
         }
      if (!SoundBuy && (Gl_ibuf_88[1] == EMPTY_VALUE || Gl_ibuf_88[1] == 0)) SoundBuy = True; 
           
 
      if (Gl_ibuf_92[1] != EMPTY_VALUE && Gl_ibuf_92[1] != 0 && SoundSell)
         {
         SoundSell = False;
            if (UseSound) PlaySound (SoundFile);
             Alert("SixtySecondTrades (", Symbol(), ", ", Period(), ")  -  Vender!");
         }
      if (!SoundSell && (Gl_ibuf_92[1] == EMPTY_VALUE || Gl_ibuf_92[1] == 0)) SoundSell = True;                           
   }
   else Comment("Contact The User");
//+------------------------------------------------------------------+
   return (0);
}

Você efetuou os inputs indicados pelo desenvolvedor do indicador?

Você entende ao menos uma linha escrita pelo desenvolvedor?

 
Este indicador foi descompilado.
 

Isto parece ser um código "descompilado" a partir de um executável.

Nesse caso o procedimento correto é você solicitar suporte ao desenvolvedor do código, que é o proprietário intelectual do mesmo.

No meu entendimento (a menos que eu esteja enganado), este fórum é para tirar dúvidas de pessoas que estão programando o seu próprio robô, ou de pessoas que querem orientação para comprar/encomendar robôs ou alugar sinais ... mas não para ajudar pessoas a "hackearem" código de terceiros ... esta última atividade é ilegal pela legislação brasileira.

Razão: