Como eu monto meu conselheiro por tentativa e erro - página 63

 
AMIGO MUNDIAL Calor Junho)))))
 
Alexsandr San:

Botões de rascunho, podem ser úteis a alguém para mt4

Acho que tenho tudo ligado. Pode estar no testador e no real

//---
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 Шаг трала
//---

TimeBalansClose

Arquivos anexados:
 
Alexsandr San:

Acho que já liguei tudo. Você pode fazer isso no testador e na vida real

acrescentou uma linha horizontal abre posição e inverte para a mesma

a vertical fecha tudo

//---
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

botões de linha precisam ser pressionados, conforme desenhados

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

isto é para o testador - para trabalhar corretamente verificar quando o mercado abre

Arquivos anexados:
 
Alexsandr San:

adicionado a partir de linhas horizontais abre posições e inverte para as mesmas

a partir da linha vertical fecha tudo


os botões de linha devem ser pressionados, conforme desenhados

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

isto é para o testador - para trabalhar normalmente eu preciso verificar quando o mercado abre

utilidade interessante para mt4

configurações

//---
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
//---
Arquivos anexados:
 
Alexsandr San:

Utilidade interessante para mt4

configurações

Vou testá-lo e relatar como funciona

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

Quando eu o testar, eu o informarei como corre.

esta ferramenta é mais interessante, a linha horizontal é uma espécie de ordem pendente, e sim, ao contrário não se esqueça, é como mudar o pólo de compra para venda

há também esta função

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

por exemplo, na venda, pode haver pontos negativos, mas o valor total será fechado.

aqui está a função com lote

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

quando uma posição está em déficit acima do total - a próxima posição será aberta com um lote maior

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

todas as funções funcionam no testador de estratégia - no testador de estratégia

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

aqui está um exemplo de que tudo estava entrando menos, mas muito estava aumentando com a perda e(InpTProfit = 10;// Exchange TP) colocar 10, já que o montante total passou a ser +10 todas as posições foram fechadas.

Se abrissem outro caminho, eles não fechariam até atingir +10

Foto por

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

você pode usar com muitos pares - com o tempo todas as posições serão fechadas pela remoção de ordens pendentes e pelos lucros totais

e também da linha vertical irá apagar tudo

Instantâneo3

 
Alexsandr San:

Utilidade interessante para mt4

configurações

#propriedade versão "1.01"

Fixou a abertura do lote

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
Arquivos anexados:
 
Alexsandr San:

#propriedade versão "1.031

Tipo de cálculo corrigido a partir de

#propriedade versão "1.032

Corrigida a abertura do lote

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
Arquivos anexados:
 
Alexsandr San:

Fiz um consultor especializado em mt4 do nada para fazer

para este tipo de Indicadoreshttps://www.mql5.com/ru/code/8772

Este é um dos modos

Há um modo usual - abrir fechar

Ligeiramente retrabalhados para melhor

Não estou anexando o indicador - você precisa escolher de acordo com seu gosto


Arquivos anexados:
 
Semaphore Line
Semaphore Line
  • www.mql5.com
или от Горизонтальной линии установить трал.(линии срабатывают от касания)
Razão: