| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| My shell EA code https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=79 |
Page 15 of 23 |
| Author: | SpiderX [ Sun Jan 18, 2015 4:41 am ] |
| Post subject: | My shell EA code |
Hi Steve, I was studying how to add Zeljko and OnlyTradeCurrencyTwice to my code, when i realized that something does not make sense with both functions. for BalancedPair(int type) function, the line: Code: Select all In fact, if there is already a trade on the same symbol, we should immediately return false. for IsThisPairTradable() function the line: Code: Select all This line means we skip on checking a trade if it is not our current symbol, which doesnt make sense since we are trying to look at other Symbols. Cheers |
|
| Author: | SteveHopwood [ Sun Jan 18, 2015 10:25 am ] |
| Post subject: | My shell EA code |
What is it with this apparent declaration all over these boards of open season on code that has worked flawlessly and seamlessly for years. I will repeat that. Code that has worked flawlessly and seamlessly for years. And was donated by people who know a lot more about coding than I do - or at least did at the time. Have I not mentioned that I get just the teensiest bit pissy when such code is questioned elsewhere? When considering that last short paragraph bear this in mind: I am a Brit. There is a thingy known as Masterly British Understatement. Use the shell or don't use is as suits you best; I have donated it here out of the kindness of my heart but do not actually care whether people use it or not. Don't question it unless you are 100% certain that something has been wrong for somewhere in the region of 5 years. I can get a tad cross when this happens. Spot some of the flaws that have emerged in my own programs based on these shells and which I have corrected but not bothered to upload here, and I might take a bit more notice. Probably not because they work fine for me and that is all that counts, but it might prompt me to upload updates. Plus, I am getting sick of having my work constantly questioned by people who keep on being wrong. I trust I make myself clear. Do say if not, and I will add some clarity to the above. |
|
| Author: | fxcba [ Fri Feb 27, 2015 5:54 pm ] |
| Post subject: | My shell EA code |
Hello, today I found my self inspired and used this Shell EA, but when compiled some errors and a lot of warnings appeared with this new Empty4 version. I managed to solve the errors (some dots "." in recovery section) and some warnings, wich I learned from Milanese, thank you buddy. EA is working, I don't know how yet arrays passed by reference only BO_test(Steve).mq4 3142 42 function must return a value BO_test(Steve).mq4 3923 7 function must return a value BO_test(Steve).mq4 3976 7 function must return a value BO_test(Steve).mq4 4038 30 function must return a value BO_test(Steve).mq4 4083 7 function must return a value BO_test(Steve).mq4 4096 10 function must return a value BO_test(Steve).mq4 4110 10 not all control paths return a value BO_test(Steve).mq4 1887 1 declaration of 'tf' hides global declaration at line 436 BO_test(Steve).mq4 1908 19 declaration of 'tf' hides global declaration at line 436 BO_test(Steve).mq4 1915 18 declaration of 'tf' hides global declaration at line 436 BO_test(Steve).mq4 1946 18 declaration of 'i' hides global declaration at line 429 BO_test(Steve).mq4 2445 11 variable 'col' not used BO_test(Steve).mq4 2445 13 declaration of 'i' hides global declaration at line 429 BO_test(Steve).mq4 2489 11 declaration of 'i' hides global declaration at line 429 BO_test(Steve).mq4 2530 12 'void' function returns a value BO_test(Steve).mq4 2566 7 variable 'stop' not used BO_test(Steve).mq4 2614 19 declaration of 'i' hides global declaration at line 429 BO_test(Steve).mq4 3083 12 declaration of 'i' hides global declaration at line 429 BO_test(Steve).mq4 3097 11 declaration of 'i' hides global declaration at line 429 BO_test(Steve).mq4 3116 11 declaration of 'i' hides global declaration at line 429 BO_test(Steve).mq4 3127 12 declaration of 'i' hides global declaration at line 429 BO_test(Steve).mq4 3144 11 declaration of 'i' hides global declaration at line 429 BO_test(Steve).mq4 3158 12 declaration of 'tf' hides global declaration at line 436 BO_test(Steve).mq4 3305 41 I wish to know how to fix this kind of warnings, I'll appreciate any advise. Cheers Ric |
|
| Author: | SteveHopwood [ Fri Feb 27, 2015 7:05 pm ] |
| Post subject: | My shell EA code |
Hmmmm. You could start by telling me which of the 6 shells you are using from post 1. |
|
| Author: | fxcba [ Fri Feb 27, 2015 7:52 pm ] |
| Post subject: | My shell EA code |
Sorry this is the one |
|
| Author: | SteveHopwood [ Fri Feb 27, 2015 10:08 pm ] |
| Post subject: | My shell EA code |
I have stated right at the top of post one which shells I still use and why I have left the one you are failing to use in place. Entirely your choice whether or not you can be arsed to read my posts, but do not expect to make any sense of anything unless you do so. |
|
| Author: | fxcba [ Fri Feb 27, 2015 11:54 pm ] |
| Post subject: | My shell EA code |
Ok, sorry, may be my english is not so good as I expècted, perhaps I missed or didn't understand something. Never mind |
|
| Author: | Bruster400 [ Wed Mar 25, 2015 7:46 am ] |
| Post subject: | My shell EA code |
Steve, I have a "request" (definitely not a criticism - I like my account too much). In your shell code, in the decimal calcs, could you add "GER30" as well as the "DAX30" that is already there - with the same factor. My broker insists on calling everything by strange names and I find this index performs very well with many of your EAs. With a current daily range of 200 and a spread of just 1pip it makes for good pip harvesting grounds. Yes, I could change broker but hopefully this isn't a big change and then it's done for anyone else who comes across this naming convention. Thanks. |
|
| Author: | milanese [ Wed Mar 25, 2015 8:17 am ] |
| Post subject: | My shell EA code |
Just change DAX30 to GER30 and it is done.. Cheers Tommaso |
|
| Author: | Bruster400 [ Wed Mar 25, 2015 9:08 am ] |
| Post subject: | My shell EA code |
Thanks Tommaso, Yes, I understand it's an easy change but that's why I was asking for it to be done in the code Steve uses - a quick 1 min addition would save me and others from having to make the same change on every EA and every version update. I'm not expecting anyone to go back into past code but if it could be changed in the template it would hopefully mean that the change would filter into future EAs and versions going forward. Thanks again |
|
| All times are UTC | Page 15 of 23 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|