bobo1974
bobo1974
Friends 2
bobo1974
Added topic how to retain variable if mt4 needs to restart?
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 
bobo1974
Added topic Question regarding trendline in EA
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
bobo1974
Added topic how to read the whole string of csv file?
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 
bobo1974
Added topic is there a variable that is tied to the account number?
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
bobo1974
Added topic daylight saving time function TimeDaylightSavings();
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? 
bobo1974
Added topic itime question
hi all, for iTime(NULL,0,0), this is the time of the candle open right? like 5m chart will be 19:00 19:05, etc
bobo1974
Added topic iclose and ontick
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
bobo1974
Added topic possible to identify the currency in a pair?
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
bobo1974
Added topic possible to append 2 different comments?
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
bobo1974
Added topic deposit EA on mql4 or mql5 market for personal use
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
bobo1974
Added topic how to force entry consideration on next bar?
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
bobo1974
Added topic sleep function
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 
bobo1974
Added topic Questions on using vps
Hi guys is it possible for the admin of the vps to steal your ex4 file? 
bobo1974
Added topic back test spread setting
Hi in strategy tester , there's a "spread" field i assume that is the spread used in your back test question : is that in pip or pippet? 
bobo1974
Added topic Possible to set a timer to auto reload template?
Hi all  as above  thanks in advance 
bobo1974
Added topic what can cause my variable value to get stucked to a fixed number?
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
bobo1974
Added topic question on shift value for cci indicator
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) 
bobo1974
Added topic what's the meaning by the "." in a variable?
hi i saw an indicator with the below declaration Any idea what's function of the " . " ? Thanks  #########  extern int       TVI.r=12; 
bobo1974
Added topic what's the best way to encrypt ex4 or mq4 file?
any advice?  main point to make it almost impossible to decompile 
12