Forum

Closing a manually opened position

Hi, I'm trying to write a simple script to close a manually opened position, but I do not know how to let the system to "detect" an opened position. Need advise on this. Or is there any sample available? Thanks

Advise need on '\end_of_program' - unbalanced left parenthesis

I'm very new to MQL and trying hard to compile my own setup. After compilation, this is the message i got....."'\end_of_program' - unbalanced left parenthesis C:\Darren\Program\ODL MetaTrader 4\experts\Candlestick Reversal Trading - Darren.mq4 (110, 1)". Can anyone please advise me on this. Greatly