void OnStart() {
if(StringFind(AccountCompany(),"CB",0)>=0) {
Alert("交易商相同");
}
if(IsDemo() == true) {
Alert("模拟账户");
} else {
Alert("真实账户");
}
Print("账户号码:" + AccountNumber());
Print("账户名字:" + AccountName());
Print("交易商名字:" + AccountCompany());
Print("余额:" + AccountBalance());
Print("净值:" + AccountEquity());
Print("已用保证金:" + AccountMargin());
Print("可用保证金:" + AccountFreeMargin());
Print("杠杆:" + AccountLeverage());
Print("总盈亏:" + AccountProfit());
Print("日最低价: " + MarketInfo(Symbol(), MODE_LOW));
Print("最后价格跳动时间: " + TimeToString(MarketInfo(Symbol(),MODE_TIME), TIME_DATE|TIME_SECONDS));
Print("一个点价格:" + DoubleToStr(MarketInfo(Symbol(),MODE_POINT), Digits));
Print("小数位数:" + MarketInfo(Symbol(), MODE_DIGITS));
Print("点差: " + MarketInfo(Symbol(), MODE_SPREAD));
Print("止损离市价多少个点:" + MarketInfo(Symbol(), MODE_STOPLEVEL));
Print("1手代表的金额:" + MarketInfo(Symbol(),MODE_LOTSIZE));
Print("XAUUSD 1手波动1点的盈亏值:" + MarketInfo(Symbol(), MODE_TICKVALUE));
Print("多单隔一夜利息:" + MarketInfo(Symbol(),MODE_SWAPLONG));
Print("空单隔一夜利息:" + MarketInfo(Symbol(),MODE_SWAPSHORT));
Print("此货币对是否可交易: " + MarketInfo(Symbol(), MODE_TRADEALLOWED));
Print("最小下单量: " + MarketInfo(Symbol(), MODE_MINLOT));
Print("最小递增下单量:" + MarketInfo(Symbol(), MODE_LOTSTEP));
if(MarketInfo(Symbol(),MODE_PROFITCALCMODE)==0) {
printf("此商品是外汇品种");
} else if(MarketInfo(Symbol(),MODE_PROFITCALCMODE)==1){
printf("此商品是CFD");
} else if(MarketInfo(Symbol(),MODE_PROFITCALCMODE)==2){
printf("此商品是期货");
}
Print("下1手需要的保证金:" + MarketInfo(Symbol(),MODE_MARGINREQUIRED));
}
if(StringFind(AccountCompany(),"CB",0)>=0) {
Alert("交易商相同");
}
if(IsDemo() == true) {
Alert("模拟账户");
} else {
Alert("真实账户");
}
Print("账户号码:" + AccountNumber());
Print("账户名字:" + AccountName());
Print("交易商名字:" + AccountCompany());
Print("余额:" + AccountBalance());
Print("净值:" + AccountEquity());
Print("已用保证金:" + AccountMargin());
Print("可用保证金:" + AccountFreeMargin());
Print("杠杆:" + AccountLeverage());
Print("总盈亏:" + AccountProfit());
Print("日最低价: " + MarketInfo(Symbol(), MODE_LOW));
Print("最后价格跳动时间: " + TimeToString(MarketInfo(Symbol(),MODE_TIME), TIME_DATE|TIME_SECONDS));
Print("一个点价格:" + DoubleToStr(MarketInfo(Symbol(),MODE_POINT), Digits));
Print("小数位数:" + MarketInfo(Symbol(), MODE_DIGITS));
Print("点差: " + MarketInfo(Symbol(), MODE_SPREAD));
Print("止损离市价多少个点:" + MarketInfo(Symbol(), MODE_STOPLEVEL));
Print("1手代表的金额:" + MarketInfo(Symbol(),MODE_LOTSIZE));
Print("XAUUSD 1手波动1点的盈亏值:" + MarketInfo(Symbol(), MODE_TICKVALUE));
Print("多单隔一夜利息:" + MarketInfo(Symbol(),MODE_SWAPLONG));
Print("空单隔一夜利息:" + MarketInfo(Symbol(),MODE_SWAPSHORT));
Print("此货币对是否可交易: " + MarketInfo(Symbol(), MODE_TRADEALLOWED));
Print("最小下单量: " + MarketInfo(Symbol(), MODE_MINLOT));
Print("最小递增下单量:" + MarketInfo(Symbol(), MODE_LOTSTEP));
if(MarketInfo(Symbol(),MODE_PROFITCALCMODE)==0) {
printf("此商品是外汇品种");
} else if(MarketInfo(Symbol(),MODE_PROFITCALCMODE)==1){
printf("此商品是CFD");
} else if(MarketInfo(Symbol(),MODE_PROFITCALCMODE)==2){
printf("此商品是期货");
}
Print("下1手需要的保证金:" + MarketInfo(Symbol(),MODE_MARGINREQUIRED));
}