public void  TecnicalAnalisis_OnAnalisisResult(TechnicalAnalisis result)
        {
            var results = result.AnalisisResult;

            //  result.OnAnalisisResult -= TecnicalAnalisis_OnAnalisisResult;


            if (results.Keys.Contains <String>("Overbought"))
            {
                if (results["Overbought"] >= 4)
                {
                    // timestamp - <assetname> - Status (overbought or oversold)
                    notifyIcon1.ShowBalloonTip(
                        5000,
                        "UpticBinary Asset Scanner - by Jolat'e",
                        String.Format("{0} - {1} - Status Overbought", DateTime.Now.ToLongDateString(), result.Quote["Pair"]),
                        ToolTipIcon.Info
                        );
                    string body = "Dear Uptick Analyst,\n \n The recent scan at " + DateTime.Now.ToLongDateString() + "on " + result.Quote["Pair"] + " found the following saturated items: \nOverbought" + result.assestsResult["Overbought"];
                    EmailSending.EmailSend(emailaddress, "Uptick Scanner", body);
                }
                else if (results["Overbought"] == 3)
                {
                    notifyIcon1.ShowBalloonTip(
                        5000,
                        "UpticBinary Asset Scanner - by Jolat'e",
                        String.Format("{0} - {1} - Status Pending", DateTime.Now.TimeOfDay, result.Quote["Pair"]),
                        ToolTipIcon.Info
                        );
                    string body = "Dear Uptick Analyst,\n \n The recent scan at " + DateTime.Now.ToLongDateString() + "on " + result.Quote["Pair"] + " found the following saturated items: \nOverbought" + result.assestsResult["Overbought"];
                    EmailSending.EmailSend(emailaddress, "Uptick Scanner", body);
                }
            }
            if (results.Keys.Contains <String>("Oversold"))
            {
                if (results["Oversold"] >= 4)
                {
                    notifyIcon1.ShowBalloonTip(
                        5000,
                        "UpticBinary Asset Scanner",
                        String.Format("{0} - {1} - Status Oversold", DateTime.Now.TimeOfDay, result.Quote["Pair"]),
                        ToolTipIcon.Info
                        );
                    string body = "Dear Uptick Analyst,\n \n The recent scan at " + DateTime.Now.ToLongDateString() + "on " + result.Quote["Pair"] + " found the following saturated items: \nOversold" + result.assestsResult["Oversold"];
                    EmailSending.EmailSend(emailaddress, "Uptick Scanner", body);
                }
                else if (results["Oversold"] == 3)
                {
                    notifyIcon1.ShowBalloonTip(
                        5000,
                        "UpticBinary Asset Scanner",
                        String.Format("{0} - {1} - Status Pending", DateTime.Now.TimeOfDay, result.Quote["Pair"]),
                        ToolTipIcon.Info
                        );
                    string body = "Dear Uptick Analyst,\n \n The recent scan at " + DateTime.Now.ToLongDateString() + "on " + result.Quote["Pair"] + " found the following saturated items: \nOversold" + result.assestsResult["Oversold"];
                    EmailSending.EmailSend(emailaddress, "Uptick Scanner", body);
                }
            }
        }
 private void timer1_Tick(object sender, EventArgs e)
 {
     foreach (JObject qt in quotes)
     {
         var tecnicalAnalisis = new TechnicalAnalisis(qt);
         tecnicalAnalisis.OnAnalisisResult += TecnicalAnalisis_OnAnalisisResult;
         TecnicalAnalisis_OnAnalisisResult(tecnicalAnalisis);
         tecnicalAnalisis.Analize();
     }
 }