想用代码统计账户总体盈亏,但是水平不够,有大师帮忙指点一下吗
想写一个账户当日总体盈亏情况的代码(当日所有货币对盈亏),写不出来,请求大师帮忙{:1_180:}if(buy_lots!=0)buy_price=ExtSymbolsSummaries/buy_lots;
if(sell_lots!=0) sell_price=ExtSymbolsSummaries/sell_lots;
name="Line_"+string(line)+"_0";
ObjectSetText(name,ExtSymbols,9,"Arial",InpColor);
name="Line_"+string(line)+"_1";
ObjectSetText(name,DoubleToStr(ExtSymbolsSummaries,0),9,"Arial",InpColor);
name="Line_"+string(line)+"_2";
ObjectSetText(name,DoubleToStr(buy_lots,2),9,"Arial",InpColor);
name="Line_"+string(line)+"_3";
ObjectSetText(name,DoubleToStr(buy_price,digits),9,"Arial",InpColor);
name="Line_"+string(line)+"_4";
ObjectSetText(name,DoubleToStr(sell_lots,2),9,"Arial",InpColor);
name="Line_"+string(line)+"_5";
ObjectSetText(name,DoubleToStr(sell_price,digits),9,"Arial",InpColor);
name="Line_"+string(line)+"_6";
ObjectSetText(name,DoubleToStr(buy_lots-sell_lots,2),9,"Arial",InpColor);
name="Line_"+string(line)+"_7";
ObjectSetText(name,DoubleToStr(ExtSymbolsSummaries,2),9,"Arial",InpColor); 无私奉献:保存到指标文件夹,加载附件的指标! 666
页:
[1]