Thread: MQL4 Learning
View Single Post
  #354 (permalink)  
Old 03-30-2008, 10:50 PM
MiniMe's Avatar
MiniMe MiniMe is offline
Senior Member
 
Join Date: Nov 2006
Location: Montréal
Posts: 1,171
MiniMe is on a distinguished road
it would be easier to post the whole code , as the one you post doesn't compile
here is my comments
1- first you need to check OrderIsOpen=0 or 1 before you enter the loop , i think that is done by calling Mytotal() at start then set OrderIsOpen to 0 if Mytotal==0 and set OrderIsOpen to 1 if Mytotal==1

2- you don't need to keep using return(0) in the main code that would terminate the code
3- I am not able to compile the code as its missing the main function but I guess if you take care of the above points you should be ok
__________________
Risk comes from not knowing what you're doing


Last edited by MiniMe; 03-31-2008 at 02:20 AM.
Reply With Quote