Some support please :)

Created at 08 Oct 2012, 00:36
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
B0

b0risl33t

Joined 07.10.2012

Some support please :)
08 Oct 2012, 00:36


Cant figure out whats wrong i get Invalid Expression term else

protected override void OnPositionClosed(Position closedPosition)
        {
            if (closedPosition.GrossProfit > 0)
            {
                ExecuteOrder(InitialVolume, closedPosition.TradeType);
            }
            if  (closedPosition.GrossProfit < 0 && closedPosition.TradeType == TradeType.Sell);
            {     
                ExecuteOrder((int) position.Volume * 2, TradeType.Buy);
            }
            else if (closedPosition.GrossProfit < 0 && closedPosition.TradeType == TradeType.Buy);
            {
                ExecuteOrder((int) position.Volume * 2, TradeType.Sell);
            }
   }

 


@b0risl33t
Replies

b0risl33t
08 Oct 2012, 01:05

solved

solved 


@b0risl33t