| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| MPTM's new home https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=64 |
Page 3 of 57 |
| Author: | gaheitman [ Fri Dec 16, 2011 10:02 am ] |
| Post subject: | Re: MPTM's new home |
I agree with Steve, tramping around inside MPTM is probably not a good idea. There are an awful lot of people very happy with it and using it daily. It would be a shame to break something and even worse to change the behaviour they all expect and rely upon. In the spirit of the holidays, however, I pulled out some of my existing code and made a FIFO compliant (as I understand the acronym, not the rules In the interest of increasing your knowledge and understanding of MQL, I'd also be happy to review any changes you make to the code to make it more resilient. As you allude to, there is no error checking in the existing routine. Look for "gah" to see where my changes start. Code: Select all BTW, I also agree with Steve about coding and trading. I would not be a trader if I wasn't a coder already. George |
|
| Author: | dusktrader [ Fri Dec 16, 2011 10:56 am ] |
| Post subject: | Re: MPTM's new home |
Awesome -- thanks very much Steve and George. I will poke at this code during the next 3 weeks where I have to sit on my hands anyway. I'll let you know if your FIFO routine works. Honestly I'm a bit unclear on it myself. The email and spread handling features are most likely things I can do myself and will share back here if I can get them to work. FIFO handling is more complicated I think, so I really appreciate your input on this! Thanks again and Happy Holidays to you. |
|
| Author: | dusktrader [ Thu Dec 22, 2011 10:55 am ] |
| Post subject: | Re: MPTM's new home |
I just wanted to report back that it seems George's code snippets may be just what is needed for FIFO-picky brokers. I have run repeated tests on Oanda Empty4 demo using this code, and I have yet to see the FIFO violation error popup again. When I resume regular trading in the second week of January, I plan to test your code on my live Oanda Empty4 account. In the process of all this, I found this FIFO description which helped me understand better what is happening. ALSO, I was really excited to learn that, apparently, Cowboy IBFX does not have (outwardly visible) FIFO restrictions on US traders. After trying to manually force a FIFO violation and not getting one, I had this discussion with Cowboy IBFX tech support:
|
|
| Author: | gaheitman [ Thu Dec 22, 2011 12:42 pm ] |
| Post subject: | Re: MPTM's new home |
Yep, I'm with them and they made a big deal about their implementation back when they made the change. It is handy. :> |
|
| Author: | pipmenow [ Tue Jan 31, 2012 2:15 pm ] |
| Post subject: | Re: MPTM's new home |
Hello. I hope I am not out of place asking a question. I set up MPTM EA and am having a fun and an educational time playing with the input settings. Is there a method to include the variable spread differences in the close partial trade at the first jump? The EA is set to manage all pairs and since the variable spread is different for all pairs the partial close at the jumpingstop set to 20 pips results in pairs closing at 12 - 18 pips. Thank you. |
|
| Author: | Alpenkorps [ Tue Jan 31, 2012 4:22 pm ] |
| Post subject: | Re: MPTM's new home |
You need to adjust JS for different pairs. You can run multiple MPTM to manage different pairs. |
|
| Author: | f76bronco [ Wed Feb 01, 2012 5:55 am ] |
| Post subject: | Re: MPTM's new home |
Hi I'm getting a message trade not allowed in experts properties. Any thought's? |
|
| Author: | f76bronco [ Wed Feb 01, 2012 5:55 am ] |
| Post subject: | Re: MPTM's new home |
Hi I'm getting a message trade not allowed in experts properties. Any thought's? |
|
| Author: | Alpenkorps [ Wed Feb 01, 2012 7:55 am ] |
| Post subject: | Re: MPTM's new home |
Its a Crim related problem, not EA. I found same error after Christmas and later found out that bloody crim is not allowing trades on exotics for low liquidity! Check if you can trade manually or not. |
|
| Author: | f76bronco [ Wed Feb 01, 2012 3:29 pm ] |
| Post subject: | Re: MPTM's new home |
Tried 3 different brokers. Two were ECN's no luck. The smiley in the upper corner is a frown , a smiley. I wonder if the EA works with the Empty4 verison 4.0 build 409? |
|
| All times are UTC | Page 3 of 57 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|