Errors, bugs, questions - page 890

 
A100:

it depends on the size of the contract, for silver the contract is 5000 (only it is not the tick size but the value), but the tick size


SYMBOL_TRADE_TICK_SIZE - это минимальное изменение цены 

I need to know how much a tick changes for example if I buy or sell 1/0,1/0,01 lots.

For euros it is correct, but for silver and gold it is unclear. For silver, if the price changes by 0.01, the price will change by $50, and for gold, if the price changes by 0.01, the price will change by 0.01?

 
Konstantin83:

If the price of silver changes by 0.01 the price will change by $50?

0,01 x 5000 = 50

5000 is the size of the silver contract

 
A100:

0,01 x 5000 = 50

5000 is the size of a silver contract

Then how do I know the change value of a tick for example when I buy or sell 1/0.1/0.01 lots of gold or silver? How can I get these values programmatically?

Ticker Initial margin Spread Spread value Tick Tick value Position value Maximum leverage
GC 2800 0.50 USD 50.00 USD 0.10 USD 10.00 USD 169 880.00 USD 61
ZI 3300 2.00 cent 100.00 USD 0.50 cent 25.00 USD 165 025.00 USD
Документация по MQL5: Стандартные константы, перечисления и структуры / Состояние окружения / Информация об инструменте
Документация по MQL5: Стандартные константы, перечисления и структуры / Состояние окружения / Информация об инструменте
  • www.mql5.com
Стандартные константы, перечисления и структуры / Состояние окружения / Информация об инструменте - Документация по MQL5
 

In one of the DC.

silver 2012.12.04 21:07:26 TestSilver (XAGUSD.e,H1) LotCost(Current) = 0.05000
Gold 2012.12.04 21:08:31 TestSilver (XAUUSD.e,H1) LotCost(Current) = 0.10000
EUR 2012.12.04 21:08:50 TestSilver (EURUSD.e,H1) LotCost(Current) = 1.00000


Tick value is the same in DC and metaquotes, while silver and gold are different...

 

need complete information: contract value and accuracy

 
metaquote server

contract * tick = tick value

gold 100 * 0.01 = 1 in market review - symbol specification value 0.01

silver 5000 * 0,01 = 50 in market watch - symbol specification value 0

Files:
v4s3nh.png  50 kb
lqypote.png  50 kb
 
  1. Trading on these characters is disabled (I think this is the main reason for the discrepancy)
  2. 0 - clearly an invalid value - I've seen a request to correct this before
 

Why are the quotations at the DC practically standing still?

Example:

At MQ in the terminal the quotes change almost every second, while there it seems as if they change once a minute.

Probably because they do not take + - small fluctuations, and when the price starts to change significantly, it changes. Right?

I now have to look in the MQ terminal to trade with that broker =)

 

Error 4756

The peculiarity is that a correct initialization

        MqlTradeRequest request = { 0 };
        request.symbol = "EURUSD";
        request.action = TRADE_ACTION_SLTP;
        request.sl = 1.3200;
        request.type_filling = WRONG_VALUE;
        request.type = WRONG_VALUE;

error 4756 when executing, and the error initialization

         MqlTradeRequest request = { 0 };
        request.symbol = "EURUSD";
        request.action = TRADE_ACTION_SLTP;
        request.sl = 1.3200;
        request.type_filling = ORDER_FILLING_FOK;
        request.type = ORDER_TYPE_BUY;

on the contrary - it works without error at that

TRADE_ACTION_SLTP should not react on request fields at all, except

  • action
  • symbol
  • sl
  • tp
except for

 
A100: TRADE_ACTION_SLTP should not react to request fields at all
This was the case until last fall. Then there were a lot of questions on the forum as to why an error was returned when filling out a trade request as usual. As a result, it was advised to zero the request variable, as you did.
Reason: