HELP- One Of The Best Leading Indicator!No Repaint!

#1
Hi,
Could anyone Translate Vostro Indicator from Metatrader to amibroker AFL?
Its one of the best Indicator used for scalping and does not repaint.We can use it with other indicators for effective results.

Seniors, please help us!!!

Screenshot:


Here is the code:
PHP:
/*
   Generated by ex4-to-mq4 decompiler FREEWARE 4.0.451.7
   Website: Ht T P:// w ww .M E Taq uot e s .n et
   E-mail : S Upp o rT@m E Ta q Uo t eS.n ET
*/
#property copyright "Copyright © 2012 forexmt4systems."
#property link      "http://www.forexmt4systems.com"

#property indicator_separate_window
#property indicator_minimum -100.0
#property indicator_maximum 100.0
#property indicator_levelcolor Red
#property indicator_width1 2
#property indicator_level1 80.0
#property indicator_level2 -80.0

extern string ModeTravail = "Acheter à -100% et Vendre à 100%";
extern string TradeMode = "Choisir votre Mode de Trading : ";
extern bool Scalping = TRUE;
extern string IndColor = "Choisir La Couleur Indicateur : ";
extern color Couleur = Blue;
double G_ibuf_108[];
double G_ibuf_112[];
double G_ibuf_116[];
double Gd_120;
double Gd_128;
double Gd_136;
int Gi_144 = 5;
int Gi_148;
int Gi_152;
int G_period_156;

// E37F0136AA3FFAF149B351F6A4C948E9
int init() {
   IndicatorBuffers(3);
   SetIndexStyle(0, DRAW_LINE, EMPTY, 2, Couleur);
   SetIndexBuffer(0, G_ibuf_108);
   SetIndexBuffer(1, G_ibuf_116);
   SetIndexBuffer(2, G_ibuf_112);
   IndicatorShortName("Vostro © 2012 ForexMT4Systems      ");
   return (0);
}

// 52D46093050F38C27267BCE42543EF60
int deinit() {
   return (0);
}

// EA2B2676C28C0DB26D39331A336C6B92
int start() {
   Comment("Download more: Www.ForexWinners.Net");
   if (Year() >= 2020) return (0);
   if (Scalping == TRUE) G_period_156 = 100;
   else G_period_156 = 300;
   for (Gi_152 = 0; Gi_152 < Bars; Gi_152++) {
      Gd_120 = 0;
      for (Gi_148 = Gi_152; Gi_148 < Gi_144 + Gi_152; Gi_148++) Gd_120 += (High[Gi_148] + Low[Gi_148]) / 2.0;
      Gd_128 = Gd_120 / Gi_144;
      Gd_120 = 0;
      for (Gi_148 = Gi_152; Gi_148 < Gi_144 + Gi_152; Gi_148++) Gd_120 += High[Gi_148] - Low[Gi_148];
      Gd_136 = 0.2 * (Gd_120 / Gi_144);
      G_ibuf_116[Gi_152] = (Low[Gi_152] - Gd_128) / Gd_136;
      G_ibuf_112[Gi_152] = (High[Gi_152] - Gd_128) / Gd_136;
      if (G_ibuf_112[Gi_152] > 8.0 && High[Gi_152] > iMA(NULL, 0, G_period_156, 0, MODE_LWMA, PRICE_MEDIAN, Gi_152)) G_ibuf_108[Gi_152] = 90.0;
      else {
         if (G_ibuf_116[Gi_152] < -8.0 && Low[Gi_152] < iMA(NULL, 0, G_period_156, 0, MODE_LWMA, PRICE_MEDIAN, Gi_152)) G_ibuf_108[Gi_152] = -90.0;
         else G_ibuf_108[Gi_152] = 0.0;
      }
      if (G_ibuf_112[Gi_152] > 8.0 && G_ibuf_112[Gi_152 - 1] > 8.0) G_ibuf_108[Gi_152] = 0;
      if (G_ibuf_112[Gi_152] > 8.0 && G_ibuf_112[Gi_152 - 1] > 8.0 && G_ibuf_112[Gi_152 - 2] > 8.0) G_ibuf_108[Gi_152] = 0;
      if (G_ibuf_116[Gi_152] < -8.0 && G_ibuf_116[Gi_152 - 1] < -8.0) G_ibuf_108[Gi_152] = 0;
      if (G_ibuf_116[Gi_152] < -8.0 && G_ibuf_116[Gi_152 - 1] < -8.0 && G_ibuf_116[Gi_152 - 2] < -8.0) G_ibuf_108[Gi_152] = 0;
   }
   return (0);
}
 

Similar threads