2附件你好


EA将被用作交易助手并测试新想法。

我将为其他条件编码

例:
//#8230;#8230;#8230;#8230;#8230;#8230;#8230;#8230;#8230;#8230;#8230;#8230;#8230;#8230;#8230;#8230; #8230;#8230;#8230;
int start()
{
//----
如果(!StatusOK)
{
返回(0);
}
GetDayOpen();
GetSpread();
更新状态();
WriteComment();
int CurrentHour = TimeHour(TimeCurrent());

//#8230;#8230;#8230;#8230;#8230;#8230;#8230;#8230;#8230;#8230;#8230;#8230 ;.



我希望一个EA会按照下面的脚本在每个新的栏中放置以下三个挂单,EA将一次放置在几个货币对上,因此它需要进行错误检查和重试,因为它通常会发送订单瞬间。

EA还应该包含汽车魔术号码,因为我有其他EA#8217;在单独的窗口中,根据名称和幻数来管理交易。

在一个或两个酒吧中设置票证过期的输入会很好

此外,如果挂起买入止损单并且(低[0] - ((价差* 2) (1 *点))lt;低[2],则删除未决买入止损EA放置在当前的符号和当前大体时间

如果一个挂起的买入止损被放置,并且((high [0] Spread * 3) (1 * point))> high [2],然后删除放置在当前符号和当前时间范围内的EA上挂起的卖出止损。


如果可能的话:

在当前时间范围内运行的EA只会影响当前时间范围内的订单。由于其他订单可能通过其他方式放置在相同的符号和不同的时间范围内。










我在Forex.com英国平台上使用以下脚本



MULTIBUY

//#属性show_inputs

双重风险百分比= 0.35;/35/2这次3是100个完整头寸
//double Lots = 1;

// ----------------------------------------------- -------------------
//|脚本程序启动功能|
// ----------------------------------------------- -------------------
int start()
{

//如果是后者,可以提供名字
字符串TicketComment2X = StringConenate(TicketComment2X,Period(), - ,2X);
字符串TicketCommentManageOne = StringConenate(TicketCommentManageOne,Period(), - ,MANAGEONE);
字符串TicketCommentManageTwo = StringConenate(TicketCommentManageTwo,Period(), - ,MANAGETWO);


//包含输入时间范围的自动字符串
int SpreadPointss = MarketInfo(Symbol(),MODE_SPREAD);
double GetBid = MarketInfo(Symbol(),MODE_BID);
double SpreadPoints =(SpreadPointss * Point);
double OnePoint =(1 * Point);
双重风险= RiskPercent100;
double MyStopLoss =((High [1] (SpreadPoints OnePoint)) - (Low [1] - (((SpreadPoints SpreadPoints2)) - OnePoint)))/Point;
double GetTarget =((High [1] (SpreadPoints OnePoint)) - (Low [1] - (((SpreadPoints SpreadPoints2))-OnePoint)));
//Double MyStopLoss =((High [1] (SpreadPoints OnePoint)) - (Low [1] - ((SpreadPoints2) - OnePoint)))/Point;
//Double GetTarget =((High [1] (SpreadPoints OnePoint)) - (Low [1] - ((SpreadPoints2)-OnePoint)));



//double GetTarget =((High [1] (SpreadPoints OnePoint)) - (Low [1] - OnePoint));
Double TargetLong = NormalizeDouble((High [1] GetTarget),Digits);/测试数字
双重Lots = NormalizeDouble(AccountBalance()* RiskMyStopLoss(MarketInfo(Symbol(),MODE_TICKVALUE)),2);
双LotsDivided =(Lots2);
双允许=(OnePoint * 5);

Double AutoAllowable =(OnePoint * MarketInfo(Symbol(),MODE_STOPLEVEL));
双EntryPrice;
double BIDANDPOINTS =(GetBid SpreadPoints OnePoint);
double HIGHANDPOINTS =(High [1] SpreadPoints OnePoint);


//调整进入停止损失水平


如果(BIDANDPOINTS> HIGHANDPOINTS-AutoAllowable)
{
EntryPrice = BIDANDPOINTS AutoAllowable;
}别的
{
EntryPrice = HIGHANDPOINTS;
}


如果(许多gt; 0)
OrderSend(Symbol(),OP_BUYSTOP,Lots,EntryPrice,3,(Low [1] - (SpreadPoints OnePoint (SpreadPoints2))),TargetLong,TicketComment2X,0,NULL,LimeGreen);
OrderSend(Symbol(),OP_BUYSTOP,LotsDivided,EntryPrice,3,(Low [1] - (SpreadPoints OnePoint (SpreadPoints2))),0,TicketCommentManageOne,0,NULL,LimeGreen);
OrderSend(Symbol(),OP_BUYSTOP,LotsDivided,EntryPrice,3,(Low [1] - (SpreadPoints OnePoint (SpreadPoints2))),0,TicketCommentManageTwo,0,NULL,LimeGreen);


返回(0);
}
// ----------------------------------------------- --------




MULTISELL

//#属性show_inputs


双RiskPercent = 0.35;/352.0
//double Lots = 1;

// ----------------------------------------------- -------------------
//|脚本程序启动功能|
// ----------------------------------------------- -------------------
int start()
{
字符串TicketComment2X = StringConenate(TicketComment2X,Period(), - ,2X);
字符串TicketCommentManageOne = StringConenate(TicketCommentManageOne,Period(), - ,MANAGEONE);
字符串TicketCommentManageTwo = StringConenate(TicketCommentManageTwo,Period(), - ,MANAGETWO);


int SpreadPointss = MarketInfo(Symbol(),MODE_SPREAD);
double SpreadPoints =(SpreadPointss * Point);
double OnePoint =(1 * Point);
双重风险= RiskPercent100;
double MyStopLoss =((High [1] (SpreadPoints OnePoint)) - (Low [1] - (((SpreadPoints SpreadPoints2)) - OnePoint)))/Point;
double GetTarget =((High [1] (SpreadPoints OnePoint)) - (Low [1] - (((SpreadPoints SpreadPoints2)) - OnePoint)));

//Double MyStopLoss =((High [1] (SpreadPoints OnePoint)) - (Low [1] - ((SpreadPoints2) - OnePoint)))/Point;
//Double getTarget =((High [1] (SpreadPoints OnePoint)) - (Low [1] - ((SpreadPoints2) - OnePoint)));




//double GetTarget =((High [1] (SpreadPoints OnePoint)) - (Low [1] - OnePoint));
double TargetShort = NormalizeDouble((Low [1] -GetTarget),Digits);/测试数字
双重Lots = NormalizeDouble(AccountBalance()* RiskMyStopLoss(MarketInfo(Symbol(),MODE_TICKVALUE)),2);
双LotsDivided =(Lots2);
double GetBid = MarketInfo(Symbol(),MODE_BID);
双允许=(OnePoint * 5);
Double AutoAllowable =(OnePoint * MarketInfo(Symbol(),MODE_STOPLEVEL));
双EntryPrice;
双BIDANDPOINTS =(GetBid - OnePoint);
双LOWANDPOINTS =(低[1] - OnePoint);


//调整进入停止损失水平

如果(BIDANDPOINTS <LOWANDPOINTS AutoAllowable)
{
EntryPrice = BIDANDPOINTS-AutoAllowable;
}别的
{
EntryPrice = LOWANDPOINTS;
}









如果(许多gt; 0)
OrderSend(Symbol(),OP_SELLSTOP,Lots,EntryPrice,3,(High [1] (SpreadPoints (SpreadPoints2) OnePoint)),TargetShort,TicketComment2X,0,NULL,LimeGreen);
OrderSend(Symbol(),OP_SELLSTOP,LotsDivided,EntryPrice,3,(High [1] (SpreadPoints (SpreadPoints2) OnePoint)),0,TicketCommentManageOne,0,NULL,LimeGreen);
OrderSend(Symbol(),OP_SELLSTOP,LotsDivided,EntryPrice,3,(High [1] (SpreadPoints (SpreadPoints2) OnePoint)),0,TicketCommentManageTwo,0,NULL,LimeGreen);





返回(0);
}
// ------------------------

https://www.forex-pedia.com/attachme...4869765307.mq4

https://www.forex-pedia.com/attachme...6643342626.mq4