
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
hi all
im new
this is two part of my program
void OnTick()
{
for(int i =OrdersTotal()-1,OrdersTotal() >=0, i ++)
{
OrderSelect(i,SELECT_BY_POS,MODE_TRADES);
if( OrderType() == OP_BUY || OrderType() == OP_SELL)
{
Akhar();
}
---------------------------------------------------------------------------------------------------
void Akhar()
{
for(int i = OrdersTotal(),OrdersTotal()>= 2,i--)
{
OrderSelect(OrdersTotal()- 2,SELECT_BY_POS,MODE_TRADES);
OrderDelete(OrderTicket(),Orange);
}
in both of them i recieve this ,,,,,,, 'OrdersTotal' - class type expected
what i shoude to do