问吧! - 页 107

 

它出现了这样的错误。我试图把

entern int StringToInteger;

但还是出现了错误。

我应该怎么做?

对不起,我一直在问你,但我真的不知道我在做什么,所以我真的很感谢你的帮助。

'StringToInteger' - function is not defined F:\Program Files\MetaTrader - FXOpen\experts\EMA_10.mq4 (87, 28)
 
bearfoot090:
它的错误是这样的,我试图把

在这个过程中,我们看到了StringToInteger。

但仍然出现错误。

我应该怎么做?

对不起,我一直在问你,但我真的不知道我在做什么,所以我真的很感谢你的帮助。

'StringToInteger' - function is not defined F:\Program Files\MetaTrader - FXOpen\experts\EMA_10.mq4 (87, 28) [/PHP]

"entern int StringToInteger; "没有任何意义。但这又是我的错误,所以再次抱歉...函数是StrToInteger()

所以关闭订单的代码应该是这样的:[PHP]for(int i = OrdersTotal() - 1; i >= 0; i --)

{

OrderSelect(i,SELECT_BY_POS,MODE_TRADES)。

if(OrderMagicNumber() != Magic) 继续。

如果(TimeCurrent() > StrToInteger(OrderComment()))OrderClose(OrderTicket(), OrderLots(), OrderClosePrice(), 0, CLR_NONE) 。

}

 

谢谢你Michel!

我现在可以编译了,没有错误。

 

错误代码 130和131

说到错误代码 - 有人知道这些错误代码是什么意思吗?

当EA试图打开一个交易时,它们总是出现,但由于这个错误而无法打开。

谢谢你的帮助

 
 

求助于行声明

if(Period()==PERIOD_M15 && Symbol()=GBPUSD) UPLevel=.35;

这个语句中缺少什么。我得到一个关于货币符号GBPUSD 的错误。请协助解决我的错误!

先谢谢你了!

戴夫

<<<

 
Dave137:
if(Period()==PERIOD_M15 && Symbol()=GBPUSD) UPLevel=.35;[/PHP]

What is lacking in this statement. I am getting an error about the currency symbol GBPUSD. Please assist in fixing my error!

Thanks a bunch in advance!

Dave

<<<
[PHP] if(Period()==PERIOD_M15 && Symbol()=="GBPUSD") UPLevel=0.35。
 

非常感谢你们

戴夫

 

嗨,代码大师

你能在下面的指标中加入带弹出和箭头的信号吗?

附加的文件:
 

三级跟踪止损问题--请在编码方面给予帮助!

void TrailingPositions() {

double pBid, pAsk, pp;

pp = MarketInfo(OrderSymbol(), MODE_POINT);

if (OrderType()==OP_BUY) {

pBid = MarketInfo(OrderSymbol(), MODE_BID);

//BreakEven routine

if (BreakEven>0) {

if ((pBid-OrderOpenPrice())>BreakEven*pp) {

if ((OrderStopLoss()-OrderOpenPrice())<0) {

ModifyStopLoss(OrderOpenPrice()+0*pp);

}

}

}

if (TrailingStop>0) {

if ((pBid-OrderOpenPrice())>TrailingStop_Over135*pp){ //15 pips TS

ModifyStopLoss(pBid-TrailingStop_Over135*pp);

if (pBid-OrderOpenPrice()>TrailingStop_Over90*pp && pBid-OrderOpenPrice()<TrailingStop_Over135*pp){ //55 pips TS

ModifyStopLoss(pBid-TrailingStop_Over90*pp);

if ((OrderOpenPrice()-pAsk)>TrailingStop +TrailingStep+1*pp && (OrderOpenPrice()-pAsk) < TrailingStop_Over90*pp+TrailingStep-1*pp || OrderStopLoss()==0) {//75 pips TS

ModifyStopLoss(pAsk+TrailingStop*pp);

return;

}

}

}

}

}

三个级别的追踪止损。

1) 75点TS到第一个90点的利润。

2) 90点后55点TS,但只到135点的利润。

3) 135点后15点TS。

我遇到的问题是,追踪止损随着价格的上升和下降而上下 移动......它应该随着价格利润的增加而上升,如果价格开始下降则停止!我如何让它停止移动?我怎样才能让它在价格下跌时停止向下移动 - 移动止损在价格上下移动时就像一个悠悠球。

我不知道如何阻止这种情况的发生?拜托,我需要你的专业知识!

谦卑地。

戴夫