Exemplo n.º 1
0
        public static TrailTrade GetTrailTrade(Trade trade)
        {
            var tl = new TrailTrade();

            CopyProperties(tl, trade);
            return(tl);
        }
Exemplo n.º 2
0
 public TrailingStop()
 {
     Algo.LoadPrice();
     foreach (var t in Algo.Trades)
     {
         _Trades.Add(TrailTrade.GetTrailTrade(t));
     }
 }
Exemplo n.º 3
0
        public void SetTriggers(int triggerPTS_Start, int triggerPTS_Stop, int trailSize_Start, int trailSize_Stop)
        {
            var sr = new StreamWriter(@"D:\Trailingstop");

            for (int pts = triggerPTS_Start; pts < triggerPTS_Stop; pts += 5)
            {
                for (int sz = trailSize_Start; sz < trailSize_Stop; sz += 5)
                {
                    sr.WriteLine(TrailTrade.SetTrailTrigger(pts, sz, _Trades));
                }
            }

            sr.Close();
            Console.WriteLine("COMPLETE");
        }
 public static TrailTrade GetTrailTrade(Trade trade)
 {
     var tl = new TrailTrade();
     CopyProperties(tl, trade);
     return tl;
 }
Exemplo n.º 5
0
 public void SetTriggers()
 {
     TrailTrade.SetTrailTrigger(460, 65, _Trades);
 }