why not closing the order with OrderClosePrice()?
i am following that code from closing all open position indicator,
so how about code using ordercloseprice?
i am add the price on the end of close, like this:
OrderClose(OrderTicket(), OrderLots(),MarketInfo(OrderSymbol(), MODE_BID), 5, Red );
but error: ')' - wrong parameters count ..
how about the true format coding?
thx..
OrderClose(OrderTicket(), OrderLots(),OrderClosePrice(), 5, Red );//z
NormalizeDouble(OrderClosePrice(),Digits)
//z
ok, it's work..
thx very much..
OrderClose(OrderTicket(), OrderLots(),NormalizeDouble(MarketInfo(OrderSymbol(), MODE_BID),Digits), 5, Red );
same value with
OrderClose(OrderTicket(), OrderLots(),NormalizeDouble(OrderClosePrice(),Digits), 5, Red );
thx..
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
hello every one...
i am testing the code, for closing order like this:
but in log write error:
2010.10.03 00:07:03 2010.09.01 10:30 fish EURUSD,M15: OrderClose error 4107
2010.10.03 00:07:03 2010.09.01 10:30 fish EURUSD,M15: invalid price 1.27034000 for OrderClose function
2010.10.03 00:07:03 2010.09.01 10:30 fish EURUSD,M15: OrderClose error 4107
2010.10.03 00:07:03 2010.09.01 10:30 fish EURUSD,M15: invalid price 1.27034000 for OrderClose function
what should i add in that orderclose function?
is it using NormalizeDouble or not?
thx,,