Can an EA work with cfd index instruments?

 

Hi All,

is posible to code and EA that works with this symbol properties:

I am trying in strategy tester but i can`t. I see this two errors in log:

12:33:35 Tester: exchange rate cannot be calculated

12:33:35 Tester: margin exchange rate cannot be calculated

Regards,

Vince.

 

Hi all,

I've solved the error but now i have another problem. My EA is continously setting a bad SL, i think is because i have to round the price with the tick size of the instrument. Could you help me? if you look the above screenshot the tick size is 0.25, how can round the SL price to a valid tick size price?.

Best,

Vince.

Reason: