fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Chart shows spread of 100, but actual is 1

    Questions & Answers
    2
    5
    1505
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      james last edited by

      Not sure, but wondering if this is actually a bug.

      In my chart shows the spread very prettily, but sadly wrongly. I'm assuming this is an fxDreema feature, but it seems to get the Alpari figures wrong by a factor of 100! 🙂

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        What symbol is this?

        1 Reply Last reply Reply Quote 0
        • J
          james last edited by

          US500.H

          1 Reply Last reply Reply Quote 0
          • fxDreema
            fxDreema last edited by

            I can't even found this instrument in my list. I'm not sure if spread indicator is wrong (it can be), but the pips size is calculated depending on the number of digits of the instrument and "Point format" defined in fxDreema. The little problem is, some instruments are currencies, others are metals... you know, different nature. It can be easy if you are building that EA especially for that instrument, then you can tune Point format in fxDreema.

            This is part of the code in the function that draws the spread indicator, I think you can see something here:

            
            int digits=MarketInfo(Symbol(),MODE_DIGITS);
            if ((digits==2 || digits==4)) {pip_value=(POINT_FORMAT/0.0001);}
            else if ((digits==3 || digits==5)) {pip_value=(POINT_FORMAT/0.00001);}
            else if ((digits==6))              {pip_value=(POINT_FORMAT/0.000001);}
            

            By default POINT_FORMAT is 0.0001, this value can be changed in fxDreema.
            digits - the number of digits after the point, this depends on the broker.

            1 Reply Last reply Reply Quote 0
            • J
              james last edited by

              This is still happening. On the Alpari demo account I have a true spread of 0.027 on USDJPY. On the chart the fxDreema generated EA shows 2.70. I'm calculating the spread thus:

              Spread=MarketInfo(Symbol(),MODE_ASK)-MarketInfo(Symbol(),MODE_BID);
              
              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post

              Online Users

              J
              D
              M
              R
              S

              15
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors