void OnStart()
{
//--- show all the information available from the function AccountInfoDouble()
printf("ACCOUNT_BALANCE = %G",AccountInfoDouble(ACCOUNT_BALANCE));
printf("ACCOUNT_CREDIT = %G",AccountInfoDouble(ACCOUNT_CREDIT));
printf("ACCOUNT_PROFIT = %G",AccountInfoDouble(ACCOUNT_PROFIT));
printf("ACCOUNT_EQUITY = %G",AccountInfoDouble(ACCOUNT_EQUITY));
printf("ACCOUNT_MARGIN = %G",AccountInfoDouble(ACCOUNT_MARGIN));
printf("ACCOUNT_MARGIN_FREE = %G",AccountInfoDouble(ACCOUNT_MARGIN_FREE));
printf("ACCOUNT_MARGIN_LEVEL = %G",AccountInfoDouble(ACCOUNT_MARGIN_LEVEL));
printf("ACCOUNT_MARGIN_SO_CALL = %G",AccountInfoDouble(ACCOUNT_MARGIN_SO_CALL));
printf("ACCOUNT_MARGIN_SO_SO = %G",AccountInfoDouble(ACCOUNT_MARGIN_SO_SO));
}
https://www.mql5.com/en/docs/account
클래스 CAccountInfo
https://www.mql5.com/en/docs/standardlibrary/tradeclasses/caccountinfo
첫등록 : 2019년 6월 3일
최종수정 :
본 글 단축주소 : https://igotit.tistory.com/2201
'트레이딩 > 메타트레이더 코딩' 카테고리의 다른 글
MQL5. AccountInfoString. 메타 연결된 서버 정보. (0) | 2020.10.10 |
---|---|
MQL5. Order, Deal, Position (0) | 2019.06.23 |
MQL5. input (0) | 2019.05.27 |
MQL5. memcpy 사용하기 (0) | 2019.05.21 |
메타트레이더 . 코딩 . 클래스 non-static 멤버함수를 콜백함수로 전달하기 (0) | 2019.05.21 |
댓글