/* Add this BuyAtMarket method and nothing else needs to be changed */ // It uses a limit order that executes at the opening price so that the basis price is the same as the execution price Position BuyAtMarket(int n, string sigName = "") { if (n >= Bars.Count) return base.BuyAtMarket(n, sigName); // create market order alert else return BuyAtLimit(n, Open[n], sigName); }
System.Diagnostics.Trace.WriteLine( whatever_you_wanted_to_send_to_PrintDebug );
if( bar == Bars.Count-1 ) ) Bars.Tag = some_double_value;
// Fails: //if (Positions[n].EntryBar == bar + 1) // Workaround: if(Positions[n].EntryDate == bars.Date[bar + 1].Date)
double MonthStartEquity = EquityCurve[0]; DateTime b = bars.Date[bar]; DateTime tmp = new DateTime(b.Year, b.Month, 1); MonthStartEquity = EquityCurve[EquityCurve.ConvertDateToBar(tmp, false)];
Error Unable to copy file "MyExtension.dll" to "..\Program Files\MS123\Wealth-Lab Developer 6\...". Access to the path is denied.
get { //INCORRECT ! throw new NotImplementedException(); }
error CS1704 @ (0.0): An assembly with the same simple name "TASCIndicators, Version=1.0.2.0, Culture=neutral, PublicKeyToken=nul