Forum

Bollinger Bands Data not as expected

I have written an EA to product training data for a Python forecasting model. Most seems OK but the output from the Bollinger Bands is the same for HI, MID & LO. The folloing is the Terminal LOG 2025.08 .04 15 : 27 : 53.368 Create_Training_DataV2_For_LSTM_v2 (XAUUSD,M5)

Account 'Locked'

I am baffled but suspect there is an easy solution. I have been trying to understand how to use Python (and AI) in conjunction with my MT5 EA. I use the Visual Studio CODE application. I have made some initial progress - i.e. can Initialize, login , retrieve account data etc. I have been accessing a

Indicator Handles

I am trying to code 'correctly' and efficiently in MT5. I have an EA that loops through different currency pairs and for each currency looks at an Indicator using the iCustom function. As I understand I don't need to RELEASE a handle but .... 1. Do I need a separate HANDLE for each currency PAIR

Price - deviation - why?

I have been running an EA and was surprised to see a trade that was apparently opened 200 -300 points from the price. (Spread may have been 50-60 points). Any help appreciated. File attached

EX5 write error

I get the above code at compile time and all I have is this line (the zero's are line and column i.e. no help) EX5 write error 0 0 This is an EA I have compiled several times with small changes and no problem previously. Have tried twice and still occurs. Tried to close the IDE and

Error or NO Error

I have my reporting logs and I sometimes see something like Sell ticket = 2303414370 request.price = 1.07751 request.volume = 0.16 type = 1 iRes = 1 price = 1.07747 volume = 0.16 is TRUE MyComment = EURUSD_40117263422_S My_error: 4756 Trade request sending failed The command 'Sell' appears to have

Chart TABS not showing

I just created a new installation of an MT5 platform with a new broker. If I open 2 charts (say) then if I adjust one to full screen then the TAB for the other screen is not visible (or present). If I minimise the current tab than I see both tabs. Previously all TABS sow at the bottom of the chart

Finding - The selected position is still open.

how to 'track' error CHistoryPositionInfo::HistoryPositionCheck > Error: the selected position is still open. Just don't know how to figure out where this is occurring and how to fix the problem. Should I be 'closing' something, somewhere Any pointers appreciated

What does question mark mean in mt5 code

I have seen this code in the source of an indicator and just wondering what does the question mark ? accomplish and conjunction with the colon : . val[i] = (absValue > 0 ) ? workTrend[i][_TDF]/absValue : 0 ; levup[i] = TriggerUp; levdn[i] = TriggerDown; valc[i] = (val[i] >

Can I supress Alerts and Sounds

I am using an indicator (free) called "buy-sell-signals-arrows-indicator". I don't have the source code . Comments are in Russian but I have tried changing the 3 variables with True or False options and I still get the pop-ups and sound signals. Is there any means of over riding the these actions