public static TrailTrade GetTrailTrade(Trade trade) { var tl = new TrailTrade(); CopyProperties(tl, trade); return(tl); }
public TrailingStop() { Algo.LoadPrice(); foreach (var t in Algo.Trades) { _Trades.Add(TrailTrade.GetTrailTrade(t)); } }
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; }
public void SetTriggers() { TrailTrade.SetTrailTrigger(460, 65, _Trades); }