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

 

Tous à la recherche de points - ajout de Rsi et Macd à celui-ci (Indicateur https://www.mql5.com/ru/code/392)

XAUUSDM30

BrainTrend1Sig
BrainTrend1Sig
  • www.mql5.com
Просмотров: 4377 Рейтинг: Опубликован: 2011.07.29 17:23 Обновлен: 2016.11.22 07:33 BrainTrend1Sig - это рыночный индикатор для открытия позиций и выхода из них. Он показывает точки смены тренда цветом, когда цена достигает экстремальных значений и наступает самое удобное время для входа или выхода из рынка. В основе индикатора заложены...
Dossiers :
 

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

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

Photo par

Instantané2 c'est l'un des modes

Il existe un mode habituel - ouvert fermé

BrainTrend1Sig
BrainTrend1Sig
  • www.mql5.com
Индикатор BrainTrend1Sig.
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é

Ce glitchy, Indicateur pour le testeurhttps://www.mql5.com/ru/code/8772

Le résultat final est

Instantané0

Snapshot7

BrainTrend1Sig
BrainTrend1Sig
  • www.mql5.com
Индикатор BrainTrend1Sig.
 

difficile dans le testeur MT4, c'est terrible la façon dont les tests passent des indicateurshttps://www.mql5.com/ru/code/28364.

Photo par

Phoenix
Phoenix
  • www.mql5.com
В стрелочном индикаторе Phoenix используется комбинация трех индикаторов: Moving Average, Bolinger Bands и Momentum в сочетании с двумя мощными формулами, основанными на поведении цены текущего графика. В индикаторе Phoenix также реализована система звуковых и текстовых алертов, а также отправка...
 
Alexsandr San:

Peut-être que quelqu'un est intéressé à jouer avec cette fonction dans le testeur - je colle l'utilitaire, il est purement pour le testeur, vous avez également besoin de cet IndicateurLow_Macd_Line.mq5

la fonction elle-même Ici-

quand à partir de l'indicateurLow_Macd_Line.mq5 vous devez donner à ces lignes horizontales, un nom"LOW".

pourrait être intéressant

Vous ne le montrez plus ?

 
Renat Akhtyamov:

pourrait être intéressant.

Vous ne pouvez pas encore me montrer l'État ?

Cette version est purement dans le testeur, pour voir comment la fonction fonctionne. Il n'y a pas de résultat, et même s'il y a un résultat, il n'est pas correct.

Ici https://www.mql5.com/ru/signals/741568 je vérifie l'Utilitaire . Je n'ai pas encore activé cette fonction, je vérifie les autres fonctions.

 
Alexsandr San:

Tous à la recherche de points - ajout de Rsi et Macd à celui-ci (Indicateur https://www.mql5.com/ru/code/392)


a commis une grosse erreur - n'a pas changé le nom

corrigé

//---- имя для окон данных и лэйба для субъокон
   string short_name="Rsi_Macd_BrainTrend1Sig";
   IndicatorSetString(INDICATOR_SHORTNAME,short_name);

Rsi_Macd_BrainTrend1Sig

Dossiers :
 
Renat Akhtyamov:

pourrait être intéressant

vous ne montrez pas déjà le staat ?

cette fonction peut être utilisée comme SL ou comme chalut (vous définissez la distance et le chalut se trouve derrière la ligne bleue).

Photo par

il serait plus clair de l'utiliser à partir de la ligne jaune

//+------------------------------------------------------------------+
//| ENUM_TRADE_COMMAND                                                 |
//+------------------------------------------------------------------+
enum ENUM_TRADE_COMMAND
  {
   Turn_Off=0,       // TURN OFF
   Line1_Line1=1,    // Line: LOWER
   Line2_Line2=2,    // Line: TOP
   Line_Line=3,      // Line: LOWER+Line: TOP
   Line1_buys=4,     // Line: LOWER+Buy's
   Line2_sells=5,    // Line: TOP+Sell's
   sells_Line1=6,    // Line: LOWER+Sell's
   buys_Line2=7,     // Line: TOP+Buy's
   close_buys=8,     // Close All Buy's
   close_sells=9,    // Close All Sell's
   close_all=10,     // Close All Buy's and Sell's
   open_buy=11,      // Open Buy
   open_sell=12,     // Open Sell
   close_open_b=13,  // Close Sell+Open Buy
   close_open_s=14,  // Close Buy+Open Sell
   open_buy_sell=15, // Open Buy and Sell
  };
//+------------------------------------------------------------------+
 

ici https://www.mql5.com/ru/forum/135593/page4#comment_3441020

Fichiers :

Mais il y a une DLL là - je l'ai supprimée. Mais l'indicateur (MT4) fonctionne, j'ai encore besoin de comprendre ce qu'il peut faire.

XAUUSDM30

Новый WmiFor (2.4)
Новый WmiFor (2.4)
  • 2012.02.23
  • www.mql5.com
Наблюдаю больше суток на разных парах. Вот только что еще один сигнал. Редкие, но удивительно точные предсказания (извините за эмоции =...
Dossiers :
WmiFor.mq4  23 kb
 

avant cela, a affiché une fonction, la perte de profit en monnaie - ferme les positions. et un peu faux, il s'est avéré être juste un égal aurait dû être ajouté

//+------------------------------------------------------------------+
//|                                                SIGNAL_PROFIT.mq5 |
//|                        Copyright 2020, MetaQuotes Software Corp. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2020, MetaQuotes Software Corp."
#property link      "https://www.mql5.com"
#property version   "1.00"
//---
#include <Trade\PositionInfo.mqh>
#include <Trade\Trade.mqh>
#include <Trade\SymbolInfo.mqh>
CPositionInfo  m_position;                   // trade position object
CTrade         m_trade;                      // trading object
CSymbolInfo    m_symbol;                     // symbol info object
//---
input double TargetTakeProfit = 10000; // Прибыль
input double TargetStopLoss   = 10000; // Убыток
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
//---

//---
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---

  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---
   if(AccountInfoDouble(ACCOUNT_PROFIT)<-TargetStopLoss ||
      AccountInfoDouble(ACCOUNT_PROFIT)>=TargetTakeProfit)
     {
      CloseAll();
      PlaySound("ok.wav");
     }
  }
//+------------------------------------------------------------------+
//| start function                                                   |
//+------------------------------------------------------------------+
void CloseAll(void)
  {
   for(int i=PositionsTotal()-1; i>=0; i--) // returns the number of current positions
      if(m_position.SelectByIndex(i)) // selects the position by index for further access to its properties
        {
         ClosePosition(m_position.Symbol()); // close a position by the specified symbo
        }
  }
//+------------------------------------------------------------------+
//| Close selected position                                          |
//+------------------------------------------------------------------+
void ClosePosition(const string symbol)
  {
   if(InitTrade(symbol))
      m_trade.PositionClose(m_position.Ticket()); // close a position by the specified symbo
   PlaySound("ok.wav");
  }
//+------------------------------------------------------------------+
//| Init trade object                                                |
//+------------------------------------------------------------------+
bool InitTrade(const string symbol)
  {
   if(!m_symbol.Name(symbol)) // sets symbol name
      return(false);
   if(IsFillingTypeAllowed(symbol,SYMBOL_FILLING_FOK))
      m_trade.SetTypeFilling(ORDER_FILLING_FOK);
   else
      if(IsFillingTypeAllowed(symbol,SYMBOL_FILLING_IOC))
         m_trade.SetTypeFilling(ORDER_FILLING_IOC);
      else
         m_trade.SetTypeFilling(ORDER_FILLING_RETURN);
   return(true);
//---
  }
//+------------------------------------------------------------------+
//| Checks if the specified filling mode is allowed                  |
//+------------------------------------------------------------------+
bool IsFillingTypeAllowed(string symbol,int fill_type)
  {
//--- Obtain the value of the property that describes allowed filling modes
   int filling=(int)SymbolInfoInteger(symbol,SYMBOL_FILLING_MODE);
//--- Return true, if mode fill_type is allowed
   return((filling & fill_type)==fill_type);
  }
//+------------------------------------------------------------------+
Dossiers :
Raison: