Download MetaTrader 5

CSymbolInfo::SessionAW does not work

To add comments, please log in or register
chinaski
977
chinaski  

Hello,

CSymbolInfo::SessionAW() 

always returns 0. Same for  

SymbolInfoDouble(Symbol(),SYMBOL_SESSION_AW) 

chinaski
977
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 

phi nuts
2181
phi nuts  
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
977
chinaski  
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
2181
phi nuts  
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