请教高手这段代码 的意思?
|
double maxProfitPrice = 0.0; void posProcess(){ int orders = OrdersTotal(); if(orders == 0) maxProfit =0.0; if(orders>0){ for(int i=orders-1;i>=0;i--){ if(!OrderSelect(i,SELECT_BY_POS,MODE_TRADES)) continue; if(isBuySymbol() ){ if(Bid>OrderStopLoss()+dTsp*pPoint ){ orderModifyTrailStop(Bid-dTsp*pPoint); maxProfit = OrderProfit(); maxProfitPrice = Bid; } if(OrderProfit()>maxProfit && NormalizeDouble(maxProfit,Digits)>0.0){ maxProfit = OrderProfit(); maxProfitPrice = Bid; |
打赏
最新创建圈子
新闻EA运行效果图圈 2019-05-05
圈主:admin 帖子:1
客服热线:

