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

MPTM's new home
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=64
Page 42 of 57
Author:  mobthehop [ Wed Mar 05, 2014 2:55 am ]
Post subject:  MPTM's new home

Thanks Steve!
Author:  heath [ Wed Mar 05, 2014 8:40 am ]
Post subject:  MPTM's new home

Thanks very much. An excellent tool.
Author:  RedLineFred [ Sat Mar 08, 2014 1:48 am ]
Post subject:  MPTM's new home

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. :D 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?

:xm:
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
Author:  AnotherBrian [ Sat Mar 08, 2014 2:10 am ]
Post subject:  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!
Author:  SteveHopwood [ Sat Mar 08, 2014 9:36 am ]
Post subject:  MPTM's new home

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
Thanks Fred. Much obliged.

:D
Author:  alff [ Fri Mar 28, 2014 3:26 am ]
Post subject:  MPTM's new home

Hey Steve,

Dropping in to say great EA! :cheer:

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!
Author:  milanese [ Fri Mar 28, 2014 3:30 am ]
Post subject:  MPTM's new home

alff » Fri Mar 28, 2014 3:26 am wrote:Hey Steve,

Dropping in to say great EA! :cheer:

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!
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 loop

Cheers :)

Tommaso
Author:  alff [ Fri Mar 28, 2014 3:33 am ]
Post subject:  MPTM's new home

milanese » Fri Mar 28, 2014 3:30 pm wrote:
alff » Fri Mar 28, 2014 3:26 am wrote:Hey Steve,

Dropping in to say great EA! :cheer:

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!
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 loop

Cheers :)

Tommaso
That's what I do :)

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 :clap: )
Author:  milanese [ Fri Mar 28, 2014 3:38 am ]
Post subject:  MPTM's new home

alff » Fri Mar 28, 2014 3:33 am wrote:
milanese » Fri Mar 28, 2014 3:30 pm wrote:
alff » Fri Mar 28, 2014 3:26 am wrote:Hey Steve,

Dropping in to say great EA! :cheer:

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!
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 loop

Cheers :)

Tommaso
That's what I do :)

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 :clap: )
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
Author:  alff [ Fri Mar 28, 2014 4:01 am ]
Post subject:  MPTM's new home

milanese » Fri Mar 28, 2014 3:38 pm wrote:
alff » Fri Mar 28, 2014 3:33 am wrote:
milanese » Fri Mar 28, 2014 3:30 pm wrote:
alff » Fri Mar 28, 2014 3:26 am wrote:Hey Steve,

Dropping in to say great EA! :cheer:

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!
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 loop

Cheers :)

Tommaso
That's what I do :)

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 :clap: )
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
Thanks!

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?
All times are UTC Page 42 of 57