Пример #1
0
        private async void procurar_Click(object sender, EventArgs e)
        {
            if (CheckTextBox())
            {
                string plat = "";
                if (pcRadio.Checked)
                {
                    plat = "pc";
                }
                else if (psRadio.Checked)
                {
                    plat = "psn";
                }
                else if (xboxRadio.Checked)
                {
                    plat = "xbox";
                }
                await WebCrawler.StartCrawlerAsync(plat, idTextBox.Text.Trim());


                if (!IdController.Existe)
                {
                    string message = "Id de jogador não encontrado";
                    string caption = "Erro";
                    alerts.Alert(message, caption);
                }
                else
                {
                    IdController.ContaName = idTextBox.Text.Trim();
                    TrocarForm();
                }
            }
        }
Пример #2
0
        protected override void CalcBar()
        {
            m_roc.Value = price.RateOfChange(roclength);
            Plot1.Set(0, m_roc.Value);
            Plot2.Set(0, 0);
            var m_colorlevel = m_normgradientcolor1[0];

            if (((int)Environment.ApplicationCode == 1))
            {
                Plot1.Colors[0] = m_colorlevel;
            }
            else
            {
                if ((int)Environment.ApplicationCode > 1)
                {
                    Plot1.Colors[0] = gridforegroundcolor;
                    Plot1.BGColor   = m_colorlevel;
                }
            }

            if ((m_roc.HighestBar(alertlength) == 0))
            {
                Alerts.Alert("Indicator at high");
            }
            else
            {
                if ((m_roc.LowestBar(alertlength) == 0))
                {
                    Alerts.Alert("Indicator at low");
                }
            }
        }
Пример #3
0
 protected override void CalcBar()
 {
     m_priceosc.Value = m_priceoscillator1[0];
     Plot1.Set(0, m_priceosc.Value);
     Plot2.Set(0, 0);
     {
         var m_colorlevel = m_normgradientcolor1[0];
         if ((m_applicationtype == 1))
         {
             Plot1.Colors[0] = m_colorlevel;
         }
         else
         {
             if (m_applicationtype > 1)
             {
                 Plot1.Colors[0] = gridforegroundcolor;
                 Plot1.BGColor   = m_colorlevel;
             }
         }
     }
     if (this.CrossesOver(m_priceosc, 0))
     {
         Alerts.Alert("Indicator turning positive");
     }
     else
     {
         if (this.CrossesUnder(m_priceosc, 0))
         {
             Alerts.Alert("Indicator turning negative");
         }
     }
 }
        protected override void CalcBar()
        {
            m_linregvalue.Value = m_linearregvalue1[0];
            var m_linregavg = m_linregvalue.Average(smoothinglength);
            var m_serroravg = m_stderror1.Average(smoothinglength);

            m_lowerband.Value = (m_linregavg - m_serroravg);
            m_upperband.Value = (m_linregavg + m_serroravg);
            if ((((displace >= 0) || Bars.CurrentBar > Math.Abs(displace)) &&
                 Bars.CurrentBar >= smoothinglength))
            {
                Plot1.Set(displace, m_upperband.Value);
                Plot2.Set(displace, m_lowerband.Value);
                Plot3.Set(displace, m_linregavg);
                if ((displace <= 0))
                {
                    if (this.CrossesOver(price, m_lowerband))
                    {
                        Alerts.Alert("Price crossing over lower price band");
                    }
                    else
                    {
                        if (this.CrossesUnder(price, m_upperband))
                        {
                            Alerts.Alert("Price crossing under upper price band");
                        }
                    }
                }
            }
        }
 protected override void CalcBar()
 {
     m_avgexp.Value = m_xaverage1[0];
     if (((displace >= 0) ||
          Bars.CurrentBar > Math.Abs(displace)))
     {
         Plot1.Set(displace, m_avgexp.Value);
         if ((displace <= 0))
         {
             if (((PublicFunctions.DoubleGreater(price[0], m_avgexp.Value) &&
                   PublicFunctions.DoubleGreater(m_avgexp.Value, m_avgexp[1])) &&
                  PublicFunctions.DoubleLessEquals(m_avgexp[1], m_avgexp[2])))
             {
                 Alerts.Alert("Indicator turning up");
             }
             else
             {
                 if (((PublicFunctions.DoubleLess(price[0], m_avgexp.Value) &&
                       PublicFunctions.DoubleLess(m_avgexp.Value, m_avgexp[1])) &&
                      PublicFunctions.DoubleGreaterEquals(m_avgexp[1], m_avgexp[2])))
                 {
                     Alerts.Alert("Indicator turning down");
                 }
             }
         }
     }
 }
Пример #6
0
        protected override void CalcBar()
        {
            var m_avg   = m_averagefc1[0];
            var m_shift = (numatrs * this.AverageTrueRange(length));

            m_upperband.Value = (m_avg + m_shift);
            m_lowerband.Value = (m_avg - m_shift);
            if (((displace >= 0) ||
                 Bars.CurrentBar > Math.Abs(displace)))
            {
                Plot1.Set(displace, m_upperband.Value);
                Plot2.Set(displace, m_lowerband.Value);
                Plot3.Set(displace, m_avg);
                if ((displace <= 0))
                {
                    if (this.CrossesOver(price, m_upperband))
                    {
                        Alerts.Alert("Price crossing over upper band");
                    }
                    else
                    {
                        if (this.CrossesUnder(price, m_lowerband))
                        {
                            Alerts.Alert("Price crossing under lower band");
                        }
                    }
                }
            }
        }
Пример #7
0
 protected override void CalcBar()
 {
     m_chaikinoscval.Value = m_chaikinosc1[0];
     Plot1.Set(0, m_chaikinoscval.Value);
     Plot2.Set(0, 0);
     if ((Color.Empty != upcolor && Color.Empty != dncolor))
     {
         var m_colorlevel = m_normgradientcolor1[0];
         if ((m_applicationtype == 1))
         {
             Plot1.Colors[0] = m_colorlevel;
         }
         else
         {
             if (m_applicationtype > 1)
             {
                 Plot1.Colors[0] = gridforegroundcolor;
                 Plot1.BGColor   = m_colorlevel;
             }
         }
     }
     if (((Bars.Close.LowestBar(alertlength) == 0) &&
          PublicFunctions.DoubleGreater(m_chaikinoscval.LowestBar(alertlength), 0)))
     {
         Alerts.Alert("Bullish divergence - new low not confirmed");
     }
     else
     {
         if (((Bars.Close.HighestBar(alertlength) == 0) &&
              PublicFunctions.DoubleGreater(m_chaikinoscval.HighestBar(alertlength), 0)))
         {
             Alerts.Alert("Bearish divergence - new high not confirmed");
         }
     }
 }
Пример #8
0
 protected override void CalcBar()
 {
     m_volroc.Value = (Bars.VolumeROC(length) * 100);
     Plot1.Set(m_volroc.Value);
     Plot2.Set(0);
     if ((Color.Empty != upcolor && Color.Empty != dncolor))
     {
         var m_colorlevel = m_normgradientcolor1[0];
         if ((m_applicationtype == 1))
         {
             Plot1.Colors[0] = m_colorlevel;
         }
         else
         {
             if (m_applicationtype > 1)
             {
                 Plot1.Colors[0] = gridforegroundcolor;
                 Plot1.BGColor   = m_colorlevel;
             }
         }
     }
     if (this.CrossesOver(m_volroc, 0))
     {
         Alerts.Alert("Indicator turning positive");
     }
     else
     {
         if (this.CrossesUnder(m_volroc, 0))
         {
             Alerts.Alert("Indicator turning negative");
         }
     }
 }
 protected override void CalcBar()
 {
     m_ccivalue.Value = Bars.CCI(length);
     Plot1.Set(0, m_ccivalue.Value);
     Plot2.Set(0, overbought);
     Plot3.Set(0, oversold);
     if (PublicFunctions.DoubleGreater(m_ccivalue.Value, overbought))
     {
         Plot1.Colors[0] = overbcolor;
     }
     else
     {
         if (PublicFunctions.DoubleLess(m_ccivalue.Value, oversold))
         {
             Plot1.Colors[0] = overscolor;
         }
     }
     if (this.CrossesOver(m_ccivalue, oversold))
     {
         Alerts.Alert("Indicator exiting oversold zone");
     }
     else
     {
         if (this.CrossesUnder(m_ccivalue, overbought))
         {
             Alerts.Alert("Indicator exiting overbought zone");
         }
     }
 }
Пример #10
0
 protected override void CalcBar()
 {
     m_pctchg.Value = 100 * Bars.Close.PercentChange(length, 0);
     Plot1.Set(0, m_pctchg.Value);
     Plot2.Set(0, hialert);
     Plot3.Set(0, loalert);
     if (PublicFunctions.DoubleGreater(m_pctchg.Value, hialert))
     {
         Plot1.Colors[0] = upcolor;
     }
     else
     {
         if (PublicFunctions.DoubleLess(m_pctchg.Value, loalert))
         {
             Plot1.Colors[0] = dncolor;
         }
     }
     if (this.CrossesOver(m_pctchg, hialert))
     {
         Alerts.Alert("Bullish alert");
     }
     else
     {
         if (this.CrossesUnder(m_pctchg, loalert))
         {
             Alerts.Alert("Bearish alert");
         }
     }
 }
        protected override void CalcBar()
        {
            EResolution resolution = Bars.Info.Resolution.Type;

            if (resolution < EResolution.Day || EResolution.Volume == resolution ||
                EResolution.Second == resolution || resolution > EResolution.Quarter)
            {
                var m_totalticks = (Bars.UpTicks[0] + Bars.DownTicks[0]);
                if (PublicFunctions.DoubleGreater(m_totalticks, 0))
                {
                    m_volratio.Value = ((100
                                         * (Bars.UpTicks[0] - Bars.DownTicks[0]))
                                        / ((m_totalticks)));
                }
                else
                {
                    m_volratio.Value = 0;
                }
                m_volratioavg.Value = m_xaverage1[0];
                Plot1.Set(0, m_volratioavg.Value);
                Plot2.Set(0, 0);
                Plot1.Colors[0] = m_normgradientcolor1[0];
                if (this.CrossesOver(m_volratioavg, upvolalertpct))
                {
                    Alerts.Alert("UpVol alert");
                }
                else
                {
                    if (this.CrossesUnder(m_volratioavg, dnvolalertpct))
                    {
                        Alerts.Alert("DnVol alert");
                    }
                }
            }
        }
        protected override void CalcBar()
        {
            var m_fastavg = m_averagefc1[0];
            var m_medavg  = m_averagefc2[0];
            var m_slowavg = m_averagefc3[0];

            if (displace >= 0 || Bars.CurrentBar > Math.Abs(displace))
            {
                Plot1.Set(displace, m_fastavg);
                Plot2.Set(displace, m_medavg);
                Plot3.Set(displace, m_slowavg);
                if ((displace <= 0))
                {
                    m_condition1.Value = ((PublicFunctions.DoubleGreater(price[0], m_fastavg) &&
                                           PublicFunctions.DoubleGreater(m_fastavg, m_medavg)) &&
                                          PublicFunctions.DoubleGreater(m_medavg, m_slowavg));
                    if ((m_condition1.Value &&
                         (m_condition1[1] == false)))
                    {
                        Alerts.Alert("Bullish alert");
                    }
                    else
                    {
                        m_condition2.Value = ((PublicFunctions.DoubleLess(price[0], m_fastavg) &&
                                               PublicFunctions.DoubleLess(m_fastavg, m_medavg)) &&
                                              PublicFunctions.DoubleLess(m_medavg, m_slowavg));
                        if ((m_condition2.Value &&
                             (m_condition2[1] == false)))
                        {
                            Alerts.Alert("Bearish alert");
                        }
                    }
                }
            }
        }
Пример #13
0
        protected override void CalcBar()
        {
            var m_avg  = m_averagefc1[0];
            var m_sdev = bollingerprice.StandardDeviationCustom(length, 1);

            m_upperband.Value = (m_avg + (numdevsup * m_sdev));
            m_lowerband.Value = (m_avg + (numdevsdn * m_sdev));
            if (((displace >= 0) || Bars.CurrentBar > Math.Abs(displace)))
            {
                Plot1.Set(displace, m_upperband.Value);
                Plot2.Set(displace, m_lowerband.Value);
                Plot3.Set(displace, m_avg);
                if ((displace <= 0))
                {
                    if (this.CrossesOver(testpricelband, m_lowerband))
                    {
                        Alerts.Alert("Price crossing over lower price band");
                    }
                    else
                    {
                        if (this.CrossesUnder(testpriceuband, m_upperband))
                        {
                            Alerts.Alert("Price crossing under upper price band");
                        }
                    }
                }
            }
        }
 protected override void CalcBar()
 {
     m_moneyflowval.Value = Bars.MoneyFlow(length);
     Plot1.Set(0, m_moneyflowval.Value);
     Plot2.Set(0, overbought);
     Plot3.Set(0, oversold);
     if (PublicFunctions.DoubleGreater(m_moneyflowval.Value, overbought))
     {
         Plot1.Colors[0] = overbcolor;
     }
     else
     {
         if (PublicFunctions.DoubleLess(m_moneyflowval.Value, oversold))
         {
             Plot1.Colors[0] = overscolor;
         }
     }
     if (((Bars.Close.LowestBar(alertlength) == 0) &&
          PublicFunctions.DoubleGreater(m_moneyflowval.LowestBar(alertlength), 0)))
     {
         Alerts.Alert("Bullish divergence - new low not confirmed");
     }
     else
     {
         if (((Bars.Close.HighestBar(alertlength) == 0) &&
              PublicFunctions.DoubleGreater(m_moneyflowval.HighestBar(alertlength), 0)))
         {
             Alerts.Alert("Bearish divergence - new high not confirmed");
         }
     }
 }
Пример #15
0
 protected override void CalcBar()
 {
     m_lowerband.Value = (m_averagefc1[0] * m_pctbelowfactor);
     m_upperband.Value = (m_averagefc2[0] * m_pctabovefactor);
     if (((displace >= 0) ||
          Bars.CurrentBar > Math.Abs(displace)))
     {
         Plot1.Set(displace, m_upperband.Value);
         Plot2.Set(displace, m_lowerband.Value);
         if ((displace <= 0))
         {
             if (this.CrossesOver(pricel, m_lowerband))
             {
                 Alerts.Alert("Price crossing over lower price band");
             }
             else
             {
                 if (this.CrossesUnder(priceh, m_upperband))
                 {
                     Alerts.Alert("Price crossing under upper price band");
                 }
             }
         }
     }
 }
Пример #16
0
 protected override void CalcBar()
 {
     m_swingx.Value = SwingIndex.Calc(Bars, 0);
     Plot1.Set(0, m_swingx.Value);
     Plot2.Set(0, 0);
     if (!upcolor.IsEmpty && !dncolor.IsEmpty)
     {
         var m_colorlevel = m_normgradientcolor1[0];
         if ((m_applicationtype == 1))
         {
             Plot1.Colors[0] = m_colorlevel;
         }
         else
         {
             if (m_applicationtype > 1)
             {
                 Plot1.Colors[0] = gridforegroundcolor;
                 Plot1.BGColor   = m_colorlevel;
             }
         }
     }
     if (this.CrossesOver(m_swingx, 0))
     {
         Alerts.Alert("Indicator turning positive");
     }
     else
     {
         if (this.CrossesUnder(m_swingx, 0))
         {
             Alerts.Alert("Indicator turning negative");
         }
     }
 }
 protected override void CalcBar()
 {
     m_eom.Value = Bars.CalcEaseOfMovementSeries().Average(smoothinglength);
     Plot1.Set(0, m_eom.Value);
     Plot2.Set(0, 0);
     if ((Color.Empty != upcolor && Color.Empty != dncolor))
     {
         var m_colorlevel = m_normgradientcolor1[0];
         if ((m_applicationtype == 1))
         {
             Plot1.Colors[0] = m_colorlevel;
         }
         else
         {
             if (m_applicationtype > 1)
             {
                 Plot1.Colors[0] = gridforegroundcolor;
                 Plot1.BGColor   = m_colorlevel;
             }
         }
     }
     if (this.CrossesOver(m_eom, 0))
     {
         Alerts.Alert("Indicator turning positive");
     }
     else
     {
         if (this.CrossesUnder(m_eom, 0))
         {
             Alerts.Alert("Indicator turning negative");
         }
     }
 }
Пример #18
0
        protected override void CalcBar()
        {
            var m_fastavg = price.Average(fastlength);
            var m_slowavg = price.Average(slowlength);

            if (PublicFunctions.DoubleGreater(m_fastavg, m_slowavg))
            {
                Plot1.Set(0, Bars.High[0], upcolor);
                Plot2.Set(0, Bars.Low[0], upcolor);
                Alerts.Alert("FastAvg above SlowAvg");
            }
            else
            {
                if (PublicFunctions.DoubleLess(m_fastavg, m_slowavg))
                {
                    Plot1.Set(0, Bars.High[0], dncolor);
                    Plot2.Set(0, Bars.Low[0], dncolor);
                    Alerts.Alert("FastAvg below SlowAvg");
                }
                else
                {
                    Plot1.Reset();
                }
            }
        }
Пример #19
0
 protected override void CalcBar()
 {
     if (Bars.Doji(percent, 0))
     {
         Plot1.Set(0, Bars.Close[0]);
         Alerts.Alert("Doji");
     }
 }
 protected override void CalcBar()
 {
     if (PublicFunctions.DoubleLess(Bars.Low[0], Bars.Low.Lowest(length, 1)))
     {
         Plot1.Set(0, Bars.Low[0]);
         Alerts.Alert();
     }
 }
 protected override void CalcBar()
 {
     if (m_c_shootingstar1[0] == 1)
     {
         Plot1.Set(0, Bars.Close[0]);
         Alerts.Alert("ShootingStar");
     }
 }
Пример #22
0
 protected override void CalcBar()
 {
     if (PublicFunctions.DoubleGreater(Bars.High[0], Bars.High.Highest(length, 1)))
     {
         Plot1.Set(0, Bars.High[0]);
         Alerts.Alert();
     }
 }
Пример #23
0
 protected override void CalcBar()
 {
     if ((PublicFunctions.DoubleGreater(Bars.High[0], Bars.High[1]) &&
          PublicFunctions.DoubleLess(Bars.Low[0], Bars.Low[1])))
     {
         Plot1.Set(0, Bars.Close[0]);
         Alerts.Alert();
     }
 }
Пример #24
0
 protected override void CalcBar()
 {
     if ((Bars.Time[0].DayOfWeek == dayofwk))
     {
         Plot1.Set(0, Bars.High[0]);
         Plot2.Set(0, Bars.Low[0]);
         Alerts.Alert();
     }
 }
Пример #25
0
 protected override void CalcBar()
 {
     if (PublicFunctions.DoubleGreater(Bars.High[0], m_highesthi.Value))
     {
         Plot1.Set(0, Bars.High[0]);
         Alerts.Alert();
         m_highesthi.Value = Bars.High[0];
     }
 }
Пример #26
0
 protected override void CalcBar()
 {
     if (PublicFunctions.DoubleLess(Bars.Low[0], m_lowestlo))
     {
         Plot1.Set(0, Bars.Low[0]);
         Alerts.Alert();
         m_lowestlo = Bars.Low[0];
     }
 }
Пример #27
0
 protected override void CalcBar()
 {
     if (Bars.Next3rdFriday(1, 1) == 1)
     {
         Plot1.Set(0, Bars.High[0]);
         Plot2.Set(0, Bars.Low[0]);
         Alerts.Alert();
     }
 }
Пример #28
0
 protected override void CalcBar()
 {
     if (PublicFunctions.DoubleGreaterEquals(
             Volume[0], Volume.Average(avglength) * m_brkoutfactor)
         )
     {
         Plot1.Set(0, Bars.High[0]);
         Alerts.Alert();
     }
 }
 protected override void CalcBar()
 {
     m_ulcerx.Value = Bars.Close.UlcerIndex(length);
     Plot1.Set(0, m_ulcerx.Value);
     Plot2.Set(0, safelevel);
     if (this.CrossesOver(m_ulcerx, safelevel))
     {
         Alerts.Alert("Indicator crossing over Safe Level");
     }
 }
Пример #30
0
 protected override void CalcBar()
 {
     if (PublicFunctions.DoubleGreater(Bars.Low[0], Bars.High[1]))
     {
         Plot1.Set(0, Bars.High[0]);
         Alerts.Alert();
     }
     else
     {
         Plot1.Reset();
     }
 }