如何编码? - 页 207 1...200201202203204205206207208209210211212213214...347 新评论 username1 2009.09.26 21:06 #2061 减少未结头寸 有没有人知道如何关闭/减少一半的头寸。我们应该调用什么函数? 例如。将一个未结头寸从10手减少到5手,而不开立另一个相反方向的交易? Ovidiu Marius 2009.09.26 21:27 #2062 被称为 "部分关闭"。 bool OrderClose( int ticket, double lots, double price, int slippage, color Color=CLR_NONE) 只需指定要关闭多少手。 Roger09 2009.09.27 03:58 #2063 ljuba973: 你好。 试试这个方法 for (int i=OrdersTotal()-1;i>=0 i--) { if (OrderSelect(i, SELECT_BY_POS)) { if (OrderSymbol()==Symbol()&&OrderType()==0) { Ans=OrderClose(OrderTicket(),alLots,Bid,2);// Order closing } if (OrderSymbol()==Symbol()&&OrderType()==1) { Ans=OrderClose(OrderTicket(),alLots,Ask,2);// Order closing } } Roger09 2009.09.27 04:01 #2064 username1: 有没有人知道如何关闭/减少一半的头寸。我们应该调用什么函数? 例如。把一个未平仓的头寸从10手减少到5手,而不开另一个相反方向的交易? 只要关闭5手的订单,像这样。 OrderClose(OrderTicket(),5.0,.......) ljubas 2009.09.27 07:29 #2065 嗨,罗杰。 非常感谢你的帮助。同时,我设法修复了它的工作。 OrderSend(Symbol(),OP_BUY,alLots,Ask,3,0,0,EA_Tester,Magic); if(OrderSelect(OrdersTotal()-1, SELECT_BY_POS)==true) { alTicker = OrderTicket(); Alert("Bought! ", alTicker); } else Print("OrderSelect failed error code is ",GetLastError()); [/CODE] Like that I found alTicker (after opening position) which I close later on. But your code I will use to optimize my Closing function. Sorry for maybe "beginner's code", I am into mq4 just 2 days ... will improve - I promise Thanks again Roger09: Try this way [CODE] for (int i=OrdersTotal()-1;i>=0 i--) { if (OrderSelect(i, SELECT_BY_POS)) { if (OrderSymbol()==Symbol()&&OrderType()==0) { Ans=OrderClose(OrderTicket(),alLots,Bid,2);// Order closing } if (OrderSymbol()==Symbol()&&OrderType()==1) { Ans=OrderClose(OrderTicket(),alLots,Ask,2);// Order closing } } How to code? Helping with a simple Slawa How to Close fxbg 2009.09.27 18:13 #2066 我如何设置固定止损? 你好。 谁能告诉我如何在代码中设置一个固定的止损点? //+------------------------------------------------------------------+ //| Daydream by Cothool | //| Recommended: USD/JPY 1H | //+------------------------------------------------------------------+ #define MAGIC_NUM 48213657 //+------------------------------------------------------------------+ extern double Lots = 0.1; extern int ChannelPeriod = 25; extern int Slippage = 3; extern int TakeProfit = 15; //+------------------------------------------------------------------+ double LastOrderTime = 0; double CurrentDirection = 0; double CurrentTakeProfitPrice = 0; //+------------------------------------------------------------------+ void OpenLong() { if (Time[0] == LastOrderTime) return; if (CurrentDirection != 0) return; OrderSend(Symbol(), OP_BUY, Lots, Ask, Slippage, 0, 0, "Daydream", MAGIC_NUM, 0, Blue); LastOrderTime = Time[0]; CurrentDirection = 1; } //+------------------------------------------------------------------+ void OpenShort() { if (Time[0] == LastOrderTime) return; if (CurrentDirection != 0) return; OrderSend(Symbol(), OP_SELL, Lots, Bid, Slippage, 0, 0, "Daydream", MAGIC_NUM, 0, Red); LastOrderTime = Time[0]; CurrentDirection = -1; } //+------------------------------------------------------------------+ void CloseLong() { int i; if (Time[0] == LastOrderTime) return; if (CurrentDirection != 1) return; for (i = 0; i < OrdersTotal(); i++) { if (OrderSelect(i, SELECT_BY_POS) && OrderSymbol() == Symbol() && OrderMagicNumber() == MAGIC_NUM && OrderType() == OP_BUY) { OrderClose(OrderTicket(), OrderLots(), Bid, 3, White); LastOrderTime = Time[0]; CurrentDirection = 0; } } } //+------------------------------------------------------------------+ void CloseShort() { int i; if (Time[0] == LastOrderTime) return; if (CurrentDirection != -1) return; for (i = 0; i < OrdersTotal(); i++) { if (OrderSelect(i, SELECT_BY_POS) && OrderSymbol() == Symbol() && OrderMagicNumber() == MAGIC_NUM && OrderType() == OP_SELL) { OrderClose(OrderTicket(), OrderLots(), Ask, 3, White); LastOrderTime = Time[0]; CurrentDirection = 0; } } } //+------------------------------------------------------------------+ void start() { double HighestValue; double LowestValue; HighestValue = High; LowestValue = Low[Lowest(NULL, 0, MODE_LOW, ChannelPeriod, 1)]; // BUY if (Close[0] < LowestValue) { CloseShort(); OpenLong(); CurrentTakeProfitPrice = Bid + TakeProfit * Point; } // SELL if (Close[0] > HighestValue) { CloseLong(); OpenShort(); CurrentTakeProfitPrice = Ask - TakeProfit * Point; } // Trailing Profit Taking for Long Position if (CurrentDirection == 1) { if (CurrentTakeProfitPrice > Bid + TakeProfit * Point) CurrentTakeProfitPrice = Bid + TakeProfit * Point; if (Bid >= CurrentTakeProfitPrice) CloseLong(); } // Trailing Profit Taking for Short Position if (CurrentDirection == -1) { if (CurrentTakeProfitPrice < Ask - TakeProfit * Point) CurrentTakeProfitPrice = Ask - TakeProfit * Point; if (Ask <= CurrentTakeProfitPrice) CloseShort(); } } //+------------------------------------------------------------------+ 请注意! How to code? 编码帮助......我如何让指标过滤而不是警报? [存档!]我将免费撰写任何专家或指标。 Roger09 2009.09.27 20:44 #2067 fxbg: 你好。谁能告诉我如何在代码中放置一个固定的StopLoss? 替换 extern double Lots = 0.1; extern int ChannelPeriod = 25; extern int Slippage = 3; extern int TakeProfit = 15; //+------------------------------------------------------------------+ double LastOrderTime = 0; double CurrentDirection = 0; double CurrentTakeProfitPrice = 0; //+------------------------------------------------------------------+ void OpenLong() { if (Time[0] == LastOrderTime) return; if (CurrentDirection != 0) return; OrderSend(Symbol(), OP_BUY, Lots, Ask, Slippage, 0, 0, "Daydream", MAGIC_NUM, 0, Blue); LastOrderTime = Time[0]; CurrentDirection = 1; } //+------------------------------------------------------------------+ void OpenShort() { if (Time[0] == LastOrderTime) return; if (CurrentDirection != 0) return; OrderSend(Symbol(), OP_SELL, Lots, Bid, Slippage, 0, 0, "Daydream", MAGIC_NUM, 0, Red); LastOrderTime = Time[0]; CurrentDirection = -1; } [/CODE] to [CODE]extern double Lots = 0.1; extern int ChannelPeriod = 25; extern int Slippage = 3; extern int TakeProfit = 15; extern int StopLoss = 15; //+------------------------------------------------------------------+ double LastOrderTime = 0; double CurrentDirection = 0; double CurrentTakeProfitPrice = 0; //+------------------------------------------------------------------+ void OpenLong() { if (Time[0] == LastOrderTime) return; if (CurrentDirection != 0) return; OrderSend(Symbol(), OP_BUY, Lots, Ask, Slippage, Ask-StopLoss*Point, 0, "Daydream", MAGIC_NUM, 0, Blue); LastOrderTime = Time[0]; CurrentDirection = 1; } //+------------------------------------------------------------------+ void OpenShort() { if (Time[0] == LastOrderTime) return; if (CurrentDirection != 0) return; OrderSend(Symbol(), OP_SELL, Lots, Bid, Slippage, Bid+StopLoss*Point, 0, "Daydream", MAGIC_NUM, 0, Red); LastOrderTime = Time[0]; CurrentDirection = -1; } How to code? Can anybody help me 求助大神,一条K线开很多单? [删除] 2009.09.27 21:20 #2068 需要帮助修改指标 嗨,所有的程序员。 我在论坛上发现了一个指标(货币头寸),可以显示我正在交易的当前头寸。现在我想找人帮我把这个指标改成在图表底部使用外部窗口,同时字体和颜色也可以改变。我不擅长编程。非常感谢。 阿萨姆 附加的文件: currencypositions.mq4 5 kb fxbg 2009.09.28 07:13 #2069 在测试器中不工作 我在测试器中启动了这个EA。当它到达第一个止损点 时,测试器 就停止了,不再继续进行测试。 //+------------------------------------------------------------------+ //| Daydream by Cothool | //| Recommended: USD/JPY 1H | //+------------------------------------------------------------------+ #define MAGIC_NUM 48213657 //+------------------------------------------------------------------+ extern double Lots = 0.1; extern int ChannelPeriod = 25; extern int Slippage = 3; extern int TakeProfit = 0; extern int StopLoss = 15; //+------------------------------------------------------------------+ double LastOrderTime = 0; double CurrentDirection = 0; double CurrentTakeProfitPrice = 0; //+------------------------------------------------------------------+ void OpenLong() { if (Time[0] == LastOrderTime) return; if (CurrentDirection != 0) return; OrderSend(Symbol(), OP_BUY, Lots, Ask, Slippage,Ask-StopLoss*Point, 0, "Daydream", MAGIC_NUM, 0, Blue); LastOrderTime = Time[0]; CurrentDirection = 1; } //+------------------------------------------------------------------+ void OpenShort() { if (Time[0] == LastOrderTime) return; if (CurrentDirection != 0) return; OrderSend(Symbol(), OP_SELL, Lots, Bid, Slippage,Bid+StopLoss*Point, 0, "Daydream", MAGIC_NUM, 0, Red); LastOrderTime = Time[0]; CurrentDirection = -1; } //+------------------------------------------------------------------+ void CloseLong() { int i; if (Time[0] == LastOrderTime) return; if (CurrentDirection != 1) return; for (i = 0; i < OrdersTotal(); i++) { if (OrderSelect(i, SELECT_BY_POS) && OrderSymbol() == Symbol() && OrderMagicNumber() == MAGIC_NUM && OrderType() == OP_BUY) { OrderClose(OrderTicket(), OrderLots(), Bid, 3, White); LastOrderTime = Time[0]; CurrentDirection = 0; } } } //+------------------------------------------------------------------+ void CloseShort() { int i; if (Time[0] == LastOrderTime) return; if (CurrentDirection != -1) return; for (i = 0; i < OrdersTotal(); i++) { if (OrderSelect(i, SELECT_BY_POS) && OrderSymbol() == Symbol() && OrderMagicNumber() == MAGIC_NUM && OrderType() == OP_SELL) { OrderClose(OrderTicket(), OrderLots(), Ask, 3, White); LastOrderTime = Time[0]; CurrentDirection = 0; } } } //+------------------------------------------------------------------+ void start() { double HighestValue; double LowestValue; HighestValue = High; LowestValue = Low[Lowest(NULL, 0, MODE_LOW, ChannelPeriod, 1)]; // BUY if (Close[0] < LowestValue) { CloseShort(); OpenLong(); CurrentTakeProfitPrice = Bid + TakeProfit * Point; } // SELL if (Close[0] > HighestValue) { CloseLong(); OpenShort(); CurrentTakeProfitPrice = Ask - TakeProfit * Point; } // Trailing Profit Taking for Long Position if (CurrentDirection == 1) { if (CurrentTakeProfitPrice > Bid + TakeProfit * Point) CurrentTakeProfitPrice = Bid + TakeProfit * Point; if (Bid >= CurrentTakeProfitPrice) CloseLong(); } // Trailing Profit Taking for Short Position if (CurrentDirection == -1) { if (CurrentTakeProfitPrice < Ask - TakeProfit * Point) CurrentTakeProfitPrice = Ask - TakeProfit * Point; if (Ask <= CurrentTakeProfitPrice) CloseShort(); } } //+------------------------------------------------------------------+ How to code? [存档!]我将免费撰写任何专家或指标。 编码帮助......我如何让指标过滤而不是警报? nicesurf 2009.09.28 14:05 #2070 该代码是惊人的,谢谢 1...200201202203204205206207208209210211212213214...347 新评论 您错过了交易机会: 免费交易应用程序 8,000+信号可供复制 探索金融市场的经济新闻 注册 登录 拉丁字符(不带空格) 密码将被发送至该邮箱 发生错误 使用 Google 登录 您同意网站政策和使用条款 如果您没有帐号,请注册 可以使用cookies登录MQL5.com网站。 请在您的浏览器中启用必要的设置,否则您将无法登录。 忘记您的登录名/密码? 使用 Google 登录
减少未结头寸
有没有人知道如何关闭/减少一半的头寸。我们应该调用什么函数?
例如。将一个未结头寸从10手减少到5手,而不开立另一个相反方向的交易?
被称为 "部分关闭"。
只需指定要关闭多少手。
你好。
试试这个方法
for (int i=OrdersTotal()-1;i>=0 i--) {
if (OrderSelect(i, SELECT_BY_POS)) {
if (OrderSymbol()==Symbol()&&OrderType()==0) {
Ans=OrderClose(OrderTicket(),alLots,Bid,2);// Order closing
}
if (OrderSymbol()==Symbol()&&OrderType()==1) {
Ans=OrderClose(OrderTicket(),alLots,Ask,2);// Order closing
}
}
有没有人知道如何关闭/减少一半的头寸。我们应该调用什么函数? 例如。把一个未平仓的头寸从10手减少到5手,而不开另一个相反方向的交易?
只要关闭5手的订单,像这样。
OrderClose(OrderTicket(),5.0,.......)
嗨,罗杰。
非常感谢你的帮助。同时,我设法修复了它的工作。
OrderSend(Symbol(),OP_BUY,alLots,Ask,3,0,0,EA_Tester,Magic);
if(OrderSelect(OrdersTotal()-1, SELECT_BY_POS)==true) {
alTicker = OrderTicket();
Alert("Bought! ", alTicker);
} else Print("OrderSelect failed error code is ",GetLastError());
[/CODE]
Like that I found alTicker (after opening position) which I close later on.
But your code I will use to optimize my Closing function. Sorry for maybe "beginner's code", I am into mq4 just 2 days ... will improve - I promise![](https://c.mql5.com/forextsd/smiles/smile.png)
Thanks again
Try this way
[CODE]
for (int i=OrdersTotal()-1;i>=0 i--) {
if (OrderSelect(i, SELECT_BY_POS)) {
if (OrderSymbol()==Symbol()&&OrderType()==0) {
Ans=OrderClose(OrderTicket(),alLots,Bid,2);// Order closing
}
if (OrderSymbol()==Symbol()&&OrderType()==1) {
Ans=OrderClose(OrderTicket(),alLots,Ask,2);// Order closing
}
}
我如何设置固定止损?
你好。
谁能告诉我如何在代码中设置一个固定的止损点?
//| Daydream by Cothool |
//| Recommended: USD/JPY 1H |
//+------------------------------------------------------------------+
#define MAGIC_NUM 48213657
//+------------------------------------------------------------------+
extern double Lots = 0.1;
extern int ChannelPeriod = 25;
extern int Slippage = 3;
extern int TakeProfit = 15;
//+------------------------------------------------------------------+
double LastOrderTime = 0;
double CurrentDirection = 0;
double CurrentTakeProfitPrice = 0;
//+------------------------------------------------------------------+
void OpenLong()
{
if (Time[0] == LastOrderTime)
return;
if (CurrentDirection != 0)
return;
OrderSend(Symbol(), OP_BUY, Lots, Ask, Slippage, 0, 0,
"Daydream", MAGIC_NUM, 0, Blue);
LastOrderTime = Time[0];
CurrentDirection = 1;
}
//+------------------------------------------------------------------+
void OpenShort()
{
if (Time[0] == LastOrderTime)
return;
if (CurrentDirection != 0)
return;
OrderSend(Symbol(), OP_SELL, Lots, Bid, Slippage, 0, 0,
"Daydream", MAGIC_NUM, 0, Red);
LastOrderTime = Time[0];
CurrentDirection = -1;
}
//+------------------------------------------------------------------+
void CloseLong()
{
int i;
if (Time[0] == LastOrderTime)
return;
if (CurrentDirection != 1)
return;
for (i = 0; i < OrdersTotal(); i++)
{
if (OrderSelect(i, SELECT_BY_POS) && OrderSymbol() == Symbol() &&
OrderMagicNumber() == MAGIC_NUM && OrderType() == OP_BUY)
{
OrderClose(OrderTicket(), OrderLots(), Bid, 3, White);
LastOrderTime = Time[0];
CurrentDirection = 0;
}
}
}
//+------------------------------------------------------------------+
void CloseShort()
{
int i;
if (Time[0] == LastOrderTime)
return;
if (CurrentDirection != -1)
return;
for (i = 0; i < OrdersTotal(); i++)
{
if (OrderSelect(i, SELECT_BY_POS) && OrderSymbol() == Symbol() &&
OrderMagicNumber() == MAGIC_NUM && OrderType() == OP_SELL)
{
OrderClose(OrderTicket(), OrderLots(), Ask, 3, White);
LastOrderTime = Time[0];
CurrentDirection = 0;
}
}
}
//+------------------------------------------------------------------+
void start()
{
double HighestValue;
double LowestValue;
HighestValue = High;
LowestValue = Low[Lowest(NULL, 0, MODE_LOW, ChannelPeriod, 1)];
// BUY
if (Close[0] < LowestValue)
{
CloseShort();
OpenLong();
CurrentTakeProfitPrice = Bid + TakeProfit * Point;
}
// SELL
if (Close[0] > HighestValue)
{
CloseLong();
OpenShort();
CurrentTakeProfitPrice = Ask - TakeProfit * Point;
}
// Trailing Profit Taking for Long Position
if (CurrentDirection == 1)
{
if (CurrentTakeProfitPrice > Bid + TakeProfit * Point)
CurrentTakeProfitPrice = Bid + TakeProfit * Point;
if (Bid >= CurrentTakeProfitPrice)
CloseLong();
}
// Trailing Profit Taking for Short Position
if (CurrentDirection == -1)
{
if (CurrentTakeProfitPrice < Ask - TakeProfit * Point)
CurrentTakeProfitPrice = Ask - TakeProfit * Point;
if (Ask <= CurrentTakeProfitPrice)
CloseShort();
}
}
//+------------------------------------------------------------------+
请注意!
你好。
谁能告诉我如何在代码中放置一个固定的StopLoss?
替换
extern int ChannelPeriod = 25;
extern int Slippage = 3;
extern int TakeProfit = 15;
//+------------------------------------------------------------------+
double LastOrderTime = 0;
double CurrentDirection = 0;
double CurrentTakeProfitPrice = 0;
//+------------------------------------------------------------------+
void OpenLong()
{
if (Time[0] == LastOrderTime)
return;
if (CurrentDirection != 0)
return;
OrderSend(Symbol(), OP_BUY, Lots, Ask, Slippage, 0, 0,
"Daydream", MAGIC_NUM, 0, Blue);
LastOrderTime = Time[0];
CurrentDirection = 1;
}
//+------------------------------------------------------------------+
void OpenShort()
{
if (Time[0] == LastOrderTime)
return;
if (CurrentDirection != 0)
return;
OrderSend(Symbol(), OP_SELL, Lots, Bid, Slippage, 0, 0,
"Daydream", MAGIC_NUM, 0, Red);
LastOrderTime = Time[0];
CurrentDirection = -1;
} [/CODE]
to
[CODE]extern double Lots = 0.1;
extern int ChannelPeriod = 25;
extern int Slippage = 3;
extern int TakeProfit = 15;
extern int StopLoss = 15;
//+------------------------------------------------------------------+
double LastOrderTime = 0;
double CurrentDirection = 0;
double CurrentTakeProfitPrice = 0;
//+------------------------------------------------------------------+
void OpenLong()
{
if (Time[0] == LastOrderTime)
return;
if (CurrentDirection != 0)
return;
OrderSend(Symbol(), OP_BUY, Lots, Ask, Slippage, Ask-StopLoss*Point, 0,
"Daydream", MAGIC_NUM, 0, Blue);
LastOrderTime = Time[0];
CurrentDirection = 1;
}
//+------------------------------------------------------------------+
void OpenShort()
{
if (Time[0] == LastOrderTime)
return;
if (CurrentDirection != 0)
return;
OrderSend(Symbol(), OP_SELL, Lots, Bid, Slippage, Bid+StopLoss*Point, 0,
"Daydream", MAGIC_NUM, 0, Red);
LastOrderTime = Time[0];
CurrentDirection = -1;
}需要帮助修改指标
嗨,所有的程序员。
我在论坛上发现了一个指标(货币头寸),可以显示我正在交易的当前头寸。现在我想找人帮我把这个指标改成在图表底部使用外部窗口,同时字体和颜色也可以改变。我不擅长编程。非常感谢。
阿萨姆
在测试器中不工作
我在测试器中启动了这个EA。当它到达第一个止损点 时,测试器 就停止了,不再继续进行测试。
//| Daydream by Cothool |
//| Recommended: USD/JPY 1H |
//+------------------------------------------------------------------+
#define MAGIC_NUM 48213657
//+------------------------------------------------------------------+
extern double Lots = 0.1;
extern int ChannelPeriod = 25;
extern int Slippage = 3;
extern int TakeProfit = 0;
extern int StopLoss = 15;
//+------------------------------------------------------------------+
double LastOrderTime = 0;
double CurrentDirection = 0;
double CurrentTakeProfitPrice = 0;
//+------------------------------------------------------------------+
void OpenLong()
{
if (Time[0] == LastOrderTime)
return;
if (CurrentDirection != 0)
return;
OrderSend(Symbol(), OP_BUY, Lots, Ask, Slippage,Ask-StopLoss*Point, 0,
"Daydream", MAGIC_NUM, 0, Blue);
LastOrderTime = Time[0];
CurrentDirection = 1;
}
//+------------------------------------------------------------------+
void OpenShort()
{
if (Time[0] == LastOrderTime)
return;
if (CurrentDirection != 0)
return;
OrderSend(Symbol(), OP_SELL, Lots, Bid, Slippage,Bid+StopLoss*Point, 0,
"Daydream", MAGIC_NUM, 0, Red);
LastOrderTime = Time[0];
CurrentDirection = -1;
}
//+------------------------------------------------------------------+
void CloseLong()
{
int i;
if (Time[0] == LastOrderTime)
return;
if (CurrentDirection != 1)
return;
for (i = 0; i < OrdersTotal(); i++)
{
if (OrderSelect(i, SELECT_BY_POS) && OrderSymbol() == Symbol() &&
OrderMagicNumber() == MAGIC_NUM && OrderType() == OP_BUY)
{
OrderClose(OrderTicket(), OrderLots(), Bid, 3, White);
LastOrderTime = Time[0];
CurrentDirection = 0;
}
}
}
//+------------------------------------------------------------------+
void CloseShort()
{
int i;
if (Time[0] == LastOrderTime)
return;
if (CurrentDirection != -1)
return;
for (i = 0; i < OrdersTotal(); i++)
{
if (OrderSelect(i, SELECT_BY_POS) && OrderSymbol() == Symbol() &&
OrderMagicNumber() == MAGIC_NUM && OrderType() == OP_SELL)
{
OrderClose(OrderTicket(), OrderLots(), Ask, 3, White);
LastOrderTime = Time[0];
CurrentDirection = 0;
}
}
}
//+------------------------------------------------------------------+
void start()
{
double HighestValue;
double LowestValue;
HighestValue = High;
LowestValue = Low[Lowest(NULL, 0, MODE_LOW, ChannelPeriod, 1)];
// BUY
if (Close[0] < LowestValue)
{
CloseShort();
OpenLong();
CurrentTakeProfitPrice = Bid + TakeProfit * Point;
}
// SELL
if (Close[0] > HighestValue)
{
CloseLong();
OpenShort();
CurrentTakeProfitPrice = Ask - TakeProfit * Point;
}
// Trailing Profit Taking for Long Position
if (CurrentDirection == 1)
{
if (CurrentTakeProfitPrice > Bid + TakeProfit * Point)
CurrentTakeProfitPrice = Bid + TakeProfit * Point;
if (Bid >= CurrentTakeProfitPrice)
CloseLong();
}
// Trailing Profit Taking for Short Position
if (CurrentDirection == -1)
{
if (CurrentTakeProfitPrice < Ask - TakeProfit * Point)
CurrentTakeProfitPrice = Ask - TakeProfit * Point;
if (Ask <= CurrentTakeProfitPrice)
CloseShort();
}
}
//+------------------------------------------------------------------+
该代码是惊人的,谢谢