| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Joe. Swing-trade your way to a baby equity millipede https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=148 |
Page 6 of 15 |
| Author: | andydoc [ Mon Dec 12, 2011 9:44 am ] |
| Post subject: | Re: Joe. Swing-trade your way to a baby equity millipede |
well done - beat me by a couple of minutes - and yours was more elegant! However, now not closing the 50% on trend weakening? |
|
| Author: | gaheitman [ Mon Dec 12, 2011 10:04 am ] |
| Post subject: | Re: Joe. Swing-trade your way to a baby equity millipede |
Well, it does call it some... In StrategyLookForTradeClosure(), it is looking at the close of the FbCandleShift + 1 bar: Code: Select all George |
|
| Author: | andydoc [ Mon Dec 12, 2011 10:17 am ] |
| Post subject: | Re: Joe. Swing-trade your way to a baby equity millipede |
Cool that works - still have some problems with modify to BE and trading beforehand though: Code: Select all Code: Select all Code: Select all |
|
| Author: | gaheitman [ Mon Dec 12, 2011 10:37 am ] |
| Post subject: | Re: Joe. Swing-trade your way to a baby equity millipede |
CountOpenTrades() goes backwards through the list of open trades, so the test to see if the last trade in the stack was at break even was actually testing the first trade. Testing fix now.... George |
|
| Author: | SteveHopwood [ Mon Dec 12, 2011 10:44 am ] |
| Post subject: | Re: Joe. Swing-trade your way to a baby equity millipede |
George's latest is in post 1 now. Thanks George. I was really frustrated and fed up last night, so I am ever so grateful. |
|
| Author: | andydoc [ Mon Dec 12, 2011 10:45 am ] |
| Post subject: | Re: Joe. Swing-trade your way to a baby equity millipede |
Hi George - you must be beat at your time! Happy to take over when you are too tired as I am now in bed with flu! |
|
| Author: | andydoc [ Mon Dec 12, 2011 10:46 am ] |
| Post subject: | Re: Joe. Swing-trade your way to a baby equity millipede |
Hi Steve - sorry I got you wound up last night! George is making great progress |
|
| Author: | gaheitman [ Mon Dec 12, 2011 10:53 am ] |
| Post subject: | Re: Joe. Swing-trade your way to a baby equity millipede |
Sorry you aren't feeling well. No worries on the tiredness, I trade the European session every day and have adjusted my sleep accordingly. OK, new update includes a couple of fixes. I now save off the ticket number and reselect it after the call to CountOpenTrades so that the test in the LookForTradingOpportunities() is checking the correct one. I also changed that same test to exit LFTO() if the previous order is not in profit yet. Before it was just not trying to move it to BE, but still went on with the new trade.... The code is still peppered with Alert calls (Print calls don't appear in ST near as I can tell) so we'll need to clean it up at some point. George |
|
| Author: | SteveHopwood [ Mon Dec 12, 2011 10:56 am ] |
| Post subject: | Re: Joe. Swing-trade your way to a baby equity millipede |
No, it wasn't you, it was the code. All you were doing was reporting bugs. I hope you get over yours quickly. |
|
| Author: | gaheitman [ Mon Dec 12, 2011 11:00 am ] |
| Post subject: | Re: Joe. Swing-trade your way to a baby equity millipede |
Don't worry about it, we've all been there. Heck, I may be there next. On a side note, we used to joke about how programmers (myself included) were horrible at giving estimates on when something would be done (I think that is because we are optimists and think "this has to be the last bug...."). To be safe, you double the estimate....and raise it to the next time period. So if a programmer thinks it will take 2 hours, you plan for 4 days. |
|
| All times are UTC | Page 6 of 15 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|