Comments (8)
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.
from positionsizer.
What's the email address I can send you my phone number to?
from positionsizer.
from positionsizer.
from positionsizer.
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.
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:
Please let me know if I am missing something.
from positionsizer.
Solved in 2.34.
from positionsizer.
Related Issues (20)
- risk tab: it shows positive value when sl is in negative HOT 4
- Hotkey to move the stoploss at breakeaven
- Something wrong when calculator lot size with commision HOT 4
- Error in margin calculation for XAUUSD HOT 39
- Risk pending order not being calculated HOT 7
- Improvement Suggestion HOT 2
- I have to enable "algorithm trading" EVERY DAY HOT 5
- TP distance in points instead of a level not working properly HOT 2
- Risk of 1.5% displayed as 40%????????? HOT 1
- Add fix SL and TP (using ATR) distance using previous candle options HOT 8
- Wrong calculation of commission HOT 2
- Adding Stop-buy and Stop-sell entries HOT 1
- Problem selecting colours of the lines on MT5 for MACOS HOT 1
- Automatic breakeven pip calculator based on risk
- SL not being applied in MT5 HOT 2
- SL/Entry too close error (MT5) HOT 3
- PS EA failed to load on latest MT5 Build HOT 2
- Hotkey modifier for increase/decrease arrows HOT 2
- suggestion: option to hide entry line for market execution HOT 1
- Possible bug when opening 2 same size positions in GER30 ( DAX ) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from positionsizer.