Search found 4 matches
- Wed Apr 22, 2015 2:30 pm
- Forum: General Discussion
- Topic: Custom lot calculation vs AccountFreeMarginCheck()
- Replies: 7
- Views: 22163
Re: Custom lot calculation vs AccountFreeMarginCheck()
Ok, I'm getting closer to solution. A like problem was described here: http://www.tickstory.com/forum/viewtopic.php?f=4&t=275 : The MT4 tester, following the hack by your program, issues a wrong number in response to the query MarketInfo(EURUSD, MODE_MARGINREQUIRED)). For EURUSD, the lot price (...
- Sun Apr 19, 2015 1:09 pm
- Forum: General Discussion
- Topic: Custom lot calculation vs AccountFreeMarginCheck()
- Replies: 7
- Views: 22163
Re: Custom lot calculation vs AccountFreeMarginCheck()
Thanks you kindly, I know where to enter this settings but.. the question was: How do Tickstory obtain this values for 'Free Margin Mode'? As this values are obtained via tickstory script, so its done by some mql4 commands. Can you provide us with the line of code with this calculations. Seems there...
- Fri Apr 17, 2015 10:43 am
- Forum: General Discussion
- Topic: Custom lot calculation vs AccountFreeMarginCheck()
- Replies: 7
- Views: 22163
Re: Custom lot calculation vs AccountFreeMarginCheck()
Thank's for reply tickstory! How do Tickstory obtain this values? I didn't find any straight analogs in mql4 MarketInfo(): MODE_PROFITCALCMODE: Profit calculation mode. 0 - Forex; 1 - CFD; 2 - Futures MODE_MARGINCALCMODE: Margin calculation mode. 0 - Forex; 1 - CFD; 2 - Futures; 3 - CFD for indices ...
- Tue Apr 14, 2015 3:43 pm
- Forum: General Discussion
- Topic: Custom lot calculation vs AccountFreeMarginCheck()
- Replies: 7
- Views: 22163
Custom lot calculation vs AccountFreeMarginCheck()
Hi, first of all thanks for providing us such a powerful tool for free! My problem is that following lot calculation check code: // lot calc for buy: onelotprice=Ask*(MarketInfo("EURUSD",MODE_LOTSIZE)/leverage); double volume, moneytospend; moneytospend=AccountFreeMargin()*lot_mult; volume...
