Errors, bugs, questions - page 1823

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi, could you tell me what's wrong, there is nothing in the market in the mt4 terminal, I tried to reload and re-login, in the terminal when I click on the balance it redirects to my account in the browser, but the windows Home, Favorites, Purchases are empty............ ?
IE Version What ???
IE version 11.0.9600.18537
This advice was helpful !
Do the following steps
1. in the terminal click on File - Open this directory. In the folder that opens go to Terminal and then to the Community folder.
2. Close the terminal.
3. Delete all *.dat files in folder C:\Users\%USERNAME%\AppData\Roaming\MetaQuotes\Terminal\Community.
4. Start terminal and try again.
5. If the above steps do not help, re-install MetaTrader 4 in another non-system folder.
I have a huge spread, but the spread in the depth chart is normal.
i.e. i can't put it down to the stock brakes, because the stock has decent liquidity that no one swallows.
the dax index futures on the amr demo
void OnStart()
{
Print(TOSTRING(AccountInfoString(ACCOUNT_SERVER)) +
TOSTRING(AccountInfoString(ACCOUNT_CURRENCY)) +
TOSTRING(SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_VALUE)));
MqlTick Tick;
double Margin;
if (SymbolInfoTick(_Symbol, Tick) && OrderCalcMargin(ORDER_TYPE_BUY, _Symbol, 10, Tick.ask, Margin))
Print(Margin);
else
Print("ERROR: " + (string)GetLastError());
}
outputs
2017.02.28 14:09:05.139 Test2 (USDSGD,H1) AccountInfoString(ACCOUNT_CURRENCY) = EUR
2017.02.28 14:09:05.139 Test2 (USDSGD,H1) SymbolInfoDouble(_Symbol,SYMBOL_TRADE_TICK_VALUE) = 0.0
2017.02.28 14:09:05.139 Test2 (USDSGD,H1)
2017.02.28 14:09:05.139 Test2 (USDSGD,H1) 0.0
2017.02.28 14:09:16.156 Test2 (USDSGD,H1) AccountInfoString(ACCOUNT_SERVER) = MetaQuotes-Demo
2017.02.28 14:09:16.156 Test2 (USDSGD,H1) AccountInfoString(ACCOUNT_CURRENCY) = EUR
2017.02.28 14:09:16.156 Test2 (USDSGD,H1) SymbolInfoDouble(_Symbol,SYMBOL_TRADE_TICK_VALUE) = 0.6741345252135286
2017.02.28 14:09:16.156 Test2 (USDSGD,H1)
2017.02.28 14:09:16.156 Test2 (USDSGD,H1) 943.58
This is the result of two starts. The first one is marked in yellow. OrderCalcMargin and TickValue give zeros - BAG. Repeated runs always give correct values.
After switching to another trading server or after placing a chart with a previously unused symbol, run the script
outputs
2017.02.28 14:09:05.139 Test2 (USDSGD,H1) AccountInfoString(ACCOUNT_CURRENCY) = EUR
2017.02.28 14:09:05.139 Test2 (USDSGD,H1) SymbolInfoDouble(_Symbol,SYMBOL_TRADE_TICK_VALUE) = 0.0
2017.02.28 14:09:05.139 Test2 (USDSGD,H1)
2017.02.28 14:09:05.139 Test2 (USDSGD,H1) 0.0
2017.02.28 14:09:16.156 Test2 (USDSGD,H1) AccountInfoString(ACCOUNT_SERVER) = MetaQuotes-Demo
2017.02.28 14:09:16.156 Test2 (USDSGD,H1) AccountInfoString(ACCOUNT_CURRENCY) = EUR
2017.02.28 14:09:16.156 Test2 (USDSGD,H1) SymbolInfoDouble(_Symbol,SYMBOL_TRADE_TICK_VALUE) = 0.6741345252135286
2017.02.28 14:09:16.156 Test2 (USDSGD,H1)
2017.02.28 14:09:16.156 Test2 (USDSGD,H1) 943.58
This is the result of two starts. The first one is marked in yellow. OrderCalcMargin and TickValue give zeros - BAG. Repeated runs always give correct values.
Is the SGDJPY symbol selected in the market review?
Selected. Zero happens only after the first run and not necessarily on SGD symbols.
SGDJPY got into the source by accident. The result is already shown for the corrected version, where "SGDJPY" is replaced by _Symbol.
Was it able to reproduce it?
Selected. Zero happens only after the first run and not necessarily on SGD symbols.
Yes, there is sometimes such a thing on different pairs, and always on gold, though I didn't notice it before. I had to add such a thing to the code.
if(TickSizeSymbol==0 || TickValueSymbol==0) return;
What could this be about?
I have a huge spread, but the spread in the depth chart is normal.
i.e. i can't put it down to the stock brakes, because the stock has decent liquidity that no one swallows.
i have a dax index futures on the amr demo.
The problem is that they are solving it now. however the question still remains - where does the server get the Ask and Bid prices past the cup.
Forum on trading, automated trading systems and strategy testing
New version of MetaTrader 4 build 1045 platform
Artyom Trishkin, 2017.02.28 19:52
2017.03.01 01:43:30.844 Windows 10 Home (x64 based PC), IE 11.00, UAC, 4 x Intel Core i3-3217 U @ 1.80 GHz, RAM: 1540 / 5005 Mb, HDD: 10397 / 260234 Mb, GMT+07:00
2017.03.01 01:43:30.844 Data Folder: D:\New MT4