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 3 of 15
Author:  andydoc [ Sun Dec 11, 2011 6:34 pm ]
Post subject:  Re: Joe. Swing-trade your way to a baby equity millipede

We could do both and optimise the option on backtesting
Author:  andydoc [ Sun Dec 11, 2011 6:38 pm ]
Post subject:  Re: Joe. Swing-trade your way to a baby equity millipede

It would probably alter depending on strength/direction of trend on D1, W1 and MN charts
Author:  SteveHopwood [ Sun Dec 11, 2011 7:13 pm ]
Post subject:  Re: Joe. Swing-trade your way to a baby equity millipede

I have been out teaching as usual this afternoon. I am back now and am adding George's code. The ea will be up and running in time for market opening later.

Someone was asking about the code for the 50 fib for stack trades. I just realised it is this line:

Code: Select all

PendingPrice = (iLow(NULL, FbTradingTimeFrame, FbCandleShift) + iHigh(NULL, FbTradingTimeFrame, FbCandleShift) ) / 2;
Granted, this means an immediate market trade if the new candle opens below the 50 fib rather than a limit order, but I am not convinced this matters. We shall see.

:D
Author:  SteveHopwood [ Sun Dec 11, 2011 8:10 pm ]
Post subject:  Oops

Sorry guys - forgot to upload the bot to post 1. It is there now.

:D
Author:  andydoc [ Sun Dec 11, 2011 8:48 pm ]
Post subject:  Re: Joe. Swing-trade your way to a baby equity millipede

still not stacking on backtesting e.g. nice long drop cable 22-28 March - initial trade closes at bottom, presumably on 50% cull, but no sign of stoploss being brought to BE ?therefore no stack
Author:  SteveHopwood [ Sun Dec 11, 2011 9:16 pm ]
Post subject:  Re: Joe. Swing-trade your way to a baby equity millipede

andydoc wrote:still not stacking on backtesting e.g. nice long drop cable 22-28 March - initial trade closes at bottom, presumably on 50% cull, but no sign of stoploss being brought to BE ?therefore no stack
Cheers Andy. You highlighted a lurvely bloop in the code - or at least led me to look for it.

Attempted fix in post 1.

:D
Author:  andydoc [ Sun Dec 11, 2011 9:28 pm ]
Post subject:  Re: Joe. Swing-trade your way to a baby equity millipede

Hi Steve
Sorry I have no time to look for the bloop(s) myself as at work but happy to run the occasional test and see what is isn't happening.
Regards
Andy
Author:  SteveHopwood [ Sun Dec 11, 2011 9:32 pm ]
Post subject:  Re: Joe. Swing-trade your way to a baby equity millipede

andydoc wrote:Hi Steve
Sorry I have no time to look for the bloop(s) myself as at work but happy to run the occasional test and see what is isn't happening.
Regards
Andy
A most helpful use of your time. Thanks.

:D
Author:  andydoc [ Sun Dec 11, 2011 9:37 pm ]
Post subject:  Re: Joe. Swing-trade your way to a baby equity millipede

Lots of failure to place order errors in running backtest at present eg:

2011.12.11 21:27:08 2011.04.21 02:50 Joe GBPUSD,H4: GBPUSD Joe OP_SELL order send failed with error(130): invalid stops
Author:  andydoc [ Sun Dec 11, 2011 9:56 pm ]
Post subject:  Re: Joe. Swing-trade your way to a baby equity millipede

ok, running on cable, H4, 21 March - 28 March 2011.
2 Fake FBs closed at original stop loss 22/3 00:00 and 04:00
1 failed entry closed at BE 2/3 16:00
1 reentry sl not modified again - error 130 so no stacking . odd entr price
All times are UTC Page 3 of 15