10 out of 10 of my favorite ea are not working after update. they are all calling dll and others custom indicator. What the hell crappy Empty4 are doing? Should i spend couple of months trying to learn crappy mql4 intergrated mql5, testing and then debugging or what?!!!! Disaster :youknow:
Upcoming Empty4 4 and MQL4 Upgrades
-
vegastar
- Posts: 2
- Joined: Mon Dec 24, 2012 3:56 pm
Re: Upcoming Empty4 4 and MQL4 Upgrades
10 out of 10 of my favorite ea are not working after update. they are all calling dll and others custom indicator. What the hell crappy Empty4 are doing? Should i spend couple of months trying to learn crappy mql4 intergrated mql5, testing and then debugging or what?!!!! Disaster :youknow:
-
mixsta
- Posts: 1
- Joined: Mon Feb 03, 2014 3:11 am
Re: Upcoming Empty4 4 and MQL4 Upgrades
Perhaps your broker hasn't pushed out the new build.Pedigree » Tue Feb 04, 2014 6:05 pm wrote:My understanding is that if any platform is installed in C:/Program Files/, they will be automatically altered to match every MQ updates. If you do not want this to happen, you must install to C:/; then your installation remains immune to MQ updates. The updates are now up to 600 but all my old platforms have remained at 509 because of this location issue. Only my MQ platform (also in C:/ by the way) has kept up with the upgrades as I intended.
I had installed my Axi platform in C:\Empty4\Empty4 - AxiTrader - 02\
Restarted terminal today and it updated to build 600. During the update, it moved all my data files to the User folder structure.
- Pedigree
- Trader
- Posts: 226
- Joined: Thu Apr 11, 2013 12:09 pm
- Location: Buckinghamshire, UK
Re: Upcoming Empty4 4 and MQL4 Upgrades
That is correct. If your broker has already pushed the MQ update on, then you have no choice about the update implementing. That post was in respect of GP who haven't pushed it out yet, but whose clients were experiencing updates anyway.mixsta » Tue Feb 04, 2014 10:15 am wrote:Perhaps your broker hasn't pushed out the new build.Pedigree » Tue Feb 04, 2014 6:05 pm wrote:My understanding is that if any platform is installed in C:/Program Files/, they will be automatically altered to match every MQ updates. If you do not want this to happen, you must install to C:/; then your installation remains immune to MQ updates. The updates are now up to 600 but all my old platforms have remained at 509 because of this location issue. Only my MQ platform (also in C:/ by the way) has kept up with the upgrades as I intended.
I had installed my Axi platform in C:\Empty4\Empty4 - AxiTrader - 02\
Restarted terminal today and it updated to build 600. During the update, it moved all my data files to the User folder structure.
It is a shame your broker has already complied without giving some time to acclimatize.
- slipshod
- Trader
- Posts: 404
- Joined: Tue Dec 27, 2011 9:14 am
- Location: Australia
Re: Upcoming Empty4 4 and MQL4 Upgrades
How very glad I am to have moved to cTrader six months ago.
-
AnotherBrian
Re: Upcoming Empty4 4 and MQL4 Upgrades
I restarted my GP demo last night and it upgraded. There was no warning at all. Once it was going to "stopped responding" and crashed. Had to change all of the "." in the EA to "_" to make it run.
Although I used the editor for only 20 minutes it looks way better than previous with a touch of the scite editor, even has a code formatter. We shall see. The forum will be flooded with requests now to fix the EA's and indi's now. Almost need a script to change "." to "_" but not blindly.
Although I used the editor for only 20 minutes it looks way better than previous with a touch of the scite editor, even has a code formatter. We shall see. The forum will be flooded with requests now to fix the EA's and indi's now. Almost need a script to change "." to "_" but not blindly.
-
AnotherBrian
Re: Upcoming Empty4 4 and MQL4 Upgrades
I'll go ahead and ask this question for all us rookie programmers - what does this mean?
Tightened requirements for start function. Parameters could have been set in start function before. Now, all init, start, deinit, OnInit, OnStart, OnTick, OnTimer and other entry points should exactly match their signatures
Tightened requirements for start function. Parameters could have been set in start function before. Now, all init, start, deinit, OnInit, OnStart, OnTick, OnTimer and other entry points should exactly match their signatures
-
AnotherBrian
Can't use a "." dot
So now we have to replace all out "." dots in the variables to something else, or delete them.
This is going to be time consuming and prone to errors, opening files in the editor and using find replace.I've done two EA's and an include and what a pain in the ass.
A script would sure help move this along, even if it catches 80% of the fixes.
What we could really use is a script that will find and replace "." with "_"
It needs to look for a letter before and after the "." before it changes the "." to a "_"
I suggest a vbscript that can be run from the command line with the target filename. Any other ideas? Maybe a script run within scite? VB would be more universal.
Here is a start from a Google search. This script is not smart enough and will change all "." to "_". We need to add smarts but I don't get this VB stuff. This can even take care of the search string and the replace string, inside the code.
Any takers on a little code help? In the code below, add a filter to check the text has a letter before and after the "." before replacing. I have no idea how this would search for text, if it not taking word by word then the code below is a non-starter.
To use the script (call it replace.vbs), type a command similar to this from the command prompt:
cscript replace.vbs "C:\Scripts\Text.txt" ". " "_ "
This is going to be time consuming and prone to errors, opening files in the editor and using find replace.I've done two EA's and an include and what a pain in the ass.
A script would sure help move this along, even if it catches 80% of the fixes.
What we could really use is a script that will find and replace "." with "_"
It needs to look for a letter before and after the "." before it changes the "." to a "_"
I suggest a vbscript that can be run from the command line with the target filename. Any other ideas? Maybe a script run within scite? VB would be more universal.
Here is a start from a Google search. This script is not smart enough and will change all "." to "_". We need to add smarts but I don't get this VB stuff. This can even take care of the search string and the replace string, inside the code.
Any takers on a little code help? In the code below, add a filter to check the text has a letter before and after the "." before replacing. I have no idea how this would search for text, if it not taking word by word then the code below is a non-starter.
To use the script (call it replace.vbs), type a command similar to this from the command prompt:
cscript replace.vbs "C:\Scripts\Text.txt" ". " "_ "
Code: Select all
Const ForReading = 1
Const ForWriting = 2
strFileName = Wscript.Arguments(0)
strOldText = Wscript.Arguments(1)
strNewText = Wscript.Arguments(2)
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile(strFileName, ForReading)
strText = objFile.ReadAll
objFile.Close
strNewText = Replace(strText, strOldText, strNewText)
Set objFile = objFSO.OpenTextFile(strFileName, ForWriting)
objFile.WriteLine strNewText
objFile.Close- MurphyMan
- Trader
- Posts: 345
- Joined: Tue Nov 15, 2011 2:35 pm
- Location: Southern Illinois, USA
Re: Upcoming Empty4 4 and MQL4 Upgrades
V.600 - How I did it. Don't know if this the best way, but it seems to be working.
1. Load up V.600
2. In Empty4, go to File>Open Data Folder>MQL4. There you will see the folders to load up, EAs, Scripts, etc. Be sure you load them in this window, not our traditional Empty4 directories.
4. Restart Empty4.
Now load your EA's as usual. As I said, this worked for me, of course your mileage may vary.
(One interesting thing, I load most everyting on my E:/ drive, all programs including Empty4. For the C:/ I have an SSHD, which I use for Windows and a few other utility type things. When following my distructions above, it seemed to load these files into C:/ with an associated longer path, not the E:/ drive. Not sure what to make of it, it just is what it is.)
1. Load up V.600
2. In Empty4, go to File>Open Data Folder>MQL4. There you will see the folders to load up, EAs, Scripts, etc. Be sure you load them in this window, not our traditional Empty4 directories.
4. Restart Empty4.
Now load your EA's as usual. As I said, this worked for me, of course your mileage may vary.
(One interesting thing, I load most everyting on my E:/ drive, all programs including Empty4. For the C:/ I have an SSHD, which I use for Windows and a few other utility type things. When following my distructions above, it seemed to load these files into C:/ with an associated longer path, not the E:/ drive. Not sure what to make of it, it just is what it is.)
- Jemook
- Trader
- Posts: 1085
- Joined: Thu May 10, 2012 10:19 am
- Location: Bondi, Sydney, Australia
Re: Can't use a "." dot
For the time being maybe put your code into Notepad and use it's find and replace feature?
Cheers
Jeremy
Cheers
Jeremy
AnotherBrian » Wed Feb 05, 2014 4:13 am wrote:So now we have to replace all out "." dots in the variables to something else, or delete them.
This is going to be time consuming and prone to errors, opening files in the editor and using find replace.I've done two EA's and an include and what a pain in the ass.
A script would sure help move this along, even if it catches 80% of the fixes.
What we could really use is a script that will find and replace "." with "_"
It needs to look for a letter before and after the "." before it changes the "." to a "_"
I suggest a vbscript that can be run from the command line with the target filename. Any other ideas? Maybe a script run within scite? VB would be more universal.
Here is a start from a Google search. This script is not smart enough and will change all "." to "_". We need to add smarts but I don't get this VB stuff. This can even take care of the search string and the replace string, inside the code.
Any takers on a little code help? In the code below, add a filter to check the text has a letter before and after the "." before replacing. I have no idea how this would search for text, if it not taking word by word then the code below is a non-starter.
To use the script (call it replace.vbs), type a command similar to this from the command prompt:
cscript replace.vbs "C:\Scripts\Text.txt" ". " "_ "
Code: Select all
Const ForReading = 1 Const ForWriting = 2 strFileName = Wscript.Arguments(0) strOldText = Wscript.Arguments(1) strNewText = Wscript.Arguments(2) Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.OpenTextFile(strFileName, ForReading) strText = objFile.ReadAll objFile.Close strNewText = Replace(strText, strOldText, strNewText) Set objFile = objFSO.OpenTextFile(strFileName, ForWriting) objFile.WriteLine strNewText objFile.Close
Please note I am no longer affiliated with Global Prime. I've moved on to my next adventure with Afterprime.
Catch me here: https://www.afterprime.com
Catch me here: https://www.afterprime.com
- milanese
- TechAdmin
- Posts: 3293
- Joined: Wed Jan 09, 2013 9:02 am
- Location: btr rdx, r8 +
Re: Can't use a dot
better something like the crap editor self or, Notepad++, because word can cause problems in the encoding..
Cheers
Tommaso
Cheers
Tommaso
Jemook » Tue Feb 04, 2014 9:35 pm wrote:For the time being maybe put your code into Microsoft Word or Notepad and use it's find and replace feature?
Cheers
Jeremy
AnotherBrian » Wed Feb 05, 2014 4:13 am wrote:So now we have to replace all out "." dots in the variables to something else, or delete them.
This is going to be time consuming and prone to errors, opening files in the editor and using find replace.I've done two EA's and an include and what a pain in the ass.
A script would sure help move this along, even if it catches 80% of the fixes.
What we could really use is a script that will find and replace "." with "_"
It needs to look for a letter before and after the "." before it changes the "." to a "_"
I suggest a vbscript that can be run from the command line with the target filename. Any other ideas? Maybe a script run within scite? VB would be more universal.
Here is a start from a Google search. This script is not smart enough and will change all "." to "_". We need to add smarts but I don't get this VB stuff. This can even take care of the search string and the replace string, inside the code.
Any takers on a little code help? In the code below, add a filter to check the text has a letter before and after the "." before replacing. I have no idea how this would search for text, if it not taking word by word then the code below is a non-starter.
To use the script (call it replace.vbs), type a command similar to this from the command prompt:
cscript replace.vbs "C:\Scripts\Text.txt" ". " "_ "
Code: Select all
Const ForReading = 1 Const ForWriting = 2 strFileName = Wscript.Arguments(0) strOldText = Wscript.Arguments(1) strNewText = Wscript.Arguments(2) Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.OpenTextFile(strFileName, ForReading) strText = objFile.ReadAll objFile.Close strNewText = Replace(strText, strOldText, strNewText) Set objFile = objFSO.OpenTextFile(strFileName, ForWriting) objFile.WriteLine strNewText objFile.Close
Global Prime is the official SHF broker 
Searching for Servers and Workstations with individual configuration?
Just PM
Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Searching for Servers and Workstations with individual configuration?
Just PM
NOTE: Cookies and JavaScript are required for the using the board, with full functionality