Forum

Need help debugging while loop

Can anyone help me with this? I have written the following while loop. The idea behind it is that it keeps updating winprice and looseprice with the current Ask price until the current ask price is equal to the stop loss or take profit . However it goes into a endless loop, because the Ask price

Need help finding compilation error

Can anyone help me find the error in the following script? I keep getting a "\end of program-unbalanced left parentheses" error . PlaceBuyOrder() and PlaceSellOrder() are functions I defined and which compile ok. Would appreciate anyone's help. This is my first attempt at writing a MQL4 program