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 4 of 15
Author:  Pathumracled [ Sun Dec 11, 2011 10:03 pm ]
Post subject:  Re: Joe. Swing-trade your way to an equity millipede

Howdy Sir Hopwood + Chonghm;
Comments appreciated and the best part is: even if we are not having the Millipede it seems we may have a centipede. The Equity Millipede concept with stacking is so powerful that even at a caterpillar stage (shortest & least legs of the three :) ) we can still be profitable on a consistent basis.

Someone said the FB method is only 40% Accurate? Well 30% accuracy on manual trading is considered Excellent with proper equity management. Now add low geared stacking to that and we can have Expectancy of more than 1.5. That means over a year you should be at least 50% up on opening balance. Well! Most banks would be scared to have that in the open. I would only be too happy to have that with any level of repeatability.

So for now, I'll withdraw to the curtains and allow the major actors to play their part.

On another note , Sir Hopwood is really a blessing, I have yet to see his philanthropy matched on any forum. (Yes this is tongue in cheek and, has a particular reference; indeed it is more blessed to give than to receive). Good idea on the Joe's (original) display, supported in its entirety.

Togather Each Acheves More... Will be adding this to public MyFxbook as soon as practicable, so we can have a cumulative accessment of the most profitable of the settigs for Baby Joe's Milli-Centi-Cater _PEDE :D

Bless! >;<



stacking to that
Author:  SteveHopwood [ Sun Dec 11, 2011 10:21 pm ]
Post subject:  Re: Joe. Swing-trade your way to a baby equity millipede

andydoc wrote: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
I just ran the same test and also got about a gazillion of the same errors.

Then I remembered that George was saying we also need a test for the trade being in profit, so I added this.

So, the attached here does take a stacked trade but does not move the stop of trade 4 to BE before taking trade 5.

This one has me baffled.

You bored George, by any chance? :lol:

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

lol - will try that - also got this:

2011.12.11 22:21:23 2011.03.28 04:15 Joe GBPUSD,H4: object name passed to ObjectType function cannot be an uninitialized or empty string

but will come back to you on whether it returns in the new version
Author:  SteveHopwood [ Sun Dec 11, 2011 10:33 pm ]
Post subject:  Re: Joe. Swing-trade your way to a baby equity millipede

andydoc wrote:lol - will try that - also got this:

2011.12.11 22:21:23 2011.03.28 04:15 Joe GBPUSD,H4: object name passed to ObjectType function cannot be an uninitialized or empty string
I really, really really don't care about those. No interest whatsoever. Forget them. Immediately.

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

Trade 4 is a second entry from a second FB so would not need the other to go to BE first ? Not sure re code but that may be the issue, then still no stacking further down the drop as there should be.

Stop should have moved to BE anyway and didn't

Log from new test:

Code: Select all

22:38:20 Joe: loaded successfully
22:38:20 Joe inputs: Lot=0.01; RiskPercent=5; TakeProfit=0; StopLoss=0; MagicNumber=0; MaxSpread=4000; FbTradingTimeFrame=240; FbHigherTimeFrame=1440; FbCandleShift=1; Fast_Period=5; Fast_AvgMode=1; Fast_Price=0; Slow_Period=10; Slow_AvgMode=1; Slow_Price=0; StopLossSpace=5; HiddenPips=10; RsiTdTf=1440; RsiTdPeriod=20; RsiTdAppliedPrice=0; FastNbTdTF=1440; FastNbTdPeriod=2; FastNbTdShift=2; FastNbTdMethod=2; FastNbTdAppliedPrice=4; SlowNbTdTF=1440; SlowNbTdPeriod=8; SlowNbTdMethod=2; SlowNbTdShift=2; SlowNbTdAppliedPrice=4; TrendConfirmationCandleTF=15; FastMaTdTF=0; FastMaTdPeriod=100; FastMaTdShift=0; FastMaTdMethod=0; FastMaTdAppliedPrice=0; SlowMaTdTF=0; SlowMaTdPeriod=200; SlowMaTdShift=0; SlowMaTdMethod=0; SlowMaTdAppliedPrice=0; TimeFrame=1440; Price=0; MA_Period=50; MA_Shift=0; MA_Method=0; AaCandleShift=0; StrongThreshold=0; WeakThreshold=0; NumPoints=15; TableSize=20; Threshold=10; CbiHedgeLotMultiplier=4; TradeOnCbiTP=200; TradeOnCbiSL=50; FkMinimumMarginPercent=500; start_hourm=0; end_hourm=12; start_houre=12; end_houre=24; StartTime=12.15; BreakEvenPips=20; BreakEvenProfit=5; CstTimeFrame=240; CstTrailCandles=2; JumpingStopPips=10; TrailingStopPips=20; DisplayGapSize=30; 
22:38:20 2011.03.21 00:00  smFlyingBuddha Signals_v2 GBPUSD,H4: loaded successfully
22:38:23 2011.03.21 00:00  smFlyingBuddha Signals_v2 GBPUSD,Daily: loaded successfully
22:38:26 2011.03.22 00:00  Joe GBPUSD,H4: open #1 sell 3.16 GBPUSD at 1.63048 sl: 1.63206 ok
22:38:26 2011.03.22 01:11  Joe GBPUSD,H4: close #1 sell 3.16 GBPUSD at 1.63048 sl: 1.63206 at price 1.63187
22:38:26 2011.03.22 04:00  Joe GBPUSD,H4: open #2 sell 4.23 GBPUSD at 1.63082 sl: 1.63195 ok
22:38:26 2011.03.22 04:06  Joe GBPUSD,H4: close #2 sell 4.23 GBPUSD at 1.63082 sl: 1.63195 at price 1.63176
22:38:33 2011.03.22 16:00  Joe GBPUSD,H4: open #3 sell 1.30 GBPUSD at 1.63700 sl: 1.64051 ok
22:38:35 2011.03.22 20:01  Joe GBPUSD,H4: open #4 sell 1.78 GBPUSD at 1.63792 sl: 1.63983 ok
22:38:36 2011.03.28 00:00  Joe GBPUSD,H4: OrderSend error 130
22:38:36 2011.03.28 00:00  stdlib GBPUSD,H4: loaded successfully
22:38:36 2011.03.28 00:00  Joe GBPUSD,H4: Alert: GBPUSD Joe OP_SELL order send failed with error(130): invalid stops
22:38:36 2011.03.28 00:00  Joe GBPUSD,H4: GBPUSD Joe OP_SELL order send failed with error(130): invalid stops

Loads of these then...

22:38:57 2011.03.28 04:00  Joe GBPUSD,H4: OrderSend error 130
22:38:57 2011.03.28 04:00  Joe GBPUSD,H4: Alert: GBPUSD Joe OP_SELL order send failed with error(130): invalid stops
22:38:57 2011.03.28 04:00  Joe GBPUSD,H4: GBPUSD Joe OP_SELL order send failed with error(130): invalid stops
22:38:57 2011.03.28 04:00  Joe GBPUSD,H4: open #5 buy 2.56 GBPUSD at 1.60229 sl: 1.59939 ok
22:38:57 2011.03.28 04:00  Joe GBPUSD,H4: close #5 buy 1.78 GBPUSD at 1.60229 sl: 1.59939 at price 1.60150
22:38:57 2011.03.28 04:00  Joe GBPUSD,H4: close #6 buy 0.78 GBPUSD at 1.60229 sl: 1.59939 at price 1.60150
22:38:57 2011.03.28 04:00  Joe GBPUSD,H4: close #4 sell 1.78 GBPUSD at 1.63792 sl: 1.63983 at price 1.60231
22:38:57 2011.03.28 04:00  Joe GBPUSD,H4: close #3 sell 1.30 GBPUSD at 1.63700 sl: 1.64051 at price 1.60231
22:38:57 2011.03.28 04:15  Joe GBPUSD,H4: object name passed to ObjectType function cannot be an uninitialized or empty string
22:38:57 2011.03.28 04:15  Joe GBPUSD,H4: object name passed to ObjectType function cannot be an uninitialized or empty string
22:38:57 2011.03.28 08:00  Joe GBPUSD,H4: open #7 buy 3.27 GBPUSD at 1.60273 sl: 1.59972 ok
22:38:57 2011.03.28 08:12  Joe GBPUSD,H4: close #7 buy 3.27 GBPUSD at 1.60273 sl: 1.59972 at price 1.60072
22:39:00 2011.03.29 04:00  Joe GBPUSD,H4: open #8 buy 3.35 GBPUSD at 1.59976 sl: 1.59692 ok
22:39:00 2011.03.29 13:22  Joe GBPUSD,H4: close #8 buy 3.35 GBPUSD at 1.59976 sl: 1.59692 at price 1.59792
22:39:02 2011.03.31 23:59  smFlyingBuddha Signals_v2 GBPUSD,Daily: removed
22:39:09 stdlib GBPUSD,H4: removed
22:39:09 Joe GBPUSD,H4: removed

Author:  gaheitman [ Sun Dec 11, 2011 10:46 pm ]
Post subject:  Re: Joe. Swing-trade your way to a baby equity millipede

SteveHopwood wrote:
andydoc wrote: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
I just ran the same test and also got about a gazillion of the same errors.

Then I remembered that George was saying we also need a test for the trade being in profit, so I added this.

So, the attached here does take a stacked trade but does not move the stop of trade 4 to BE before taking trade 5.

This one has me baffled.

You bored George, by any chance? :lol:

:D
I've been working on it... :D

One issue is that there is no check to see if the calculated value for the stop is still on the correct side of the entry price. For a buy, you need to add something like this:

Code: Select all

      if (stop > PendingPrice) stop = price - MinimumStopLoss*Point;
and similar for the sell. Of course it should really see what the current calculated stop is and make sure it is at least MinimumStopLoss away.

I also put a NormalizeDouble around the PendingPrice calculation when you are trying to stack. Not sure if it needed it, but it seemed right.

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

SteveHopwood wrote:
andydoc wrote:lol - will try that - also got this:

2011.12.11 22:21:23 2011.03.28 04:15 Joe GBPUSD,H4: object name passed to ObjectType function cannot be an uninitialized or empty string
I really, really really don't care about those. No interest whatsoever. Forget them. Immediately.

:D
Okaaaay except isn't it part of the sl edit?
Author:  andydoc [ Sun Dec 11, 2011 11:02 pm ]
Post subject:  Re: Joe. Swing-trade your way to a baby equity millipede

running it further, it finally fails on 21/04 at 08:00 with a zero divide error :(
Author:  SteveHopwood [ Sun Dec 11, 2011 11:25 pm ]
Post subject:  Re: Joe. Swing-trade your way to a baby equity millipede

Ok guys, I am starting to get seriously pissed off here.

The central issue is this: Joe spots an opportunity for a trade and discovers that there is one already open. He is supposed to move the stop of that trade to breakeven before sending a fresh trade.

Simple enough? You would think so.

There is code in place to make sure the stop of the existing trade is moved to BE before sending the new trade.

The code does not work - or appears not to work.

The next trade gets sent even though the current trade has not had its stop move to BE.

Anybody who posts about any bloody error apart from this one faces a visit from a hitman.
Author:  DragosDanescu [ Sun Dec 11, 2011 11:58 pm ]
Post subject:  Re: Joe. Swing-trade your way to a baby equity millipede

Steve, don't know if here is the problem, I have modified condition anyway to assure trade is in profit and at a certain number of pips away (BreakEvenPips), but seems to me that OrderModify it's the problem...

Code: Select all

      if (OpenTrades > 0)
      {
         if (OrderStopLoss() < OrderOpenPrice() && Ask - OrderOpenPrice() >= NormalizeDouble(BreakEvenPips*Point, Digits)) //Attempt to move stop to breakeven
         {
            result = OrderModify(TicketNo, OrderOpenPrice(), OrderOpenPrice(), OrderStopLoss(), OrderExpiration(), CLR_NONE);
            if (!result) 
...shouldn't be something like

Code: Select all

 {
           stop = NormalizeDouble(OrderOpenPrice() + xPips*Point,Digits);
           result = OrderModify(TicketNo, OrderOpenPrice(), stop, 0, OrderExpiration(), CLR_NONE);
All times are UTC Page 4 of 15