Forum

How to draw object in chart ?

I have a very specific object that i had watched in a youtube video I want to draw a chart like this on my template with all the symbols in my market watch and if a sell condition is executed it should display "SELL" in the respective symbol and timeframe. Any ideas

How to get Binance Futures on MT5 ?

Is it possible to get binance futures historical data and live feed on metatrader5 ? if yes, how would I go about doing it

How to check conditions on loops

Looping through the closes of 3-50 candles to see if the close is below a bb-band, how can i go about coding to check if any one of the closes is above the yellow moving average and all canles are below the mid bb-band for ( int i= 3 : i< 50 ; i++) { if (close[ 1 ] < close[i]) { // true

How to execute block of code only if all conditions of loop are true in MQL5 ?

As an example lets take 10 candles, candles 1-10 and their OHLC data. On the chart this forms a perfect "V" shaped pattern. This in code for me would be ( (close[ 10 ]>close[ 9 ])&&(close[ 9 ]>close[ 8 ])&&(close[ 8 ]>close[ 7 ])&&(close[ 7 ]>close[ 6 ]) ) && ( (close[ 6 ]<close[ 5 ])&&(close[ 5

Help converting MQL4 to MQL5

This EA i have been using in MT4 works great but now i want to take advantage of the extra timeframes provided in MT5, anybody who can contribute a little in helping me convert this, Thanks a ton

Help Accessing Indicator Values in MQL5

I have added a SMA indicator to the RSI window in my chart and set it to First Indicator's data, how do i create handle for the SMA and access its values

Custom Indicator Handle Error

I've downloaded a custom indicator called the TradersDynamicIndex and am having trouble calling the indicator in the EA. I get the following error in strategy tester TDI is not custom indicator and will be removed cannot load custom indicator 'TDI' [4802] indicator create error OnInit critical error

Help with code to execute code once per bar in MQL5

I've been using this code on a multi symbol EA trying to make it execute only once per bar but it executes on every tick , please help. //+------------------------------------------------------------------+ //| ProjectName | //| Copyright 2020, CompanyName | //| http://www.companyname.net |

Help with CandleStick Pattern Coding

As you can see from the above image i use bollinger bands , my strategy involves having 2 point of candles touching the BB band and the candles between these 2 points should form an upside down "V", i am having trouble coding the V part, i use array maximum to find the highest close between the 2

Error with OrderSend in MQL5

i am using the below code to check for existing positions and opening a trade but the ea still keeps opening multiple orders, help please. //+------------------------------------------------------------------+ //| ProjectName | //|