问吧! - 页 107 1...100101102103104105106107108109110111112113114...182 新评论 bearfoot090 2008.04.28 12:31 #1061 它出现了这样的错误。我试图把 entern int StringToInteger; 但还是出现了错误。 我应该怎么做? 对不起,我一直在问你,但我真的不知道我在做什么,所以我真的很感谢你的帮助。 'StringToInteger' - function is not defined F:\Program Files\MetaTrader - FXOpen\experts\EMA_10.mq4 (87, 28) Michel 2008.04.28 13:10 #1062 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) 。 } bearfoot090 2008.04.28 13:52 #1063 谢谢你Michel! 我现在可以编译了,没有错误。 solamax 2008.05.01 10:57 #1064 错误代码 130和131 说到错误代码 - 有人知道这些错误代码是什么意思吗? 当EA试图打开一个交易时,它们总是出现,但由于这个错误而无法打开。 谢谢你的帮助 Sergey Golubev 2008.05.01 11:00 #1065 我在这里回复了https://www.mql5.com/en/forum/174151 Dave137 2008.05.01 18:55 #1066 求助于行声明 if(Period()==PERIOD_M15 && Symbol()=GBPUSD) UPLevel=.35; 这个语句中缺少什么。我得到一个关于货币符号GBPUSD 的错误。请协助解决我的错误! 先谢谢你了! 戴夫 <<< Michel 2008.05.01 19:18 #1067 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。 Dave137 2008.05.01 19:21 #1068 非常感谢你们 戴夫 n3sve1k4s 2008.05.02 14:44 #1069 嗨,代码大师 你能在下面的指标中加入带弹出和箭头的信号吗? 附加的文件: hl_next_activator.mq4 8 kb Dave137 2008.05.02 14:47 #1070 三级跟踪止损问题--请在编码方面给予帮助! 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。 我遇到的问题是,追踪止损随着价格的上升和下降而上下 移动......它应该随着价格利润的增加而上升,如果价格开始下降则停止!我如何让它停止移动?我怎样才能让它在价格下跌时停止向下移动 - 移动止损在价格上下移动时就像一个悠悠球。 我不知道如何阻止这种情况的发生?拜托,我需要你的专业知识! 谦卑地。 戴夫 Ask! Experts: The MasterMind 3 如何编码? 1...100101102103104105106107108109110111112113114...182 新评论 您错过了交易机会: 免费交易应用程序 8,000+信号可供复制 探索金融市场的经济新闻 注册 登录 拉丁字符(不带空格) 密码将被发送至该邮箱 发生错误 使用 Google 登录 您同意网站政策和使用条款 如果您没有帐号,请注册 可以使用cookies登录MQL5.com网站。 请在您的浏览器中启用必要的设置,否则您将无法登录。 忘记您的登录名/密码? 使用 Google 登录
它出现了这样的错误。我试图把
entern int StringToInteger;
但还是出现了错误。
我应该怎么做?
对不起,我一直在问你,但我真的不知道我在做什么,所以我真的很感谢你的帮助。
它的错误是这样的,我试图把
在这个过程中,我们看到了StringToInteger。
但仍然出现错误。
我应该怎么做?
对不起,我一直在问你,但我真的不知道我在做什么,所以我真的很感谢你的帮助。
"entern int StringToInteger; "没有任何意义。但这又是我的错误,所以再次抱歉...函数是StrToInteger()![](https://c.mql5.com/forextsd/smiles/confused_smile.png)
所以关闭订单的代码应该是这样的:[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!![](https://c.mql5.com/forextsd/smiles/teeth_smile.png)
我现在可以编译了,没有错误。
错误代码 130和131
说到错误代码
- 有人知道这些错误代码是什么意思吗?
当EA试图打开一个交易时,它们总是出现,但由于这个错误而无法打开。![](https://c.mql5.com/forextsd/smiles/confused_smile.png)
谢谢你的帮助
我在这里回复了https://www.mql5.com/en/forum/174151
求助于行声明
这个语句中缺少什么。我得到一个关于货币符号GBPUSD 的错误。请协助解决我的错误!
先谢谢你了!
戴夫
<<<
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
<<<非常感谢你们
戴夫
嗨,代码大师
你能在下面的指标中加入带弹出和箭头的信号吗?
三级跟踪止损问题--请在编码方面给予帮助!
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。
我遇到的问题是,追踪止损随着价格的上升和下降而上下 移动......它应该随着价格利润的增加而上升,如果价格开始下降则停止!我如何让它停止移动?我怎样才能让它在价格下跌时停止向下移动 - 移动止损在价格上下移动时就像一个悠悠球。
我不知道如何阻止这种情况的发生?拜托,我需要你的专业知识!
谦卑地。
戴夫