| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| My shell EA code https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=79 |
Page 11 of 23 |
| Author: | MrPip [ Sat Oct 27, 2012 8:44 am ] |
| Post subject: | Re: My shell EA code |
I just found this forum and have a version of checking trade times that allows for times like 23:00 to 02:00 for Asian session. I use hour and minute inputs so you can even test values in strategy tester. I will post when I find that no one else has already posted the same code. I have posted this method as part of EAs on several other forums so you never know. Robert Hill aka MrPip Professional Empty4 Programmer |
|
| Author: | SteveHopwood [ Sat Oct 27, 2012 10:31 am ] |
| Post subject: | Re: My shell EA code |
Hi Robert. Wonderful to see you here. Guys, Roberts post reminded me to put the latest versions of the 10.2A and bare bones shells in post 1. I have gradually corrected mistakes in them as I have used them. Most usefully, Paul tidied up the time-checking code so that it works properly in a single-pair trader. It is brilliant. Hehe. You can always tell when it is someone else's code (quite apart from the acknowledgement) cos it is brilliant. |
|
| Author: | SteveHopwood [ Fri Nov 02, 2012 10:56 pm ] |
| Post subject: | Red alert |
Ehup guys Gary just sent me this pm: These changes Future releases will include these changes. For now, be aware that your shell code has the goof; it could well explain otherwise un-findable zero divide errors. Thanks for the heads-up Gary. |
|
| Author: | intcust [ Mon Nov 05, 2012 7:36 pm ] |
| Post subject: | Re: My shell EA code |
I am new to the code stuf. Want to learn to fish. How do I code ea to enter a second trade different pair x pips from when the intial trade was made. Example sell eu then at 100 pips out buy gbp usd. Thanks, Tom |
|
| Author: | fxdaytrader [ Thu Dec 13, 2012 4:55 pm ] |
| Post subject: | Re: My shell EA code |
I tried to change the ea shell (bare bones), added some functions (like psar trailing) and made it modular so building new eas should be less complicated for ones who are not familiar with mql. See sourcecode for details Bare Bones Slope EA.shell ea code.ex4 Bare Bones Slope EA.shell ea code.mq4 main module, belongs to /experts/ folder. It includes all the mainfunctions (like trademanagement). "TradeLong" and "TradeShort" are set to false, so if you want the ea to open trades, set it to true! If the mainmodule is bugfree, you do not have to change anything there. Just edit the include-file, specifie its name in line 26 in the main module (current: #include <include.ea-shell.bare-bones_slope_EA.mqh>), save it under a new name and that is it. include.ea-shell.bare-bones_slope_EA.mqh belongs to experts/include/ folder. Includes all the functions of the ea you want to build. Please see instructions in the sourcecode. include.ea-blank.mqh blank include file, just the necessary functions, so its easy to understand how it works. I added some standard-indicator functions, may be they are useful for somebody. But I do not know if these are correct: double getVROC(string symbol,int timeframe,int period,int shift) double getPVT(string symbol,int timeframe,int applied_price,int shift) double getASI(string symbol,int timeframe,double T,int shift) ~Mt4iSendMail_setup.zip setup for the Mt4i SendMail library, may be also downloaded at http://www.mt4i.com/appstore/app.aspx?id=17 ~twt_twitter_setup.zip the twitter client, may be also downloaded at http://code.google.com/p/twt/ The twt.exe and the config (will be created after successful initialization) belong to the experts/fildes/-folder. CmdExe.mqh belongs to experts/include/-folder. Is needed if you want to use the twitter function. Please report bugs edit: If you prefer german, have a look to the corresponding thread at forexfabrik.de, here (do not refer to it as "Krautforum" edit: new attachments, with less bugs and more functions. Just load the .ex4 (or compile for yourself) and play around. Do not forget to set "TradeLong" and "TradeShort" each to "true". And, only use on demo ... |
|
| Author: | dietcoke [ Thu Dec 13, 2012 6:36 pm ] |
| Post subject: | Re: My shell EA code |
Nice one. definitely interested in mt4i email module |
|
| Author: | SteveHopwood [ Thu Dec 13, 2012 7:21 pm ] |
| Post subject: | Re: My shell EA code |
Nice one fxdaytrader. I have linked this in post 1. |
|
| Author: | fxdaytrader [ Thu Dec 13, 2012 11:40 pm ] |
| Post subject: | Re: My shell EA code |
Attached one modul for the use of icustom-indicators. specify the buffers and values to look for (see sourcecode) ... The main module (here named bare bones) can be found here |
|
| Author: | SteveHopwood [ Sun Dec 16, 2012 2:16 pm ] |
| Post subject: | Re: My shell EA code |
Latest versions of my shells are in post 1. There is a new one that is Bare Bones plus Recovery. I have also added the code necessary to add Slope to an existing EA. As I use the shells to code ea's, the bloops in the shell come to light. When I fix them in the new EA, I go back to the shells and add the fix to them. There have been a number of these since my previous update, so the new code is less prone to bugs and LUC than previous versions. |
|
| Author: | investguy [ Thu Mar 07, 2013 1:12 pm ] |
| Post subject: | Re: My shell EA code |
I just made use of your code today, great piece of work you did here with Steve and many others. Sweet! Let me know if you make any updates. |
|
| All times are UTC | Page 11 of 23 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|