예제 #1
0
파일: Program.cs 프로젝트: 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();
			}
		}
예제 #2
0
파일: Program.cs 프로젝트: hombrevrc/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();
            }
        }
예제 #3
0
파일: Program.cs 프로젝트: 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();
            }

		}
예제 #4
0
파일: Program.cs 프로젝트: ifzz/FDK
		static void Main(string[] args)
		{
			MyAdviser adviser = new MyAdviser();
		}