tongtoro Posted January 29, 2010 Report Share Posted January 29, 2010 Newbie need help... can somebody, make improvement this ea Spread check ea, to able record all pair.. thanks [spoiler:3ipv4pfc]//+------------------------------------------------------------------+ //| Spread check.mq4 | //| coded by Rolands Auza | //| http://www.rm-forex.lv | //+------------------------------------------------------------------+ #property copyright "coded by Rolands Auza" #property link "www.rm-forex.lv" //+------------------------------------------------------------------+ //| expert initialization function | //+------------------------------------------------------------------+ extern int SpreadToCheck=0; int prevBars,out; double standSpreads; string Currency,file; int init() { int handle; int size; //---- prevBars=Bars; Currency=Symbol(); file=Currency+".csv"; out=FileOpen(file,FILE_CSV|FILE_READ|FILE_WRITE,';'); handle=FileOpen(file, FILE_BIN|FILE_READ); if(handle>0) { size=FileSize(handle); FileClose(handle); } if(size<3) { out=FileOpen(file,FILE_CSV|FILE_READ|FILE_WRITE,';'); if(out<1) { Print("File not found, the last error is ", GetLastError()); return(0); } if(FileSeek(out,0,SEEK_END)) FileWrite(out,"Day","Month","Hour","Minute","Seconds","Current Spread"); FileClose(out); } //---- return(0); } //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { //---- double CurrentSpread=MarketInfo(Currency, MODE_SPREAD); if(CurrentSpread>SpreadToCheck) { out=FileOpen(file,FILE_CSV|FILE_READ|FILE_WRITE,';'); if(out<1) { Print("File not found, the last error is ", GetLastError()); return(0); } if(FileSeek(out,0,SEEK_END)) FileWrite(out,Day(),Month(),Hour(),Minute(),Seconds(),CurrentSpread); FileClose(out); } return(0); } //+------------------------------------------------------------------+[/spoiler:3ipv4pfc] Quote Link to comment Share on other sites More sharing options...
scarface Posted January 29, 2010 Report Share Posted January 29, 2010 Re: Spread Check Hi tongtoro, Good day, I'm a little bit wondering what do you want to improve in this EA?? It is only spread checker EA and I guess it is better to use spread check indicator instead if you want to use EA to trade at the same time. If you have any idea how to improve this EA or even add new feature to it, please post it here and we can discuss it together. Best wishes, Quote a New Year 2011 has come, and the challenge has just started 8-) Link to comment Share on other sites More sharing options...
tongtoro Posted January 29, 2010 Author Report Share Posted January 29, 2010 Re: Spread Check Hi tongtoro, Good day, I'm a little bit wondering what do you want to improve in this EA?? It is only spread checker EA and I guess it is better to use spread check indicator instead if you want to use EA to trade at the same time. If you have any idea how to improve this EA or even add new feature to it, please post it here and we can discuss it together. Best wishes, thanks master scarface i am your fans yes i know it just sperad checker ea. I just want to know time & worst spread from my broker for all pair. With just read the record file. If too difficult then forgetten. I will attach ea for each pair. Scarface. Can i send pm for you. Thanks Quote Link to comment Share on other sites More sharing options...
scarface Posted January 31, 2010 Report Share Posted January 31, 2010 Re: Spread Check Hi tongtoro, Good day, Ok, now I understand what you meant by improving the EA. I believe you want to add the Highest spread reached and lowest as well. I can try that and let you know soon. I guess it is a good my friend. Best wishes, -- 31 Jan 2010, 17:52 -- Hi tongtoro, Good day, Here is a version I just developed. You can try it whenever you want. If you think there is more ideas about how to improve it, please let me know. hxxp://xxx.multiupload.com/44UCRK3TAI Best wishes, Quote a New Year 2011 has come, and the challenge has just started 8-) Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.