| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| HGBnD shell https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5077 |
Page 1 of 5 |
| Author: | SteveHopwood [ Wed Feb 15, 2017 3:27 pm ] |
| Post subject: | HGBnD shell |
Attached are:
There are lists of comments or codes to search for the places in the code that you might need to alter, at the bottom of each file. I have stopped writing the line numbers - I found it easier to find the places by doing the search when using the shell to create new EA's. Do a search in the shell for "#include <HGBnD core library.mqh>". This is line 238 at the time of writing this but may change over time. The #include command is there to make the compiled version show the extern inputs first. extern inputs in the library will be shown after the command, so you adjust the way your own are shown by adjusting the position of the #include command - although you will probably never need to. Users will not notice any difference between EA's created using the new shell and library and those created using the previous one. Rene's additions to all this 1) It is possible to disable EA's created by this shell in the lead up to a news release - this applies to all of the Dotty family and pretty much everything I have coded for about 3 years. Go to Rene's http://www.stevehopwoodforex.com/phpBB3 ... =97&t=5039 and download the EA. It goes on a single chart on your Empty4 platform and set up the inputs to do whatever it is you want it to do. Rene's EA will talk to all of mine and stop them doing anything in the run up to a news release. You do not have to alter any of the code in the shell for this to happen. 2) Rene's HGBnD - MultiSymbol - Controller.mq4. Rene coded this in response to a request from a member, for an EA that would stop further trading once x numbers of pairs have trades open. This is an added part of our anti over-trading armoury. Here is Rene's explanation from the PM hse sent me: The default inputs of -1 effectively disable the controller. sinput This is a useful replacement for extern when using libraries. I discovered that comments following an extern input resulted in the user being shown the comment in the inputs window, instead of the variable. For example: Code: Select all Change the code in my example to: Code: Select all Note that sinput creates a constant and so will not work for, say, the Lot input. The value of this input is checked to confirm that it is allowed by the broker and changed if not to meet the broker's minimum requirements. An mql4 constant cannot be changed in code, so the use of sinput generates an error. Easiest when writing new code, is to use sinput and change to extern when the compiler throws a hissy fit. NOTE: sinput appears to have stopped working. Before questioning my code Before questioning my code, here are a few thingies to consider:
Suppose you are still forum death-wishingly tempted to post about the non-existent bug, here is what to do:
. |
|
| Author: | SteveHopwood [ Thu Feb 16, 2017 9:22 am ] |
| Post subject: | HGBnD shell |
I have used the shell to recreate HGBnDnSS and found a couple of thingies that needed changes. I also found that bool LookForFullHedgeTradeClosure(int ticket) needed amending. I have uploaded the new version to post 1 and updated the check list. |
|
| Author: | szfxtrader [ Thu Feb 16, 2017 9:28 am ] |
| Post subject: | HGBnD shell |
Thank you very much! |
|
| Author: | SteveHopwood [ Thu Feb 16, 2017 10:52 am ] |
| Post subject: | HGBnD shell |
I forgot to mention that I have replaced the existing pip factor code with the function Tommaso coded into his APTM. This should allow these bots to run on just about anything that moves. Brilliant coding Tommaso. Thanks. |
|
| Author: | szfxtrader [ Sat Feb 18, 2017 10:19 am ] |
| Post subject: | HGBnD shell |
Hi Steve, I am taking a look at the code, what do you think about the following change? Code: Select all |
|
| Author: | SteveHopwood [ Sat Feb 18, 2017 11:09 am ] |
| Post subject: | HGBnD shell |
Yep. Definitely. Thanks. |
|
| Author: | szfxtrader [ Sat Feb 18, 2017 12:54 pm ] |
| Post subject: | HGBnD shell |
Welcome, it is a pleasure to be able to contribute a bit. |
|
| Author: | SteveHopwood [ Sat Feb 18, 2017 2:11 pm ] |
| Post subject: | HGBnD shell |
Line numbers quickly get mucked up as we add extra code to the shells, so I have edited the list in post 1 by adding the relevant line of code or comment. We can do a search for the code to find the place easily. I have also added this list to the bottom of the code. |
|
| Author: | SteveHopwood [ Tue Feb 21, 2017 10:00 am ] |
| Post subject: | HGBnD shell |
I have updated the shell with the improved buy-low-sell-high code, updated the shell user guide and the line numbers list. Post 1. |
|
| Author: | szfxtrader [ Tue Feb 21, 2017 10:10 am ] |
| Post subject: | HGBnD shell |
Thank you very much! |
|
| All times are UTC | Page 1 of 5 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|