MPTM's new home
- heath
- Trader
- Posts: 25
- Joined: Fri Sep 27, 2013 2:05 pm
MPTM's new home
Thanks very much. An excellent tool.
- RedLineFred
- Trader
- Posts: 52
- Joined: Wed May 01, 2013 6:15 am
- Location: Brisbane, Australia
MPTM's new home
Steve,SteveHopwood » Wed Mar 05, 2014 8:56 am wrote:The latest version of MPTM is in post 1.
All it does is tidy up the code for use with Crapperquotesmoron 6xx Empty4/5 platforms. Non-coders probably found that mptm moved seamlessly from build 509 to bulds 6xx.
Coders, the original generated a few warnings when int functions were terminated with return; and void functions with return(0). There were a couple of redundant variables. That is all. I am lucky that I never adopted the principle of separating parts of a variable with a '.' as in Stop.Loss - saved me a lot of work here.Apart from that, if anyone can tell me what 'not all control paths return a value' is all about, I would appreciate it. No biggie, mind, as it appears to make no difference to the running of the code.
Also, in the latest CrapperEditor, has anyone worked out how to invoke word wrap and function folding?
Best I can figure it 'not all control paths return a value' means that its possible run through a sub routine and not encounter a "return" so to overcome the error, I have added return(0); at the end of any int sub routine that is showing this error.
cheers, Fred
-
AnotherBrian
MPTM's new home
That exactly it Fred.
I feel a little better with this new compiler showing me more warnings. Try putting #property_strict at the top. I did and found out there are more issues than I know what to do with, or for that matter, even understand what the compiler is telling me!
I feel a little better with this new compiler showing me more warnings. Try putting #property_strict at the top. I did and found out there are more issues than I know what to do with, or for that matter, even understand what the compiler is telling me!
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
MPTM's new home
Thanks Fred. Much obliged.RedLineFred » Sat Mar 08, 2014 1:48 am wrote:
Steve,
Best I can figure it 'not all control paths return a value' means that its possible run through a sub routine and not encounter a "return" so to overcome the error, I have added return(0); at the end of any int sub routine that is showing this error.
cheers, Fred
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
-
alff
- Posts: 3
- Joined: Thu Nov 28, 2013 8:01 am
MPTM's new home
Hey Steve,
Dropping in to say great EA!
I currently have an issue where once the EA is dropped on a pair and activated, I am not able to change TFs or even close Empty4 without it hanging. It used to hang for around 20 seconds previously but now with the most recent update it just totally hangs the program. Is there some way around this?
Thanks!
Dropping in to say great EA!
I currently have an issue where once the EA is dropped on a pair and activated, I am not able to change TFs or even close Empty4 without it hanging. It used to hang for around 20 seconds previously but now with the most recent update it just totally hangs the program. Is there some way around this?
Thanks!
- milanese
- TechAdmin
- Posts: 3293
- Joined: Wed Jan 09, 2013 9:02 am
- Location: btr rdx, r8 +
MPTM's new home
deactivate before changing the tf or attaching or removing MPTM, the EA's with the button in the menu line of Empty4, and reactivate after that, that will do it.. it freezes because of using an endless loopalff » Fri Mar 28, 2014 3:26 am wrote:Hey Steve,
Dropping in to say great EA!![]()
I currently have an issue where once the EA is dropped on a pair and activated, I am not able to change TFs or even close Empty4 without it hanging. It used to hang for around 20 seconds previously but now with the most recent update it just totally hangs the program. Is there some way around this?
Thanks!
Cheers
Tommaso
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
-
alff
- Posts: 3
- Joined: Thu Nov 28, 2013 8:01 am
MPTM's new home
That's what I domilanese » Fri Mar 28, 2014 3:30 pm wrote:deactivate before changing the tf or attaching or removing MPTM, the EA's with the button in the menu line of Empty4, and reactivate after that, that will do it.. it freezes because of using an endless loopalff » Fri Mar 28, 2014 3:26 am wrote:Hey Steve,
Dropping in to say great EA!![]()
I currently have an issue where once the EA is dropped on a pair and activated, I am not able to change TFs or even close Empty4 without it hanging. It used to hang for around 20 seconds previously but now with the most recent update it just totally hangs the program. Is there some way around this?
Thanks!
Cheers
Tommaso
However there'll be times where the trade is on, EA is running and decided to switch TFs to see how the LTFs is doing and boom, it hangs. I can assume right now there's no way around it? (Still hoping there's some settings which I can change to avoid this
- milanese
- TechAdmin
- Posts: 3293
- Joined: Wed Jan 09, 2013 9:02 am
- Location: btr rdx, r8 +
MPTM's new home
alff » Fri Mar 28, 2014 3:33 am wrote:That's what I domilanese » Fri Mar 28, 2014 3:30 pm wrote:deactivate before changing the tf or attaching or removing MPTM, the EA's with the button in the menu line of Empty4, and reactivate after that, that will do it.. it freezes because of using an endless loopalff » Fri Mar 28, 2014 3:26 am wrote:Hey Steve,
Dropping in to say great EA!![]()
I currently have an issue where once the EA is dropped on a pair and activated, I am not able to change TFs or even close Empty4 without it hanging. It used to hang for around 20 seconds previously but now with the most recent update it just totally hangs the program. Is there some way around this?
Thanks!
Cheers
Tommaso
However there'll be times where the trade is on, EA is running and decided to switch TFs to see how the LTFs is doing and boom, it hangs. I can assume right now there's no way around it? (Still hoping there's some settings which I can change to avoid this)
extern bool AlwaysOn = true; set this to false and it will not anymore use endless loop but every tick of the pair you attached the MPTM..Cheers
Tommaso
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
-
alff
- Posts: 3
- Joined: Thu Nov 28, 2013 8:01 am
MPTM's new home
Thanks!milanese » Fri Mar 28, 2014 3:38 pm wrote:alff » Fri Mar 28, 2014 3:33 am wrote:That's what I domilanese » Fri Mar 28, 2014 3:30 pm wrote:deactivate before changing the tf or attaching or removing MPTM, the EA's with the button in the menu line of Empty4, and reactivate after that, that will do it.. it freezes because of using an endless loopalff » Fri Mar 28, 2014 3:26 am wrote:Hey Steve,
Dropping in to say great EA!![]()
I currently have an issue where once the EA is dropped on a pair and activated, I am not able to change TFs or even close Empty4 without it hanging. It used to hang for around 20 seconds previously but now with the most recent update it just totally hangs the program. Is there some way around this?
Thanks!
Cheers
Tommaso
However there'll be times where the trade is on, EA is running and decided to switch TFs to see how the LTFs is doing and boom, it hangs. I can assume right now there's no way around it? (Still hoping there's some settings which I can change to avoid this)
extern bool AlwaysOn = true;set this to false and it will not anymore use endless loop but every tick of the pair you attached the MPTM..
Cheers
Tommaso
As I'm not super technically inclined, can I just clarify will there be any implications to this? Technically speaking there shouldn't be any issues since refreshing the EA by every tick 'should' do it right?