Comment j'ai assemblé mon conseiller par essais et erreurs - page 63

 
WORLD FRIEND Heat Juin)))))
 
Alexsandr San:

Boutons de brouillon, peut être utile à quelqu'un pour mt4

Je crois que j'ai tout branché. Peut être dans le testeur et sur le réel

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

TempsBalansClose

Dossiers :
 
Alexsandr San:

Je crois que j'ai tout branché. Vous pouvez le faire dans le testeur et dans la vie réelle.

ajout d'une ligne horizontale ouvrant la position et l'inverse à la même

la verticale ferme tout

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

il faut appuyer sur les boutons de la ligne, comme le montre le dessin

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

ceci est pour le testeur - pour fonctionner correctement, vérifiez quand le marché ouvre.

Dossiers :
 
Alexsandr San:

ajouté à partir de lignes horizontales ouvre des positions et des revers à la même

de la ligne verticale ferme tout


il faut appuyer sur les boutons de la ligne, comme dessiné

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

ceci est pour le testeur - pour travailler normalement je dois vérifier quand le marché ouvre

utilité intéressante pour mt4

paramètres

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

Utilitaire intéressant pour mt4

paramètres

Je vais le tester et rapporter comment il fonctionne

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

Quand je l'aurai testé, je vous ferai savoir comment ça se passe.

cet outil est plus intéressant, la ligne horizontale est une sorte d'ordre en attente, et oui, le renversement n'oublie pas, c'est comme un renversement des pôles de l'achat à la vente.

il y a aussi cette fonction

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

par exemple en vente, il peut y avoir des points négatifs mais le montant total sera clôturé.

voici la fonction avec lot

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

lorsqu'une position est déficitaire par rapport au total - la position suivante sera ouverte avec un lot plus important.

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

toutes les fonctions fonctionnent dans le testeur de stratégie - dans le testeur de stratégie

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

Voici un exemple, tout allait dans le sens négatif mais le lot augmentait à partir de la perte et(InpTProfit = 10;// Exchange TP) a mis 10, comme le montant total est devenu +10 toutes les positions ont été fermées.

Si elles étaient ouvertes d'une autre manière, elles ne se fermeraient pas avant d'avoir atteint +10.

Photo par

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

vous pouvez l'utiliser avec de nombreuses paires - en fonction de l'heure à laquelle toutes les positions seront fermées en supprimant les ordres en attente et en fonction des bénéfices totaux.

et aussi de la ligne verticale va tout supprimer

Instantané3

 
Alexsandr San:

Utilitaire intéressant pour mt4

paramètres

#property version "1.01"

Correction de l'ouverture du lot

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

#propriété version "1.031"

J'ai en quelque sorte corrigé le calcul de

#propriété version "1.032"

Correction de l'ouverture du Lot

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

J'ai créé un conseiller expert sur MT4 à partir de rien.

pour ce type d'indicateurshttps://www.mql5.com/ru/code/8772

C'est l'un des modes

Il existe un mode habituel - ouvert fermé

Légèrement retravaillé pour une meilleure

Je ne joins pas l'indicateur - vous devez choisir selon votre goût.


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