I'll spare you most of the backstory but suffice to say that I have been chasing an "unbalanced left parenthesis" for much longer than I care to.
I've been working on an EA based on the PSAR. Using the comment out features of /* */ I've been able to seemingly isolate the problem to a small section of code below. The full EA compiles when the code below is bracketed with the /* */. Without it ... the Error message '\end_of_program' - unbalanced left parenthesis surfaces.
I've tried everything I could possibly think of ... and a few others. Any suggestions???
Thank you in advance.
//+--------------------------------------------------+
//| Close - Long |
//+--------------------------------------------------+
int TradeClose=0;
if (SARD1>Bid) OrderSelect(magicnolong,SELECT_BY_POS,MODE_TRADES); TradeClose=1;
if (TradeClose=1, OrderClose(glbOrderTicket,Lots,Bid,3,CLR_NONE);
{
if (glbOrderType==OP_BUY) //confirm long open
{
if(SARD1>Bid && OrderMagicNumber(magicnolong) OrderClose(glbOrderTicket,Lots,Bid,3,CLR_NONE));
}
}
I've been working on an EA based on the PSAR. Using the comment out features of /* */ I've been able to seemingly isolate the problem to a small section of code below. The full EA compiles when the code below is bracketed with the /* */. Without it ... the Error message '\end_of_program' - unbalanced left parenthesis surfaces.
I've tried everything I could possibly think of ... and a few others. Any suggestions???
Thank you in advance.
//+--------------------------------------------------+
//| Close - Long |
//+--------------------------------------------------+
int TradeClose=0;
if (SARD1>Bid) OrderSelect(magicnolong,SELECT_BY_POS,MODE_TRADES); TradeClose=1;
if (TradeClose=1, OrderClose(glbOrderTicket,Lots,Bid,3,CLR_NONE);
{
if (glbOrderType==OP_BUY) //confirm long open
{
if(SARD1>Bid && OrderMagicNumber(magicnolong) OrderClose(glbOrderTicket,Lots,Bid,3,CLR_NONE));
}
}