whitmark
07-06-2007, 06:17 PM
I would like to suggest that a CalculationMode.Dollar be developed for the SetStopLoss(), SetTrailStop(), and SetProfitTarget() built-in functions for use in the the fully disclosured overide signiture. In my attempt to get CalculationMode.Ticks to work as a substitute by using:
StopLossTicks = StopLossDollar / (Instrument.MasterInstrument.PointValue * Ticksize);
SetStopLoss("BuyEntry", CalculationMode.Ticks, StopLossTicks, false);
I would get an error when I execute this in the Initialize() method but not in the OnBarUpdate() method. I realize other override signitures can accommodate Dollar amounts as a value, but then I loose the ability to address a specific fromEntrySignal reference. Is this currently a limitation or am I overlooking something? Any thoughts on workarounds would be appreciated. Thanks!
Regards,
Whitmark
StopLossTicks = StopLossDollar / (Instrument.MasterInstrument.PointValue * Ticksize);
SetStopLoss("BuyEntry", CalculationMode.Ticks, StopLossTicks, false);
I would get an error when I execute this in the Initialize() method but not in the OnBarUpdate() method. I realize other override signitures can accommodate Dollar amounts as a value, but then I loose the ability to address a specific fromEntrySignal reference. Is this currently a limitation or am I overlooking something? Any thoughts on workarounds would be appreciated. Thanks!
Regards,
Whitmark