Here is the code I am using:
[/CODE]
if ((Position.MarketPosition == MarketPosition.Long)
&& (Position.GetUnrealizedProfitLoss(PerformanceUnit. Ticks, Close[0]) >= int(0.5 * Profit))
&& (Position.GetUnrealizedProfitLoss(PerformanceUnit. Ticks, Close[0]) > Position.GetUnrealizedProfitLoss(PerformanceUnit.T icks, Close[1])))
{
Stop = int(0.5 * Profit);
SetStopLoss("@BSDV_L", CalculationMode.Ticks, Stop, false);
}
[/QUOTE]
How can I convert the calculated new stop value to an integer so I can substitute it into the old Stop Value?
Thanks for your help.
DaveN
Comment