Forum

I need to make my EA open trades on multiple symbols

Hello everybody! I have a problem: I need to make my EA open a trade only when there is no other trade open on that same symbol, and I want to use the same EA on multiple symbols. if ( (MarketInfo( Symbol (), MODE_SPREAD )<= MS) && ( OrdersTotal ()== 0 ) ) OpenTrade(); This is the filter that I

Pivot Points

Hi everyone! I am trying to get my EA to make decisions regarding the Pivot Points, I have declared them in the header and I placed a comment to see the result, however it only calculates me with respect to the candle before the one it starts, if a new candle is opened it does not recalculate. Can

Calculate the number of bullish candles on a chart

Hello Can you help me to know how to calculate the number of bullish candles on a chart in mql4? In advance thank you very much for the help

Find the price that has been in the most number of candles.

Hello I am trying to find the price that has been in the most candles, to mark a level of importance. The idea is that this function finds the price at which this has happened above the current price, however I am lost at this point. I am attaching the code that I currently have, I hope you can help

The largest of several numbers

Hi I need to get the largest of several numbers, but I don't know how to do it. There is a function called MathMax , but it doesn't work for me since it only gets the highest value of 2 numbers. Can you help me, please

The server is always changing and looking for a bigger ping

Hello I am new to VPS, and I have a problem: Every time I enter the remote desktop I have to change the server to the one with the lowest ping. Is there a way to make MT4 always look for the server with the lowest ping

Recurring horizontal levels

Hi These days I have discovered the Murrey Math indicator (very good, by the way). Although it has helped me a lot, what I'm really looking for is an indicator of recurring levels: basically what it does is draw a horizontal line where it crosses the largest number of candles, the more candles it

Comments on the chart

Hi all! I need to put comments on the chart my EA is running on. The idea is to place them in the lower right corner , so that I can visualize them better. How do I put them there? Is it essential to create a text object to do it? Or can it be done with a comment

Add spread value to comment

Hi everyone I am currently testing the results of an EA and would like to know the spread with which it opens each operation, so I have the idea of adding that data to the comment when opening the operation: "Name of my EA" + "spread". The way I'm doing it is: extern string co = "My custom EA " ;

OrderModify error 1 in Trailing Stop

Hello, I have this code for the Trailing Stop of my EA, and it is generating the "OrderModify error 1", can you help me to know what I am doing wrong please? int nbuy() { int b0= 0 ; for ( int i= 0 ;i< OrdersTotal ();i++) { int a1= OrderSelect (i, SELECT_BY_POS , MODE_TRADES );