Forum

Replace user32.dll information . Help for Mql Market

i am trying to figure out how i can replace these call functions in my EA so that i can submit them for mql5 market . i am new to coding so i know the easy way of doing it by using user32.dll then it allows me to A) close trades or B) turn off EA trading in total The ea i am building is for Trade

Need some help with Divided By Zero Error

when i compile i have zero errors but when i run the ea i see this sometimes pop up 2022.04.28 15:27:22.012 RoyalPrinceDash AUDCAD,H1: zero divide in 'RoyalPrinceDash.mq4' (1186,107) and in Metaeditor Debugger it highlights this section of code. i will post it below. void PlotSpreadPips() {

Error #4051 Invalid Lots Amount for OrderSend Function

i am getting a Sell/buy Failed with Error #4051 Invalid lots amount for OrderSend function . i am still very new to coding and i am trying to fix these errors, but the ea places the buy&sell trades just fine. so i dont know what is wrong with the Ordersend line. could someone please give me some