AccountInfoDouble

対応するアカウントプロパティの値を返します。

double  AccountInfoDouble(
   int  property_id      // identifier of the property
   );

パラメーター

property_id

[in]プロパティの識別子。値はENUM_ACCOUNT_INFO_DOUBLEの値のいずれかです。

戻り値

double型の値。

例:

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_FREEMARGIN));
   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));
  }

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">