while(IsStopped=false)
{
if (Bars<100 or IsConnected=false or IsTradeAllowed=false) return(0);
.......do some processing here ie buy/sell conditions, place orders, etc.
}
Is it ok to exit program if connection is broken? is this the correct thing to do?
Is the following endless loop code ok?
while(IsStopped=false) { if (Bars<100 or IsConnected=false or IsTradeAllowed=false) return(0); .......do some processing here ie buy/sell conditions, place orders, etc. }Is it ok to exit program if connection is broken? is this the correct thing to do?
Thanks Slawa for your help.
Regards
RJF