Download MetaTrader 5

Discussão do artigo "Expert Advisor Universal: Um Trailing Stop Customizado (Parte 6)"

Para adicionar comentários, por favor Conecte-se ou registrar
MetaQuotes Software Corp.
Moderador
192491
MetaQuotes Software Corp.  

Novo artigo Expert Advisor Universal: Um Trailing Stop Customizado (Parte 6) foi publicado:

A sexta parte do artigo sobre o Expert Advisor universal descreve o uso do recurso "Trailing Stop". O artigo irá guiá-lo através de como criar um módulo "Trailing Stop" personalizado com regras unificadas, bem como adicioná-lo ao motor de negociação para gerir automaticamente as posições.

New functions have been added to the trading engine in the sixth part of the article. Now the trading engine supports trailing stops. Each trailing stop is a special class that contains the standardized Modify method that modifies the stop-loss level. It also contains specific data and parameters that configure the trailing moving algorithm. Trailing stop can be used in two ways.

  • The trailing stop operation can be implemented in a trading engine of a strategy or the Autopilot mode can be enabled. In the latter case, a default trailing stop will be automatically applied to a position. No control from the custom strategy side is required in this case. 
  • Trailing stop management on the custom strategy side. In this case the custom strategy manages its own positions using the trailing stop function. This mode allows implementing complex control logic — e.g. use different trailing algorithms for different position types.

Autor: Vasiliy Sokolov

Para adicionar comentários, por favor Conecte-se ou registrar