I am getting an error "function definition unexpected" I typed it into the search engine and couldn't find anything on debugging it.. does anyone know what this means and what I should be looking for to correct it?
required to function call function 2 replies
EA error message (0) no error 6 replies
ProRealTime Function Error (ProScreener & Dhigh) 0 replies
stop loss function and edit time function for Breakout EA 1 reply
Function Definition Unexpected 6 replies
DislikedAs a habit of mine, each time I open a new { I put in two blank lines and put the opposing } so I don't forget. Then I go back and fill in the blank lines.Ignored
for(cnt=0;cnt<OrdersTotal();cnt++) { if (OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES)) { if (OrderSymbol()==Symbol() && OrderMagicNumber() == MagicNumber) { if (OrderType()==OP_BUY || OrderType()==OP_SELL) { MarketOpenOrders++; LastOrderOpenTime=OrderOpenTime(); } if (OrderType()==OP_SELLLIMIT || OrderType()==OP_BUYLIMIT) LimitOpenOrders++; OpenOrders++; } } }
{ I f price hits line1 && line1openorders<1 || price hits line2 && line2openorders<1 && currency || or price hits line3&& line3openorders <1 && currency || price hits line4 && line4openorders <1 && currency Then Determine Lot Size Open Order Else If price hits line0 or hits line 5, close trade }