please I have a problem about get the comparative of the Unrealized PNL value.
Would like to filter only when value is > 10 point but do not work, the string is even TRUE!
if (Position.MarketPosition == MarketPosition.Long
&& Position.GetProfitLoss(Close[0], PerformanceUnit.Points) > 10);
{
Print (" Long trade pnl:" + Position.GetProfitLoss(Close[0], PerformanceUnit.Points));
}
if (Position.MarketPosition == MarketPosition.Short
&& Position.GetProfitLoss(Close[0], PerformanceUnit.Points) > 10);
{
Print (" Short trade pnl:" + Position.GetProfitLoss(Close[0], PerformanceUnit.Points));
}
The Print Output work fine but print all time...even!!
Where is the error please?
Many Thanks!
Comment