Pengfei Wang / Perfil
- Informações
6+ anos
experiência
|
0
produtos
|
0
versão demo
|
0
trabalhos
|
0
sinais
|
0
assinantes
|
Amigos
100
Pedidos
Enviados
Pengfei Wang
收藏
我先说这个函数怎么写,写的不好小伙伴们凑合着用:
外部可更改变量中添加一外部变量:
input int Pending_Minute = 1440;
然后在报价执行函数范围内添加如下代码:
double Limited_Time = Pending_Minute*60;
double Effective_Time = TimeCurrent() + Limited_Time;
最后在开仓函数 OrderSend 添加 变量 Effective_Time
示例:
ticket = OrderSend(Symbol(), OP_BUYLIMIT, StartLot, Bid-500* Point, 30, Bid-500* Point - 300 * Point, 0, comment, MagicNumber, Effective_Time , Aqua);
我先说这个函数怎么写,写的不好小伙伴们凑合着用:
外部可更改变量中添加一外部变量:
input int Pending_Minute = 1440;
然后在报价执行函数范围内添加如下代码:
double Limited_Time = Pending_Minute*60;
double Effective_Time = TimeCurrent() + Limited_Time;
最后在开仓函数 OrderSend 添加 变量 Effective_Time
示例:
ticket = OrderSend(Symbol(), OP_BUYLIMIT, StartLot, Bid-500* Point, 30, Bid-500* Point - 300 * Point, 0, comment, MagicNumber, Effective_Time , Aqua);
: