Exemplo n.º 1
0
Arquivo: Program.cs Projeto: ifzz/FDK
		static void Main(string[] args)
		{
			//Library.Path = @"<FRE>";
            Library.Path = Environment.CurrentDirectory;

			string address = Settings1.Default.Server;
			string username = Settings1.Default.Login;
			string password = Settings1.Default.Password;

			Console.WriteLine();

			MyAdviser adviser = new MyAdviser();
            adviser.MaximumOpenVolumeLots = Settings1.Default.MaximumOpenVolumeLots;
            adviser.RateTrailingDistance = Settings1.Default.RateTrailingDistance;
            using (CLauncher launcher = new CLauncher(address, username, password, Environment.CurrentDirectory, Settings1.Default.Symbol, PriceType.Bid, BarPeriod.M1, adviser))
			{
				launcher.Start();
				Console.ReadKey();
				launcher.Stop();
			}
		}
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            //Library.Path = @"<FRE>";
            Library.Path = Environment.CurrentDirectory;

            string address  = Settings1.Default.Server;
            string username = Settings1.Default.Login;
            string password = Settings1.Default.Password;

            Console.WriteLine();

            MyAdviser adviser = new MyAdviser();

            adviser.MaximumOpenVolumeLots = Settings1.Default.MaximumOpenVolumeLots;
            adviser.RateTrailingDistance  = Settings1.Default.RateTrailingDistance;
            using (CLauncher launcher = new CLauncher(address, username, password, Environment.CurrentDirectory, Settings1.Default.Symbol, PriceType.Bid, BarPeriod.M1, adviser))
            {
                launcher.Start();
                Console.ReadKey();
                launcher.Stop();
            }
        }
Exemplo n.º 3
0
Arquivo: Program.cs Projeto: ifzz/FDK
		static void Main(string[] args)
		{
           MyAdviser adviser = new MyAdviser();

            //using (MqlLauncher launcher = new MqlLauncher
            //    (
            //    Settings.Default.Address,
            //    Settings.Default.Username,
            //    Settings.Default.Password,
            //    null,
            //    Settings.Default.Symbol,
            //    Settings.Default.PriceType,
            //    new BarPeriod(Settings.Default.Periodicity),
            //    adviser)
            //    )

            using (var launcher = new MqlLauncher(Settings.Default, adviser))
            {
                launcher.Start();
                Console.ReadKey();
                launcher.Stop();
            }

		}
Exemplo n.º 4
0
Arquivo: Program.cs Projeto: ifzz/FDK
		static void Main(string[] args)
		{
			MyAdviser adviser = new MyAdviser();
		}