Forum

Error message: 'close' - invalid array access & 'ticket' - variable already defined

I am new to Forex trading and I know next to nothing about MQL4 coding but I would like to get this code working. I will appreciate your help. The errors from the MQL4 program are: 1. 'close' - invalid array access 2. 'ticket' - variable already defined. I have made the lines the errors refer to

How to make EA work on specific timeframe only within specific chart

Hello. I am looking for a code that will make an expert advisor work within a specific timeframe e.g. M_15 and also I need a code to make it work on only the chart I drop the EA. Currently, when I drop my EA (or scripts) on any chart in my MT4, it always attaches to AUDCAD . This happens even when