Что с digits и points?

 

Вот в цикле я вывожу данные по Digits и Points по многим валютным парам

 for(int i=0; i < End_V; i++)  

   {
  
     string Cimv = Sim_Vol(Simv(i)); Print(Cimv);
     double ask=SymbolInfoDouble(Cimv, SYMBOL_ASK); Print("ask = ", ask);
     double bid=SymbolInfoDouble(Cimv, SYMBOL_BID); Print("bid = ", bid);
     double pnt=SymbolInfoDouble(Cimv, SYMBOL_POINT); Print("Pnt = ", pnt);
     double dgt=SymbolInfoInteger(Cimv, SYMBOL_DIGITS); Print("dgt = ", dgt);

Вот странные результаты: Digits не соответсвует Points на истории ранее 2009 г. После 2010 всё соответсвует. Причём это касается не основного символа (на котором висит советник) - для мултивалютников. 

 

2010.06.09 15:05:55 Core 1 dgt =  4
2010.06.09 15:05:55 Core 1 Pnt =  1e-005
2010.06.09 15:05:55 Core 1 bid =  0.6219
2010.06.09 15:05:55 Core 1 ask =  0.6219
2010.06.09 15:05:55 Core 1 EURGBP: history synchronized from 1999.01.04 to 2010.06.08
2010.06.09 15:05:54 Core 1 EURGBP: load 8239 bytes of history data to synchronize
2010.06.09 15:05:54 Core 1 EURGBP: history synchronization completed [8 Kb]
2010.06.09 15:05:54 Core 1 EURGBP: history for 2010 year synchronized
2010.06.09 15:05:54 Core 1 EURGBP: history downloading completed
2010.06.09 15:05:54 Core 1 EURGBP: history downloading started
2010.06.09 15:05:53 Core 1 EURGBP: symbol synchronized. 3304 bytes of symbol info received.
2010.06.09 15:05:53 Core 1 EURGBP
2010.06.09 15:05:53 Core 1 dgt =  2
2010.06.09 15:05:53 Core 1 Pnt =  0.001
2010.06.09 15:05:53 Core 1 bid =  103.13
2010.06.09 15:05:53 Core 1 ask =  103.13
2010.06.09 15:05:53 Core 1 EURJPY: history synchronized from 1999.01.04 to 2010.06.08
2010.06.09 15:05:53 Core 1 EURJPY: load 9466 bytes of history data to synchronize
2010.06.09 15:05:53 Core 1 EURJPY: history synchronization completed [9 Kb]
2010.06.09 15:05:53 Core 1 EURJPY: history for 2010 year synchronized
2010.06.09 15:05:53 Core 1 EURJPY: history downloading completed
2010.06.09 15:05:52 Core 1 EURJPY: history downloading started
2010.06.09 15:05:51 Core 1 EURJPY: symbol synchronized. 3304 bytes of symbol info received.
2010.06.09 15:05:51 Core 1 EURJPY
2010.06.09 15:05:51 Core 1 dgt =  2
2010.06.09 15:05:51 Core 1 Pnt =  0.001
2010.06.09 15:05:51 Core 1 bid =  64.34
2010.06.09 15:05:51 Core 1 ask =  64.34
2010.06.09 15:05:51 Core 1 CHFJPY: history synchronized from 1999.01.07 to 2010.06.08
2010.06.09 15:05:51 Core 1 CHFJPY: load 9169 bytes of history data to synchronize
2010.06.09 15:05:51 Core 1 CHFJPY: history synchronization completed [8 Kb]
2010.06.09 15:05:51 Core 1 CHFJPY: history for 2010 year synchronized
2010.06.09 15:05:51 Core 1 CHFJPY: history downloading completed
2010.06.09 15:05:50 Core 1 CHFJPY: history downloading started
2010.06.09 15:05:49 Core 1 CHFJPY: symbol synchronized. 3304 bytes of symbol info received.
2010.06.09 15:05:49 Core 1 CHFJPY
2010.06.09 15:05:49 Core 1 dgt =  4
2010.06.09 15:05:49 Core 1 Pnt =  1e-005
2010.06.09 15:05:49 Core 1 bid =  1.1002
2010.06.09 15:05:49 Core 1 ask =  1.1002
2010.06.09 15:05:49 Core 1 CADCHF: history synchronized from 1999.01.01 to 2010.06.08
2010.06.09 15:05:49 Core 1 CADCHF: load 9395 bytes of history data to synchronize
2010.06.09 15:05:49 Core 1 CADCHF: history synchronization completed [9 Kb]
2010.06.09 15:05:49 Core 1 CADCHF: history for 2010 year synchronized
2010.06.09 15:05:49 Core 1 CADCHF: history downloading completed
2010.06.09 15:05:48 Core 1 CADCHF: history downloading started
2010.06.09 15:05:47 Core 1 CADCHF: symbol synchronized. 3304 bytes of symbol info received.
2010.06.09 15:05:47 Core 1 CADCHF
2010.06.09 15:05:47 Core 1 dgt =  4
2010.06.09 15:05:47 Core 1 Pnt =  1e-005
2010.06.09 15:05:47 Core 1 bid =  1.0445
2010.06.09 15:05:47 Core 1 ask =  1.0445
2010.06.09 15:05:47 Core 1 AUDCHF: history synchronized from 1999.01.01 to 2010.06.08
2010.06.09 15:05:47 Core 1 AUDCHF: load 27 bytes of history data to synchronize
2010.06.09 15:05:47 Core 1 AUDCHF: history downloading completed
2010.06.09 15:05:47 Core 1 AUDCHF: history downloading started
2010.06.09 15:05:47 Core 1 AUDCHF: symbol synchronized. 3304 bytes of symbol info received.
2010.06.09 15:05:47 Core 1 AUDCHF
2010.06.09 15:05:47 Core 1 dgt =  4
2010.06.09 15:05:47 Core 1 Pnt =  1e-005
2010.06.09 15:05:47 Core 1 bid =  0.9494
2010.06.09 15:05:47 Core 1 ask =  0.9494
2010.06.09 15:05:47 Core 1 AUDCAD: history synchronized from 1999.01.01 to 2010.06.08
2010.06.09 15:05:47 Core 1 AUDCAD: load 27 bytes of history data to synchronize
2010.06.09 15:05:47 Core 1 AUDCAD: symbol synchronized. 3304 bytes of symbol info received.
2010.06.09 15:05:47 Core 1 AUDCAD
2010.06.09 15:05:47 Core 1 dgt =  4
2010.06.09 15:05:47 Core 1 Pnt =  1e-005
2010.06.09 15:05:47 Core 1 bid =  1.4461
2010.06.09 15:05:47 Core 1 ask =  1.4461
2010.06.09 15:05:47 Core 1 USDCAD: history synchronized from 1999.01.04 to 2010.06.08
2010.06.09 15:05:47 Core 1 USDCAD: load 27 bytes of history data to synchronize
2010.06.09 15:05:47 Core 1 AUDCAD: history downloading completed
2010.06.09 15:05:46 Core 1 AUDCAD: history downloading started
2010.06.09 15:05:46 Core 1 USDCAD: history downloading completed
2010.06.09 15:05:46 Core 1 USDCAD: history downloading started
2010.06.09 15:05:46 Core 1 USDCAD: symbol synchronized. 3304 bytes of symbol info received.
2010.06.09 15:05:46 Core 1 USDCAD
2010.06.09 15:05:46 Core 1 dgt =  2
2010.06.09 15:05:46 Core 1 Pnt =  0.001
2010.06.09 15:05:46 Core 1 bid =  102.26
2010.06.09 15:05:46 Core 1 ask =  102.26
2010.06.09 15:05:46 Core 1 USDJPY: history synchronized from 1999.01.04 to 2010.06.08
2010.06.09 15:05:46 Core 1 USDJPY: load 27 bytes of history data to synchronize
2010.06.09 15:05:45 Core 1 USDJPY: history downloading completed
2010.06.09 15:05:45 Core 1 USDJPY: history downloading started
2010.06.09 15:05:45 Core 1 USDJPY: symbol synchronized. 3304 bytes of symbol info received.
2010.06.09 15:05:45 Core 1 USDJPY
2010.06.09 15:05:45 Core 1 dgt =  4
2010.06.09 15:05:45 Core 1 Pnt =  1e-005
2010.06.09 15:05:45 Core 1 bid =  1.5915
2010.06.09 15:05:45 Core 1 ask =  1.5915
2010.06.09 15:05:44 Core 1 USDCHF: history synchronized from 1999.01.04 to 2010.06.08
2010.06.09 15:05:44 Core 1 USDCHF: load 27 bytes of history data to synchronize
2010.06.09 15:05:44 Core 1 USDCHF: symbol synchronized. 3304 bytes of symbol info received.
2010.06.09 15:05:44 Core 1 USDCHF
2010.06.09 15:05:44 Core 1 dgt =  4
2010.06.09 15:05:44 Core 1 Pnt =  1e-005
2010.06.09 15:05:44 Core 1 bid =  0.6566
2010.06.09 15:05:44 Core 1 ask =  0.6566
2010.06.09 15:05:44 Core 1 AUDUSD: history synchronized from 1999.01.04 to 2010.06.08
2010.06.09 15:05:44 Core 1 AUDUSD: load 27 bytes of history data to synchronize
2010.06.09 15:05:44 Core 1 USDCHF: history downloading completed
2010.06.09 15:05:44 Core 1 USDCHF: history downloading started
2010.06.09 15:05:44 Core 1 AUDUSD: history downloading completed
2010.06.09 15:05:44 Core 1 AUDUSD: history downloading started
2010.06.09 15:05:43 Core 1 AUDUSD: symbol synchronized. 3304 bytes of symbol info received.
2010.06.09 15:05:43 Core 1 AUDUSD
2010.06.09 15:05:43 Core 1 dgt =  4
2010.06.09 15:05:43 Core 1 Pnt =  1e-005
2010.06.09 15:05:43 Core 1 bid =  1.6154
2010.06.09 15:05:43 Core 1 ask =  1.6154
2010.06.09 15:05:43 Core 1 GBPUSD: history synchronized from 1999.01.04 to 2010.06.08
2010.06.09 15:05:43 Core 1 GBPUSD: load 27 bytes of history data to synchronize
2010.06.09 15:05:43 Core 1 GBPUSD: symbol synchronized. 3304 bytes of symbol info received.
2010.06.09 15:05:43 Core 1 GBPUSD
2010.06.09 15:05:43 Core 1 dgt =  5
2010.06.09 15:05:43 Core 1 Pnt =  1e-005
2010.06.09 15:05:43 Core 1 GBPUSD: history downloading completed
2010.06.09 15:05:43 Core 1 GBPUSD: history downloading started
2010.06.09 15:05:42 Core 1 bid =  0
2010.06.09 15:05:42 Core 1 ask =  0
2010.06.09 15:05:42 Core 1 EURUSD
2010.06.09 15:05:42 Core 1   Instr6=12
2010.06.09 15:05:42 Core 1   Instr5=12
2010.06.09 15:05:42 Core 1   Instr4=12
2010.06.09 15:05:42 Core 1   Instr3=12
2010.06.09 15:05:42 Core 1   Instr2=12
2010.06.09 15:05:42 Core 1   Instr1=12
2010.06.09 15:05:42 Core 1   K_Pr=2.50
2010.06.09 15:05:42 Core 1   St_L=100
2010.06.09 15:05:42 Core 1   Lot=0.10
2010.06.09 15:05:42 Core 1 EURUSD,H1: testing of Experts\Examples\Ermak\R_08.ex5 from 2000.01.01 00:00 to 2010.06.08 00:00 started with inputs:
2010.06.09 15:05:42 Core 1 EURUSD,H1: history begins from 1999.01.04 10:00
2010.06.09 15:05:42 Core 1 EURUSD,H1: history cache reserved for estimated 71588 bars
2010.06.09 15:05:42 Core 1 EURUSD: contains 294777 M1 records of beginning data from 1999.01.04 10:22 to 1999.12.31 23:01
2010.06.09 15:05:42 Core 1 EURUSD: history synchronized from 1999.01.04 to 2010.06.08
2010.06.09 15:05:42 Core 1 EURUSD: load 36 bytes of history data to synchronize
2010.06.09 15:05:41 Core 1 EURUSD: symbol synchronized. 3304 bytes of symbol info received.
2010.06.09 15:05:41 Core 1 Performance: 139
2010.06.09 15:05:41 Core 1 51 Kb of total initialization data received
2010.06.09 15:05:41 Core 1 Optimization pass 0 started
2010.06.09 15:05:41 Core 1 Successfully initialized
2010.06.09 15:05:41 Core 1 Initial deposit 5000.00 USD
2010.06.09 15:05:41 Core 1 Expert file added: Experts\Examples\Ermak\R_08.ex5. 31279 bytes stored
2010.06.09 15:05:41 Core 1 275 bytes of selected symbols stored
2010.06.09 15:05:41 Core 1 7162 bytes of tester parameters stored
2010.06.09 15:05:41 Core 1 3764 bytes of group info stored
2010.06.09 15:05:41 Core 1 3124 bytes of account info stored
2010.06.09 15:05:41 Core 1 Common synchronization completed
2010.06.09 15:05:40 Tester EURUSD,H1: testing of Experts\Examples\Ermak\R_08.ex5 from 2000.01.01 00:00 to 2010.06.08 00:00 started
2010.06.09 15:05:40 Core 1 Authorized (agent build 279)
2010.06.09 15:05:40 Core 1 Connected
2010.06.09 15:05:39 Core 1 Connecting to 127.0.0.1:3000
2010.06.09 15:05:39 Core 1 Agent process started

 


 

 

С digits на "чужих" символах разобрались. Спасибо за замечание

 
double point;
SymbolInfoDouble("EURUSD",SYMBOL_POINT,point);

Скажите, почему эта функция выдает такое значение "1e-005"? И может это быть связано с ДЦ-шными данными?

 
svds75:

Скажите, почему эта функция выдает такое значение "1e-005"? И может это быть связано с ДЦ-шными данными?

А что не так то? Все правильно выдает.
 
Dima_S:
А что не так то? Все правильно выдает.
Почему в таком виде? Почему не в таком: "0.0001"? Или тут нет принципиальной разницы?
 
svds75:
Почему в таком виде? Почему не в таком: "0.0001"? Или тут нет принципиальной разницы?
Это одно и тоже.
 

Dima_S:
Это одно и тоже.

ммммммммммммммммммммммммммммммммммммммммммммммммммм

Да ладно!? 

 1e-005 -> 0.00001 и соответствует одному пункту(маленькому) при пятизначных котировках