反思,最近的EA终于写成了,感谢功臣!9.1晚上直播!
vaf asfasfa qe fasdfasdf asd |
|
|
|
|
//---
double Profit_total_sell()
{
double Profit=0;
for(int i=0;i<=OrdersTotal();i++)
{
if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES))
{
if( OrderSymbol()==Symbol() && OrderMagicNumber()==MagicNO )
{
if(OrderType()==OP_SELL)
Profit=Profit+OrderProfit()+OrderCommission();
}
//printf(OrderCommission());
}
}
return(Profit);
}
//---
double Profitmax(double Profit1,double Profit2,)
{
double team1=Profit1+Profit2;
if(team1>=0)
{
if(team1>totalprofitmax)totalprofitmax=team1;
return(totalprofitmax);
}
else {
totalprofitmax=team1;
return(totalprofitmax);
}
|
|
|
|
|