Come ho assemblato il mio consulente per tentativi ed errori - pagina 63

 
AMICO DEL MONDO Calore Giugno)))))
 
Alexsandr San:

Pulsanti di bozza, può essere utile a qualcuno per mt4

Credo di avere tutto pronto. Può essere nel tester e sul reale

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

File:
 
Alexsandr San:

Credo di aver cablato tutto. Puoi farlo nel tester e nella vita reale

aggiunto una linea orizzontale apre la posizione e l'inversione allo stesso

quello verticale chiude tutto

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

i pulsanti della linea devono essere premuti, come disegnato

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

questo è per il tester - per funzionare correttamente controlla quando il mercato apre

File:
 
Alexsandr San:

aggiunto dalle linee orizzontali apre le posizioni e si inverte allo stesso

dalla linea verticale chiude tutto


i pulsanti della linea devono essere premuti, come disegnato

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

questo è per il tester - per funzionare normalmente ho bisogno di controllare quando il mercato apre

utilità interessante per mt4

impostazioni

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

Utilità interessante per mt4

impostazioni

Lo testerò e riferirò come funziona

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

Quando lo proverò, vi farò sapere come va.

questo strumento è più interessante, la linea orizzontale è una sorta di ordine pendente, e sì, invertire non dimenticare, è come una inversione di poli da comprare a vendere

c'è anche questa funzione

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

per esempio in vendita, ci possono essere punti in meno ma l'importo totale sarà chiuso.

ecco la funzione con lotto

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 una posizione è in deficit sopra il totale - la posizione successiva sarà aperta con un lotto più grande

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

tutte le funzioni funzionano nello strategy tester - nello strategy tester

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

qui è un esempio tutto stava andando in meno ma il lotto stava aumentando da perdita e(InpTProfit = 10;// Exchange TP) ha messo 10, come importo totale è diventato +10 tutte le posizioni sono state chiuse.

Se fossero aperti in un altro modo, non si chiuderebbero fino a raggiungere il +10

Foto di

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

si può usare con molte coppie - per tempo tutte le posizioni si chiuderanno rimuovendo gli ordini pendenti e per i profitti totali

e anche dalla linea verticale cancellerà tutto

Istantanea3

 
Alexsandr San:

Utilità interessante per mt4

impostazioni

#proprietà versione "1.01"

Fissata l'apertura del lotto

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
File:
 
Alexsandr San:

#proprietà versione "1.031"

In un certo senso ha corretto il calcolo da

#proprietà versione "1.032"

Corretta l'apertura del lotto

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
File:
 
Alexsandr San:

Ho fatto un Expert Advisor su mt4 dal nulla per fare

per questo tipo di indicatorihttps://www.mql5.com/ru/code/8772

Questo è uno dei modi

C'è una modalità abituale - aprire chiudere

Leggermente rielaborato per migliorare

Non sto allegando l'indicatore - è necessario scegliere secondo il proprio gusto


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