Please help with one trade per day code - page 2

 
Comments that do not relate to this topic, have been moved to "calculate the price scale range ( Max-Min)".
 

Many thanks, now no errors-please explain the statement  , when you use exclamation mark (!) before the orderselect, does that not mean that you are not selecting any orders? 

 if(!OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)) continue;
 
prweza:

Many thanks, now no errors-please explain the statement  , when you use exclamation mark (!) before the orderselect, does that not mean that you are not selecting any orders? 


The ea is being tested on H1 chart but still trading more than once in 24 hours.

 
 if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY))

without the ! it means if the OrderSelect is successful

or

 if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)==true)


 if(!OrderSelect(i,SELECT_BY_POS,MODE_HISTORY))

with the ! it means if the OrderSelect failed

or

 if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)==false)
 
Keith Watford:

without the ! it means if the OrderSelect is successful

or

 if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)==true)


with the ! it means if the OrderSelect failed

or


Thanks, the code now works, really appreciated Keith!!