1. #1
    vibarco is offline Junior Member
    Join Date
    Nov 2012
    Posts
    20
    Points
    144
    Credits
    0
    Post Thanks / Like
    vBActivity - Stats
    vBActivity - Bars
    Follows
    0
    Following
    0
    Follow

    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.
    Last edited by vibarco; 02-03-2013 at 10:35 AM. Reason: More info

  2. #2
    vibarco is offline Junior Member
    Join Date
    Nov 2012
    Posts
    20
    Points
    144
    Credits
    0
    Post Thanks / Like
    vBActivity - Stats
    vBActivity - Bars
    Follows
    0
    Following
    0
    Follow
    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.

» Rankings

 

» The most downloaded indicators

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 18
    Last Post: 09-27-2013, 05:00 PM
  2. can anyone help me with leverage?
    By antone in forum General Discussion
    Replies: 31
    Last Post: 12-02-2012, 10:20 AM
  3. How can make code work every second ???
    By mercury_man in forum General Discussion
    Replies: 4
    Last Post: 09-16-2007, 10:28 AM
  4. does metatrader work with optionsXpress?
    By Aaragorn in forum Metatrader 4
    Replies: 3
    Last Post: 11-30-2006, 05:20 AM
  5. OrderLots() Can I have help with Coding please?
    By waltini in forum Metatrader 4
    Replies: 7
    Last Post: 10-09-2006, 01:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •