stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Upcoming Empty4 4 and MQL4 Upgrades
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3016
Page 12 of 19
Author:  milanese [ Sun Feb 23, 2014 4:39 pm ]
Post subject:  Upcoming Empty4 4 and MQL4 Upgrades

nonlinear » Sun Feb 23, 2014 4:27 pm wrote:I understand that I can not longer see my old sets, but are they saved is some obscure folder somewhere? I must have missed archiving one set before the new build loaded...
Hi,
you can try this:
1. Open your Empty4 terminal and click on “File > Open Data Folder”.
2. You will now see a similar setup, that you have seen in the older builds.
3. Go to the MQL4 folder.
4. Here you should be able to localize all your files, maybe you must place some of your old files now in the correct new folder.
Now restart Empty4...

Cheers :)

Tommaso
Author:  fxdaytrader [ Sun Feb 23, 2014 5:07 pm ]
Post subject:  Upcoming Empty4 4 and MQL4 Upgrades

I am not sure if it was mentioned before (I did not read the whole thread), but to avoid what you call "obscure folder somewhere" and getting back to have all indicators, eas, scripts etc. saved within your terminal-directory, you could try to start the terminal.exe via one batch-file (.bat) to start it in the "portable mode":

open e.g. notpad and type:
start "" terminal.exe /portable

save the file in the same folder as the terminal.exe (so your Empty4-folder) as e.g. startmt4.bat

Do not start Empty4 by doubleclicking the terminal.exe, use the startmt4.bat

btw, the "obscure folder" is (on windows7) located in c:\user...\AppData\Roaming\MetaQuotes\Terminal\ ;)
Author:  nonlinear [ Sun Feb 23, 2014 5:45 pm ]
Post subject:  Upcoming Empty4 4 and MQL4 Upgrades

Yes, I follow the new folder structure and know where to put everything (I think, lol). But all of my previous set files are gone. I had made an archive of the sets before the build loaded, but I must have missed archiving a few. So, now I am trying to find my missing set files.... I don't understand why MQ did not migrate set files like the other files. Some of these sets took me forever to generate. :arrrg:

also, I am little annoyed that my criminal did not give me advance notice of this.
Author:  moztrader [ Tue Feb 25, 2014 3:58 am ]
Post subject:  Re: Upcoming Empty4 4 and MQL4 Upgrades

dietcoke » Wed Feb 05, 2014 11:28 pm wrote:I've come across this which is relevant to anyone who uses OUtputDebugStringA to get the kernal debugging.

It doesn't work any more in 600

You have to use the W (Unicode) version of the function as below

Code: Select all

#import 		"kernel32.dll"
	void		OutputDebugStringW(string msg);
#import
===============================================================================
Hi,

I was wondering if anybody had any luck with this because my Empty4 build610 is giving problems using kernell.dll and debugview (which I have embedded in all my programs and custom charts ) .
The Empty4 seems to compile ok after changing to Unicode command but nothing happens in DEBUGVIEW ..ie. no data comes through ..
The Print commands work in Empty4 ok..so something is happening ..
Any ideas ?
Below is the code I am using if anybody wants to test it . You also need DEBUGVIEW.exe from microsoft ..avail on net.

Code: Select all

//
// send information to OutputDebugString() to be viewed and logged by
// SysInternal's DebugView (free download from Microsoft) This is ideal for
// debugging as an alternative to Print(). The function will take up to 10
// strings (or numeric) arguments to be concatenated into one debug message.
// http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx
//
         #property indicator_separate_window
         #import "kernel32.dll"
         void     OutputDebugStringW( string msg );
         #import

        
                 ;

void     log(string s1,string s2="",string s3="",string s4="",string s5="",
             string s6="",string s7="",string s8="",string s9="",string s10="")
 {

 string out = StringTrimRight(StringConcatenate(
      WindowExpertName(), ".mq4 ", Symbol(), 
      " ", s1, 
      " ", s2, 
      " ", s3, 
      " ", s4, 
      " ", s5, 
      " ", s6, 
      " ", s7, 
      " ", s8
   ));
 }
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
/*
void  AlertMe(string s1,string s2="",string s3="",string s4="",string s5="",
              string s6="",string s7="",string s8="",string s9="",string s10="")
  {
   Alert(s1,s2,s3,s4,s5,s6,s7,s8,s9,s10);
   Log(s1,s2,s3,s4,s5,s6,s7,s8,s9,s10);
  }
*/
//+------------------------------------------------------------------+

//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
  log("TEST INIT");
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   //  log("test deINIT");
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int    counted_bars=IndicatorCounted();
//----
   log("test print inti START  = LOG ");
   MathLog("test print inti START  = LOG ");
   Print("test print inti START  = ",StringTrimRight(StringConcatenate(WindowExpertName(),
    ".mq4 ", Symbol())));
 
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
Author:  nonlinear [ Tue Feb 25, 2014 5:03 am ]
Post subject:  Upcoming Empty4 4 and MQL4 Upgrades

Try here http://www.stevehopwoodforex.com/phpBB3 ... =15&t=3439
Author:  dietcoke [ Tue Feb 25, 2014 8:51 pm ]
Post subject:  Re: Upcoming Empty4 4 and MQL4 Upgrades

Hi,

I was wondering if anybody had any luck with this because my Empty4 build610 is giving problems using kernell.dll and debugview (which I have embedded in all my programs and custom charts ) .
The Empty4 seems to compile ok after changing to Unicode command but nothing happens in DEBUGVIEW ..ie. no data comes through ..
The Print commands work in Empty4 ok..so something is happening ..
Any ideas ?
Below is the code I am using if anybody wants to test it . You also need DEBUGVIEW.exe from microsoft ..avail on net.

Code: Select all

 string out = StringTrimRight(StringConcatenate(
      WindowExpertName(), ".mq4 ", Symbol(), 
      " ", s1, 
      " ", s2, 
      " ", s3, 
      " ", s4, 
      " ", s5, 
      " ", s6, 
      " ", s7, 
      " ", s8
   ));
 
I am certain that there is a bug in the string handling in build 600+.

I had exactly the same problem which I fixed by replacing string concatenate with this:

Code: Select all

		string Spc = " ";
                string Logout = WindowExpertName+Spc;
//		Logout += Symbol()+Spc;
		Logout += s1+Spc;
		Logout += s2+Spc;
		Logout += s3+Spc;
		Logout += s4+Spc;
		Logout += s5+Spc;
		Logout += s6+Spc;
		Logout += s7+Spc;
		Logout += s8+Spc;
		Logout += s9+Spc;
		Logout += s10+Spc;
		Logout += s11+Spc;
		Logout += s12+Spc;
		Logout += s13+Spc;
		Logout += s14+Spc;
		Logout += s15+Spc;
		Logout += s16+Spc;
		Logout += s17;
This works but there is no reason why your code shouldn't.

I think they have screwed up but I really cannot be arsed to help them by reporting it as they are the rudest bunch of cnuts you would want to know.

If you look at the help file for mql 4 and mql 5 you will see that stringconcatenate returns a string in mql4 and an int in mql5

Code: Select all

//MQL5
int  StringConcatenate(
   string&  string_var,   // string to form
   void argument1         // first parameter of any simple type
   void argument2         // second parameter of any simple type
   ...                    // next parameter of any simple type
   );

//MQL4
string  StringConcatenate(
   void argument1         // first parameter of any simple type
   void argument2         // second parameter of any simple type
   ...                    // next parameter of any simple type
   );
There are other string functions where the return type is different as well.
I think the behaviour is wrong when you nest the string functions
Author:  milanese [ Sat Mar 22, 2014 11:23 pm ]
Post subject:  again crappy update

and again crappytrader is updated :uff: :uff:
look here http://forum.mql4.com/61886

Cheers :)

Tommaso
Author:  Buzzbee [ Sun Mar 23, 2014 7:39 pm ]
Post subject:  Upcoming Empty4 4 and MQL4 Upgrades

Thanks, Tommaso. HATE updates. HATE MT5 and "improved" Empty4. Still haven't found alternative. :arrrg:
So far, P4L Clock is dead. I can't exist without that. Time to go back to stocks. :youknow:
Got update to P4L at http://www.forexfactory.com/showthread.php?t=109305
2014-03-19: New "P4L Clock.mq4" v2_12 and installed, opened, saved & compliled it. AOK now. :hi:
And they pull this crap at Tax Time...
Author:  scheinwerfer [ Sun Mar 23, 2014 8:42 pm ]
Post subject:  again crappy update

milanese » Sun Mar 23, 2014 12:23 am wrote:and again crappytrader is updated
metacrappers wrote:Now, users can buy not only trading applications but also trading and financial magazines quickly and easily.
This reminds me a line I read many many years ago - if your core-business is going down the tubes, diversify and expand like a motherf*****...
Author:  maahome [ Thu Mar 27, 2014 4:01 am ]
Post subject:  Upcoming Empty4 4 and MQL4 Upgrades

Pedigree » Tue Feb 18, 2014 8:56 pm wrote:
fxozgirl » Tue Feb 18, 2014 11:45 am wrote:
To open mq4 file in another program besides metaeditor

1, Right click and select Open With
2. Besides showing Metaeditor, there should be another option to 'Select Program'
3. Click Select program and a list of all potential programs that can open an mql file will display
4. Click Notepad (be careful not to select Word or Wordpad as these programs often change the formatting and can effect the coding)
5. Be careful to uncheck the box that says to make Notepad the default program to open mql files

Hope this helps :good:
Thanks Shelley, but that is exactly what I did. It's what I was referring to when I said "Even on browsing". Notepad does not come up as one of the available programs. I am on Windows 7.
To open in notepad simply open your notepad application and drag and drop the ea or indicator onto the notepad window and it will open up for you.

Regards
maahome
All times are UTC Page 12 of 19