| 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 2 of 15 |
| Author: | gaheitman [ Sun Dec 11, 2011 8:29 am ] |
| Post subject: | Re: Joe. Swing-trade your way to an equity millipede |
Steve, Nice job! I'm looking forward to getting this one fully operational... To that end, I have one comment and then some code ( In LookForTradingOpportunities() you only move the prior trade to BE if you are trying to get in a new trade. Shouldn’t you try to move to BE regardless and then just verify the last trade is at BE before taking a new one? As it is, our additional filters can not only keep us from getting a new trade started they can prevent one from moving to BE. Also, the rules seem to say that you move to break even if in profit so you could just test OrderProfit() > 0, but I think we need to have a pips in profit threshold of some sort. Now for the fun part. Consider the following as really detailed pseudo-code. It compiles, but is untested. From the rules, I read three different scaling out strategies: close some, close half, close all but two strongest. I combined these to "close the weakest half". I didn't really know where to stick this code. LookForTradeClosure() is about managing TP/SL on individual trades, so I created StrategyLookForTradeClosure(). It is: Code: Select all Code: Select all Code: Select all As I like to say, you can learn from good examples as well as bad, so hopefully this will give you a headstart on the rest of the bot, one way or the other. George |
|
| Author: | chonghm [ Sun Dec 11, 2011 10:22 am ] |
| Post subject: | Re: Joe. Swing-trade your way to an equity millipede |
Hello Steve, Thanks for the prompt action in coding this EA. Please do not confuse this with the equity Millipede system. This is short time trading system. It may last a few hours or at most to a couple of days. Once the signal is exhausted Joe will close all positions for a tidy profit and wait for the next 4hr flying buddha. The Equity Melipede is long term trading system. Graeme may hold positions up to a couple of years. If I am not mistaken he is still holding on to his sell positions for GbpJpy which he took 2 years ago. He is an excellent trader and he also trades counter positions to freeze his profits when there is a retracement. His exact words is he will never know where the market is heading except anticipate. The retracement may turn up to the new trend for the next couple of years. Mr.Pathumracled, Please note that in the Equity Milipede system there will not be any drawdown which will blow the acccount. Graeme on going trades are all in profits. He always open postions in th 5 minutes timetrame with a small stoploss. If the trade is stopped out he will look for the next oppotunity. His motto "small stop loss and huge gains". He is not talking about RR1:1. He is talking RR1:100. Its difficult to trade his system because most of us cannot stomach the idea that your 500 pips profit goes may to breakeven. Cheers, chonghm |
|
| Author: | SteveHopwood [ Sun Dec 11, 2011 11:51 am ] |
| Post subject: | Re: Joe. Swing-trade your way to an equity millipede |
This is just one of many ways of determining in which direction to trade. You turn off the higher tf FB by setting FbHigherTimeFrame to the same value as FbTradingTimeFrame. That is strange because I typed the code. I must have deleted it accidentally. Hey-ho; I will reinstate it later. Thanks. Good point. I would have remembered eventually. Possibly. Good idea. Thanks for this. Cheers |
|
| Author: | SteveHopwood [ Sun Dec 11, 2011 11:57 am ] |
| Post subject: | Re: Joe. Swing-trade your way to an equity millipede |
Fantastic. Thanks. I have linked this in post 1. Cheers |
|
| Author: | SteveHopwood [ Sun Dec 11, 2011 12:03 pm ] |
| Post subject: | Re: Joe. Swing-trade your way to an equity millipede |
George, you are the most total star on the entire planet. This saves me a heap of bathtime. Cheers |
|
| Author: | SteveHopwood [ Sun Dec 11, 2011 12:06 pm ] |
| Post subject: | Re: Joe. Swing-trade your way to an equity millipede |
Thanks. I have changed the thread title slightly. |
|
| Author: | andydoc [ Sun Dec 11, 2011 12:08 pm ] |
| Post subject: | Re: Joe. Swing-trade your way to an equity millipede |
Where you stick it matters not Code: Select all |
|
| Author: | andydoc [ Sun Dec 11, 2011 4:48 pm ] |
| Post subject: | Re: Joe. Swing-trade your way to a baby equity millipede |
Started backtesting - not stacking yet! About to look into why... |
|
| Author: | andydoc [ Sun Dec 11, 2011 6:16 pm ] |
| Post subject: | Re: Joe. Swing-trade your way to a baby equity millipede |
Just saw your post about adding the stacking back in duh! lol. In terms of which trades to close, on the 50% cull on momentum weakening, it is sensible to close the best trades. My reasoning for this is that there is no methodology for either moving the stoploss to better than BE, nor for closing the remaining 50% on a reversal. The rules suggest that we would therefore close successive 50%s on Up candles, until either we had one left - which would close, or all BE SLs had been exhausted. This would therefore mean if we closed the best trades we would leave less on the table to give back. |
|
| Author: | gaheitman [ Sun Dec 11, 2011 6:25 pm ] |
| Post subject: | Re: Joe. Swing-trade your way to a baby equity millipede |
The code I posted is easy to change into CloseBestTrade() so that we can compare the two. I was thinking the same way as you when I was writing it. From the strategy, it seemed to suggest that even after closing half the trades he was still ready to stack on more in the original direction. If we're doing that, I'd think we'd want the better positions to remain open to give you the confidence to continue to stack. We should code for both and let ST decide... |
|
| All times are UTC | Page 2 of 15 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|