Participe de nossa página de fãs
Coloque um link para ele, e permita que outras pessoas também o avaliem
Avalie seu funcionamento no terminal MetaTrader 5
- Publicado por:
- [Excluído]
- Visualizações:
- 2528
- Avaliação:
- Publicado:
- 2024.04.10 02:15
- Atualizado:
- 2024.04.10 02:24
-
Precisa de um robô ou indicador baseado nesse código? Solicite-o no Freelance Ir para Freelance
This MQL4 script is designed to close positions for a basket of currency pairs based on certain profit and loss thresholds. Here's a brief description:
- The script is called "CloseBasketPairs.mq4".
- It is copyrighted by MetaQuotes Software Corp. in 2024.
- It provides a link to the MetaQuotes website.
- The version of the script is 1.01.
- The script is authored by "persinaru@gmail.com".
- The script is licensed under the IP 2024 - free open source.
- The main purpose of the script is to close positions for a basket of currency pairs when certain profit or loss thresholds are met.
- It is a warning that the script should be used at your own risk, and the creator cannot be held responsible for any damage or loss.
The script defines the pairs in the basket and their respective order types, along with profit and loss thresholds. It loops through all open positions and checks if they belong to the defined basket pairs. If a position meets the criteria (profit exceeding the profit threshold or loss exceeding the loss threshold), it closes the position.
Finally, it provides functions for initialization, deinitialization, and handling tick events. The PrintStrategyInfo() function is used to print information about the strategy.
![Reverse Trades For All Symbols Script](https://c.mql5.com/i/code/script.png)
Reverses all open trades after Closure for all symbols .
![Trailing_StopLoss_for All_orders_and_symbols](https://c.mql5.com/i/code/expert.png)
Trailing_StopLoss_for All_orders_and_symbols
![Virtual SL TP Pending with SL Trailing for Symbol Chart](https://c.mql5.com/i/code/expert.png)
Virtual SL TP Pending with SL Trailing for Symbol Chart
![Classic and Virtual Trailing](https://c.mql5.com/i/code/expert.png)
Classic & Virtual Trailing for MT4