mark692
mark692
Friends 2
mark692
Added topic continue?
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
mark692
Added topic OrderClose sometimes randomly close my trades when changing timeframe
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==
mark692
Added topic don't wait for tick to calculate
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
mark692
Added topic Total SL amount or TP amount depending on given Horizontal line price
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
mark692
Added topic EA reset when I change time frame
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
mark692
Added topic Obj_Hline Price
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
mark692
Added topic Magic Number for different chart
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
mark692
Added topic Semi Manual EA
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
mark692
Added topic Panel buttons label and text
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
mark692
Added topic Steps on trading on a session
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
mark692
Added topic return true if its New York Session
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 :)
mark692
Added topic First candle of newyork session
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
mark692
Added topic dont calculate 2 function at the same time
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
mark692
Added topic give the magic number of the latest closed trade on History
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
mark692
Added topic if TP is hit do this and this
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
mark692
Added topic count trade orders and open orders with take profit is greater than zero?
is there a way on how i can count the open trades and pending order that have a take profit greater than zero
mark692
Added topic error 4108 on pending order and open order
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
mark692
Added topic get the last AccountEquity before it changes
as my title say can I store or get the last value of my AccountEquity() before it changes to its current value
mark692
Added topic Formula to get the right lot size to recover my open losing trade
Hi guys i just want to ask if whats the formula and what do you call it, on getting the right lot size that i need to use. For example i have an open buy with -$500. I want to open a sell on the current price with a TP of 80pips to breakeven my
mark692
Added topic last sell entry price returning zero but last buy entry price returning correct price, help pls
hi guys I have this function to return the value of last entry price on Buy and Sell they are almost the same but its weird the function for buy is returning me the correct value but on the function for sell is returning me zero. This are the code
12