Download MetaTrader 5

CSymbolInfo::SessionAW does not work

To add comments, please log in or register
chinaski
890
chinaski 2013.02.15 02:22 

Hello,

CSymbolInfo::SessionAW() 

always returns 0. Same for  

SymbolInfoDouble(Symbol(),SYMBOL_SESSION_AW) 

chinaski
890
chinaski 2013.02.15 02:52  

CSymbolInfo::MarginInitial()

CSymbolInfo::SessionDeals ()

 

What do i wrong ? Market is ticking, CSymbolInfo::Name called, CSymbolInfo::Refresh and CSymbolInfo::RefreshRates

both return true. However, always zero returned.

Thank you 

phi nuts
2184
phi nuts 2013.02.15 09:47  
chinaski:

CSymbolInfo::MarginInitial()

CSymbolInfo::SessionDeals ()

 

What do i wrong ? Market is ticking, CSymbolInfo::Name called, CSymbolInfo::Refresh and CSymbolInfo::RefreshRates

both return true. However, always zero returned.

Thank you 

Ii I'm not mistaken, think that for stock symbol, so try that on stock, not forex, 
chinaski
890
chinaski 2013.02.15 17:22  
phi.nuts:
Ii I'm not mistaken, think that for stock symbol, so try that on stock, not forex, 

Hello phi, I do not trade stocks...

(thank you for answer) 

It is may worth to mention this is in documentation: "not working for forex" (which MT is primarily for). 

phi nuts
2184
phi nuts 2013.02.18 06:47  
chinaski:

Hello phi, I do not trade stocks...

(thank you for answer) 

It is may worth to mention this is in documentation: "not working for forex" (which MT is primarily for). 

Yep, start reading from here https://www.mql5.com/en/forum/7418#comment_295412
(bug?) SYMBOL_MARGIN_INITIAL = 0.0
(bug?) SYMBOL_MARGIN_INITIAL = 0.0
  • www.mql5.com
"SYMBOL_MARGIN_INITIAL Initial margin means the amount in the margin currency required for opening a position with the volume of one lot.
To add comments, please log in or register