我如何通过试验和错误组装我的顾问 - 页 63

 
世界友人》热度六月)))))
 
Alexsandr San:

草稿按钮,可能对某人的mt4有用

我想我已经把一切都联系好了。可以在测试器中和在现实中使用。

//---
input string   t10="----------- Time ------------------";
input datetime HoursFrom        = D'1970.01.01'; // Закрыть всё
input string   t="------------- Balans Parameters -----";
input double   TargetProfit     = 999999.99;     // Баланс + Прибыль(прибавить к балансу)
input double   TargetLoss       = 0;             // Баланс - Убыток(отнять от баланса)
input string   _Orders_="------ Parameters Order ------";
input double   Lots             = 0.01;          // Lots
input int      StopLoss         = 10000;         // StopLoss
input int      TakeProfit       = 10000;         // TakeProfit
input double   TrailingStop     = 300;           // TrailingStop Фиксированный размер трала
input double   TrailingStep     = 50;            // TrailingStep Шаг трала
//---

时间BalansClose

附加的文件:
 
Alexsandr San:

我想我已经把所有的线都接好了。你可以在测试器中和现实生活中做到这一点

增加了一条横线,打开了位置和反向的相同。

竖着的那一个关闭了一切

//---
input string   t10="----------- Time ------------------";
input datetime HoursFrom        = D'1970.01.01'; // Закрыть всё
input string   t="------------- Balans Parameters -----";
input double   TargetProfit     = 999999.99;     // Баланс + Прибыль(прибавить к балансу)
input double   TargetLoss       = 0;             // Баланс - Убыток(отнять от баланса)
input string   _Orders_="------ Parameters Order ------";
input double   Lots             = 0.01;          // Lots
input int      StopLoss         = 10000;         // StopLoss
input int      TakeProfit       = 10000;         // TakeProfit
input double   TrailingStop     = 300;           // TrailingStop Фиксированный размер трала
input double   TrailingStep     = 50;            // TrailingStep Шаг трала
input string   R_Orders_="----- Revers H Line ---------";
input bool     ReversOrders     = false;         // Revers Horizontal Line
//---

HLinTimeBalansClose

如图所示,需按下线上按钮

-------------------------------------------

这是为测试人员准备的--为了正常工作,请检查何时开市。

附加的文件:
 
Alexsandr San:

从水平线添加的位置打开,并反转到相同的位置

从垂直线关闭一切


必须按画好的线条按钮

-------------------------------------------

这是为测试者准备的--为了正常工作,我需要检查开市时间。

用于MT4的有趣工具

设置

//---
input string   t10="----------- Time ------------------"; //
input datetime HoursFrom        = D'1970.01.01'; // Закрыть всё
input string   t="------------- Balans Parameters -----"; //
input double   TargetProfit     = 999999.99;     // Баланс + Прибыль(прибавить к балансу)
input double   TargetLoss       = 0;             // Баланс - Убыток(отнять от баланса)
input string   t2="------------ Exchange TP SL --------"; //
input double   InpTProfit       = 1000;          // Exchange TP
input double   InpStopLoss      = 1000000;       // Exchange SL
input string   t0="------------ Lots Parameters -------"; //
input double   InpLots1         = 0.01;          // : Lots 1
input int      InpLots_01       = 200;           // Exchange Lots
input double   InpLots2         = 0.02;          // : Lots 2
input int      InpLots_02       = 400;           // Exchange Lots
input double   InpLots3         = 0.04;          // : Lots 3
input int      InpLots_03       = 800;           // Exchange Lots
input double   InpLots4         = 0.08;          // : Lots 4
input string   _Orders_="------ Parameters Order ------"; //
input int      StopLoss         = 10000;         // StopLoss
input int      TakeProfit       = 10000;         // TakeProfit
input double   TrailingStop     = 300;           // TrailingStop Фиксированный размер трала
input double   TrailingStep     = 50;            // TrailingStep Шаг трала
input string   R_Orders_="----- Revers H Line ---------"; //
input bool     ReversOrders     = false;         // Revers Horizontal Line
//---
附加的文件:
 
Alexsandr San:

用于MT4的有趣的工具

设置

我将测试它并报告它的工作情况

 
Сергей Дыбленко:

当我测试它时,我会让你知道它的情况。

这个工具更有趣,水平线 是一种挂单,是的,反向不要忘记,它就像一个从买入到卖出的反转极。

还有这个函数

input string   t2="------------ Exchange TP SL --------"; //
input double   InpTProfit       = 1000;          // Exchange TP
input double   InpStopLoss      = 1000000;       // Exchange SL

例如,在卖出时,可能会有减分,但总金额将被关闭。

这里是有很多的函数

input string   t0="------------ Lots Parameters -------"; //
input double   InpLots1         = 0.01;          // : Lots 1
input int      InpLots_01       = 200;           // Exchange Lots
input double   InpLots2         = 0.02;          // : Lots 2
input int      InpLots_02       = 400;           // Exchange Lots
input double   InpLots3         = 0.04;          // : Lots 3
input int      InpLots_03       = 800;           // Exchange Lots
input double   InpLots4         = 0.08;          // : Lots 4

当一个仓位的亏损超过总数时--下一个仓位将以更大的手数开仓。

--------------------------------------

所有功能都在策略测试器中工作 - 在策略测试器中

-----------------------------------------------------------------------------

这里有一个例子,所有的东西都是负数,但手数从损失中增加,(InpTProfit = 10;// Exchange TP) 放了10,因为总金额变成了+10,所有的头寸都被关闭

如果他们以另一种方式开放,他们不会关闭,直到他们达到+10

图片来源

--------------------------------------------

你可以在许多货币对中使用 - 通过删除挂单和总利润来关闭所有头寸的时间。

并从垂直线上删除一切

快照3

 
Alexsandr San:

用于MT4的有趣的工具

设置

#财产版本 "1.01"

修复了该地段的开口

input string   t0="------------ Lots Parameters -------"; //
input double   InpLots          = 0.01;          // Lots
input double   InpLots1         = 0.02;          // : Lots 1
input int      InpLots_01       = 200;           // Exchange Lots
input double   InpLots2         = 0.04;          // : Lots 2
input int      InpLots_02       = 400;           // Exchange Lots
input double   InpLots3         = 0.08;          // : Lots 3
input int      InpLots_03       = 800;           // Exchange Lots
input double   InpLots4         = 0.16;          // : Lots 4
附加的文件:
 
Alexsandr San:

#财产版本 "1.031"

算是纠正了计算方法,从

#财产版本 "1.032"

纠正了地段的开口

input string   t0="-----  Lots Parameters   -----";              //
input uint     maxLimits                    = 1;                 // Кол-во Позиции Открыть в одну сторону
input double   InpLots                      = 0.01;              // Lots
input double   InpLots1                     = 0.02;              // : Lots 1
input int      InpLots_01                   = 200;               // Exchange Lots >< Point Lots
input double   InpLots2                     = 0.04;              // : Lots 2
input int      InpLots_02                   = 400;               // Exchange Lots >< Point Lots
input double   InpLots3                     = 0.08;              // : Lots 3
input int      InpLots_03                   = 800;               // Exchange Lots >< Point Lots
input double   InpLots4                     = 0.16;              // : Lots 4
附加的文件:
 
Alexsandr San:

我在MT4上做了一个专家顾问,无事可做。

对于这种类型的指标,https://www.mql5.com/ru/code/8772

这是其中一种模式

有一种通常的模式--开放关闭

稍微重做了一下,以便更好地

我没有附上指标--你需要根据自己的口味选择。


附加的文件:
 
Semaphore Line
Semaphore Line
  • www.mql5.com
или от Горизонтальной линии установить трал.(линии срабатывают от касания)
原因: