hi guys i always see codes with continue at the end. what exactly it does? i coded some not complicated EA but i dont used it. I try to read in google but i cant really understand why you have to put it. What help will it add on my EA? Here is an
hi as stated on my title, I put a button that closes all my open trade at the same time when I press it, but sometimes when I change my timeframe in mt4 it randomly activate without me pressing the button, here is the code of my button if (id==
hi guys I have a object Hline that gets the price value wherever i put the Hline on the chart then pass the price value on a label object to display its value. My problem is the value on my label only changes when my tick updates. I want it to
hi guys I'm trying to make a label on my EA that will display the possible loss amount of my current open multiple sell orders. I have a horizontal line that will give the price, the price that was given by the horizontal line is will be used as Stop
hi sir have an EA that creates horizontal lines and create a button when initiated. If the button is pressed an order will open and all the horizontal line that have created upon inititating the EA will be deleted buy ObjectDelete. For example
Hi guys I have a code the create horizonal line on chart, my problem is how can I get the price of where my horizontal line is located and save it to a variable, if I drag the HLine up or down the variable where the price is saved will updated. thank
Hi guys I need advice on what to do with the magic number of my EA. When I start my EA I manually input the magic number that my EA will use, and when I use my EA to a different chart and input the magic number I add +1 to the magic number used on
Hi guys i have coded EA trade management. It automatically set my trailing stops when it reach a certain percent on gain. To activate it i need to manually open a trade, after manually opening a trade i run the EA so it can adjust my trailing stops
Hi guys i want to learn how to code objects on mql4. I want to createe buttons and panel on mt4. Like buy sell button, textbox where i can input lotsize that i want to use, inserting horizontal line and and returning and displaying the
Hi guys is im coding an EA that will only trade on a given session but broker time local time and GMT is confusing me. Im making a function that will trigger my ordersend if the time hits a given session example new york session. Is this the correct
Hi guys im doing this EA but using date, time and timezone confuses me. Can you help me make a function that will return true if its New York Session or return true if its the first 3hours of New York Session? Thank you so much :)
hi i am making an EA that will send order only on new york session, but im confuse on how will my EA know if the time now is in New York session. What reference or function do i need
hi guys i have 2 function function 1 and function 2 function 1 has has a formula that the answer of that formula is will be used by function 2. My problem is that function 1 and function 2 is calculating at the same time that is why function 1 is
hi guys Im trying to get the magic number of my most recent Take Profit trade on history with this code int magicnumberclose() SHMagicNumberClosed = 0 ; for ( int i= OrdersTotal ()- 1 ;i>= 0 ;i--) { if ( OrderSelect (i, SELECT_BY_POS
hi sir I want to know if it is possible on MQL4 to code a function that will close my trade and delete my order at the same time if a Take profit target with the given magic number is hit? is Yes, what should I do? thank you so much
hi guys my EA has has a function of 1. delete pending order for buy 2. close open order for buy 3.delete pending order for sell 4. close open order for sell when I coded my EA I made it in to two different .mq4 BUY.mq4 and SELL.mq4 to avoid