| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| My shell EA code https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=79 |
Page 12 of 23 |
| Author: | SteveHopwood [ Thu Mar 14, 2013 7:25 pm ] |
| Post subject: | Re: My shell EA code |
Latest versions of the shells are in post 1. There is some general code-tightening. I have adapted some of the functions so that they are more easily used in multi-pair ea's. Something came up this week when I coded an ea for one of our members. When an ea created using one of these shells calculates sl/tp, it does so based on the market at the time. If there is some slippage when the trade is actually sent (and when isn't there?) then the sl/tp will be off by the value of the slippage. Ok, so this does not matter a lot when the sl/tp are hundreds of pips away, but a tad crucial in a 5 pip scalper. I have added code to check that the sl/tp are exact once the trade has returned to the platform from the crim's server. |
|
| Author: | Profitiser [ Tue Apr 30, 2013 6:16 pm ] |
| Post subject: | Re: My shell EA code |
Hi Steve, there seems to be a bug in your "Shell auto trading robot code by Steve Hopwood". The function "ModifyOrder" should be changed to: void ModifyOrder(int ticket, double stop, double take){ ... for (int cc = 0; cc < RetryCount; cc++){ // delete: for (int d = 0; (d < RetryCount) && IsTradeContextBusy(); d++) Sleep(100); if (take > 0 && stop > 0) { while(IsTradeContextBusy()) Sleep(100); if (OrderModify(ticket, OrderOpenPrice(), stop, take, OrderExpiration(), CLR_NONE)) return; }//if (take > 0 && stop > 0) if (take != 0 && stop == 0) { while(IsTradeContextBusy()) Sleep(100); if (OrderModify(ticket, OrderOpenPrice(), OrderStopLoss(), take, OrderExpiration(), CLR_NONE)) return; }//if (take == 0 && stop != 0) if (take == 0 && stop != 0) { while(IsTradeContextBusy()) Sleep(100); if (OrderModify(ticket, OrderOpenPrice(), stop, OrderTakeProfit(), OrderExpiration(), CLR_NONE)) return; }//if (take == 0 && stop != 0) }//for (int cc = 0; cc < RetryCount; cc++) |
|
| Author: | SteveHopwood [ Tue Apr 30, 2013 9:15 pm ] |
| Post subject: | Re: My shell EA code |
Are you insane? Are you seriously suggesting that code provided by one of the best and most respected coders on the planet, and that has been used thousands of times in as many ea's and scripts' has a bug? Jesus wept buckets of blood. Again. Get a grip fella, and go back to silently lurking. Leave the coding to the Big Boys - it is what I do when they get involved. They have forgotten more about this stuff than you or I will ever know. And learn to read the damn comments in my code. Doing so here would have saved you from my wrath.
|
|
| Author: | SteveHopwood [ Sat May 04, 2013 3:10 pm ] |
| Post subject: | Re: My shell EA code |
Latest version of Bare Bones in post 1:
|
|
| Author: | SteveHopwood [ Sun Jun 09, 2013 12:53 pm ] |
| Post subject: | Re: My shell EA code |
I have added code to call Bob's 10.5 CSS indi. Details in '10.5 CSS' in post 1. Also updated the user guides in the zip file. |
|
| Author: | SteveHopwood [ Wed Jul 31, 2013 2:36 pm ] |
| Post subject: | Re: My shell EA code |
Latest version of Bare Bones in post 1, fixing the bugs that have emerged in the Bob And Shelley Again thread. |
|
| Author: | SteveHopwood [ Mon Aug 05, 2013 8:18 pm ] |
| Post subject: | Re: My shell EA code |
Latest version of Bare Bones in post 1 - I have added Paul's Lib.CSS code to it. It is not much of a bare bones anymore, but does contain the stuff that I automatically add to all the EA's I code so the user has the choice of using them or not. |
|
| Author: | ibrual [ Tue Sep 17, 2013 11:57 am ] |
| Post subject: | Re: My shell EA code |
i have been trying to write codes on price actions like tops, bottoms, doji, marubozu but dont know where to start. any ideas? |
|
| Author: | dietcoke [ Tue Sep 17, 2013 1:08 pm ] |
| Post subject: | Re: My shell EA code |
Wrong place to put this question really. But since you ask, try a google search for "MQ4 candle patterns" You should get links to some pattern indicators. there ia also a big thread on Forx TSD http://www.forex-tsd.com/harmonic-tradi ... ading.html |
|
| Author: | ibrual [ Wed Sep 18, 2013 1:25 pm ] |
| Post subject: | Re: My shell EA code |
Ok dietcoke, thanks. |
|
| All times are UTC | Page 12 of 23 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|