Hello to all I'm writing an ea for mt4, I wanted to open an order with a size dimensioned to 2% risk relative to capital I wrote the following code, when I go to calculate the size, gives me a size of 14 lots, using a demo account by EUR 5,000 and a
In mql4, how i can understand if the last ha candle has change it's color from previous candle? i get info about ha candle, with this code: last ha candle: int shiftLastCandle = 1; double haOpen= iCustom ( NULL , PERIOD_D1
i'm building ad indicator in mql for mt4 in my mql indicator, i need to get the chart id of all the chart that i opened manually on my mt4 how i can get these id
it's possible to open a profile in mt4 when i click on a button created on my chart? i found how to open a chart with the function ChartOpen(), but i need to open a profile this is my code to open a chart on button click void OnChartEvent ( const int
hi wi would open a eurusd mt4 chart when a click a button, this is my code that show a button, when i click it, it's does not open any chart of eurusd, where is my error? #define WM_COMMAND 0x0111 string eurusdButton =
hi in my ea, i would like to read the forex news on 16/11/2015 from forexfactory calendar on 16/11/2015, i wrote this code: void getNewsCalendar() { string cookie= NULL ,headers; char post[],result[];
hi i dont understand how to find the high and the low of the last 2 minute candle i use this code: void OnTimer () { datetime thisTime = TimeLocal (); MqlDateTime tm;