GithubHelp home page GithubHelp logo

Comments (8)

EarnForex avatar EarnForex commented on July 17, 2024

Hi!

Thanks for reporting the issue!
Unfortunately, I cannot test this as AMP Futures wouldn't send me the confirmation email to open an account. Would it be possible for you to open another demo account there and send me the credentials (to [email protected])?

from positionsizer.

GitHubTrader avatar GitHubTrader commented on July 17, 2024

from positionsizer.

EarnForex avatar EarnForex commented on July 17, 2024

What's the email address I can send you my phone number to?

from positionsizer.

GitHubTrader avatar GitHubTrader commented on July 17, 2024

from positionsizer.

GitHubTrader avatar GitHubTrader commented on July 17, 2024

from positionsizer.

EarnForex avatar EarnForex commented on July 17, 2024

OK, thanks to @GitHubTrader I now have a working demo account.
I've looked into the issue with incorrect pip value and position size calculation. It seems, the problem is caused by either incorrect return of the TickValue for this symbols from the trading server or by incorrect MQL5 documentation on the calculation method (I don't remember if I tested Exchange Futures symbols with any other brokers). Most likely, it is the former as the TickValue right now returns 0.5, while this symbol is a $5 futures where $1 movement in the underlying index should cost $5.

Anyway, a rough fix can be applied by replacing line 5019 in PositionSizeCalculator.mqh:
if ((CalcMode == SYMBOL_CALC_MODE_FUTURES) || (CalcMode == SYMBOL_CALC_MODE_EXCH_FUTURES) || (CalcMode == SYMBOL_CALC_MODE_EXCH_FUTURES_FORTS))
with:
if ((CalcMode == SYMBOL_CALC_MODE_FUTURES) /*|| (CalcMode == SYMBOL_CALC_MODE_EXCH_FUTURES)*/ || (CalcMode == SYMBOL_CALC_MODE_EXCH_FUTURES_FORTS))

I will later look into the issue with the spread.

from positionsizer.

EarnForex avatar EarnForex commented on July 17, 2024

OK, I've looked into the spread issue, and it doesn't seem incorrect to me. The spread is calculated as Ask - Bid, which is exactly 25 points here:
spread

Please let me know if I am missing something.

from positionsizer.

EarnForex avatar EarnForex commented on July 17, 2024

Solved in 2.34.

from positionsizer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.