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
![Experts](https://c.mql5.com/i/code/expert.png)
Simple check open orders filter boolean function for Expert Advisors - expert para MetaTrader 4
- Visualizações:
- 9334
- Avaliação:
- Publicado:
- 2023.06.12 16:14
- Atualizado:
- 2023.06.12 16:19
-
Precisa de um robô ou indicador baseado nesse código? Solicite-o no Freelance Ir para Freelance
It is common for novice developers to face the challenge of making the Expert Advisor able to detect if there are open orders independently, without using the OrdersTotal() function, as this does not recognize if an order was opened by an EA or if it was opened manually, since it returns the total amount of open orders.
With that in mind, I decided to share this very simple code. In it, I use the Comment() function as a way to demonstrate the Check_Open_Orders function in real time.
The code is extensively explanatory with descriptive notes. I hope it is useful.
![Ma Price Cross (Custom Time)](https://c.mql5.com/i/code/expert.png)
Buys when price breaks above the MA and Sells when price breaks below the MA. User can choose the time range (server time) to trade in.
![Strongest Pair Indicator](https://c.mql5.com/i/code/indicator.png)
This will return the pair with the most growth in the user input start time and end time
![KA-Gold Bot](https://c.mql5.com/i/code/expert.png)
KA-Gold Bot is an advanced trading advisor specifically designed for gold, utilizing the powerful combination of the Keltner channel strategy and two exponential moving averages (EMAs) - the 10-period EMA and the 200-period EMA. Principle of Operation: The 10-period EMA represents the average price cutting above/below the Keltner band, confirming an uptrend/downtrend. The price being above the 200-period EMA supports the uptrend/downtrend. This indicates that the uptrend/downtrend has been stronger than the previous 10 periods, considering the volatility over the last 50 periods.
![Grid Trading Algo](https://c.mql5.com/i/code/expert.png)
This is a grid trading algorithm idea.