Hi all, What are the methods to retain a variable value if mt4 was restarted? i can only think of either 1. storing the information in the comment of an order 2. save the info in a csv file and read it back later Thanks
Hi all, I read somewhere we can draw trendline in indicator but the information is still very vague for me Need help to clarify a few things 1. I assume it is true you can draw trendline with mql4. do we use obj_trend for this? 2
Hi all, I have a csv file with 2 variable, equity and time stamp as shown below 10494,2016.05.06 23:55 When i try to read the content of the csv file using the script below, it gave me only the equity (10494) which is the "text" variable
Hi all, let's say the value 100 in a variable and that variable is tied to the account number . is that possible? the reason why i want to do that is because if my mt4 crashed and i need to restart my ea, all the variable value are gone so if i can
int TimeDaylightSavings (); can anyone tell me if this function is accurate in the sense it really follows the actual date when dayight saving is active or not?
hi all, i am a bit confused here if i use ontick, 1) is iClose (NULL,NULL,0) the closing price at the end of current bar or tick price? 2) is Close[0] the tick price? Thanks
hi all, i want to do a currency strength type of EA So, let's say i want to long EU I want to see if euro part of the pair is in also long in EJ, EG so is it possible to automatically identify Eur in the EU on my chart and then find the euro
hi all, if i have 1 comment command at the top of the codes and at the bottom i have another comment command is it possible for the 2nd comment to be appended to the 1st one? currently i notice it will only show the 2nd (i guess the 2nd overwrite the
Hi all, I have created an EA but i have no intention to sell it, only for my own private use Although it is build 600++, my worry is it can still be decompile as i plan to put the ex4 file on vps service which can be accessed by the vps admin i
hi all i am using ontick and with some rules to enter trade however, when price move too fast, it might trigger 2 or more entries on a single bar how can i code it so that once it has opened a trade on current bar, it can only open the next
hi all currently i am using ontick when a trade is closed, i want to wait a certain interval before evaluating to open a new trade googling around, i found sleep can do the trick is this the best method? thanks
Hi all, i am using ontick() and i have a calculation to loop all the orders profit for every tick change it is running fine all the time but some time the value got stuck to a fixed last calculated value only by reloading the ea, i will get the
Hi all For below cci indi, i want to get the cci value of previous bar. So i set the shift to 1 as shown. is this correct? iCCI(NULL, 5, 20, PRICE_TYPICAL, 1)