You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
mean if i order 3. i want to get number 3 information, and the first and second no need information get it.
thanks
egt520
switch ( OrderType() )
{
case OP_BUY:
_BuyType = OrderType();
_BuyTicket = OrderTicket();
_BuyLots = NormalizeDouble( OrderLots(), Digits );
_BuyOpenPrice = NormalizeDouble( OrderOpenPrice(), Digits );
_BuyStopLoss = NormalizeDouble( OrderStopLoss(), Digits );
_BuyTakeProfit = NormalizeDouble( OrderTakeProfit(), Digits );
_BuyOpenTime = OrderOpenTime();
_BuyProfit = NormalizeDouble( OrderProfit(), 2 );
_BuySwap = NormalizeDouble( OrderSwap(), 2 );
_BuyCommission = NormalizeDouble( OrderCommission(), 2 );
_BuyComment = OrderComment();
break;
case OP_SELL:
_SellType = OrderType();
_SellTicket = OrderTicket();
_SellLots = NormalizeDouble( OrderLots(), Digits );
_SellOpenPrice = NormalizeDouble( OrderOpenPrice(), Digits );
_SellStopLoss = NormalizeDouble( OrderStopLoss(), Digits );
_SellTakeProfit = NormalizeDouble( OrderTakeProfit(), Digits );
_SellOpenTime = OrderOpenTime();
_SellProfit = NormalizeDouble( OrderProfit(), 2 );
_SellSwap = NormalizeDouble( OrderSwap(), 2 );
_SellCommission = NormalizeDouble( OrderCommission(), 2 );
_SellComment = OrderComment();
break;