/* 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, Openn, sigName); }
System.Diagnostics.Trace.WriteLine( whatever_you_wanted_to_send_to_PrintDebug );
if( bar == Bars.Count-1 ) ) Bars.Tag = some_double_value;
// Fails: //if (Positionsn.EntryBar == bar + 1) // Workaround: if(Positionsn.EntryDate == bars.Datebar + 1.Date)
double MonthStartEquity = EquityCurve0; DateTime b = bars.Datebar; DateTime tmp = new DateTime(b.Year, b.Month, 1); MonthStartEquity = EquityCurveEquityCurve.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