stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Slopey Peaky Bob
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5389
Page 11 of 84
Author:  SteveHopwood [ Fri May 18, 2018 7:44 pm ]
Post subject:  Slopey Peaky Bob

Zennor » Fri May 18, 2018 7:34 pm wrote:I started trading SPB back end of last month. Results are extremely promising. Started off with very low TP and lot size but after a few weeks watching the EA perform I noticed the DD was very low so set the EA up to risk 0.03 lots per £1,000 and to take £5 per £250 balance.
Great to see your results, but your lot sizing will get you into trouble and blow your account eventually.

I will describe my live trading results tomorrow; Gareth's tiny account only just survived so please read my upcoming post. You will also find that your TP looks good, assuming it is a basket tp.

:xm: :rocket:
Author:  Zennor [ Fri May 18, 2018 7:52 pm ]
Post subject:  Slopey Peaky Bob

Thanks, Steve, to be honest, I was thinking that 0.03 lots might be a little on the heavy side hence the reason for forward testing. As for the TP yes it is basket closure. Initially, I was using 0.01 lots per £1,000 and may have upped it a little to high so may set it to 0.01 per $500. Looking forward to your post over the weekend.
Author:  SteveHopwood [ Sat May 19, 2018 10:58 am ]
Post subject:  Slopey Peaky Bob

I am becoming increasingly excited about SPB. This week added $151 to three live trading accounts, trading 0.01 lots.

My main live account with a $30 TP. The results result from two basket closures:
Main.png
Here is since I loaded SPB onto the account and representing 8 closed baskets:
Since starting main.png
------

Now the account I split from the main, starting with $1,000. A $20 TP, so again two basket closures:
Small.png
Since starting and representing 4 closed baskets:
Small all.png
This account has suddenly become much more important to me than it was a month ago. One of my very much loved victims wants to do a World Challenge. These things cost c. £4,000 so I am going to put the profits from the account into the fund; it will make a sizeable dent in the bill if SPB can keep going at this rate.

------

Gareth's account. This is a $5 basket TP, to the profits this week represent 2 closed baskets:
Gareth.png
Since loading SPB and representing 20 closed baskets:
Gareth all.png
------

This means I have added c. $435 to the three accounts in about five weeks. Someone with a GP starter account with the minimum deposit of $500 would be feeling pretty pleased.

Last week was interesting. All three accounts had baskets that went to c. -$130 DD. This did not bother my main account at all; it bothered my split-off account not a lot. It represented over 25% of Gareth's account and took the margin percent down to a distinctly uncomfortable 129% before recovering, so I have cut the grid size to 3 and the increased the distance between trades to 40.

The idea behind Gareth's $5 is to be in and out quickly whilst the balance grows. This is working as intended but I am going to increase the TP. My main account grew by $249 with 8 closed baskets whilst Gareth's grew by $99 over 10 baskets.

The c. $130 DD disappeared within a hour or so when the markets finally moved back in the right direction. I have noticed that a basket closes rapidly when this happens - it can go from DD to TP within minutes. I am wondering if I am leaving too much on the table with my TP - is anyone here demoing a much higher one?

Looking good.

:xm: :rocket:
Author:  SteveHopwood [ Sat May 19, 2018 12:14 pm ]
Post subject:  Slopey Peaky Bob

Folks will start to contemplate live trading as the good results continue to accrue.

Trouble is, members will not replicate these results if their broker is bollocks so this is a reminder: if you are eligible for a Global Prime account and have not yet opened one, then do so ASAP. There is a link in my signature; Jeremy's thread is http://www.stevehopwoodforex.com/phpBB3 ... =52&t=1394 and my debunking of standard poor-broker misbehaviour is at http://www.stevehopwoodforex.com/phpBB3 ... =52&t=1475

:xm: :rocket:
Author:  MurphyMan [ Sat May 19, 2018 12:57 pm ]
Post subject:  Slopey Peaky Bob

I have been running SPB live for three weeks now. So far, so good. I am using a .01 lot per $1,500 dollop, which seems okay. Pretty much OOTB, with $30 TP/basket. However I have FkMinimumMarginercent set to 1,500 because I'm a big chicken. That limited some trades opening up and maybe more baskets, but I'm okay with that.

In the three weeks I'm up 1,756 pips!

Thanks to all.
Author:  Wavegarrick [ Sat May 19, 2018 1:23 pm ]
Post subject:  Slopey Peaky Bob

Excellent stuff Steve, I am also running SPB and results are coming in very good.

Thanks for showing us your results.. Once again, perseverance pays. :good:

To Thomas and Rene..Fx testify web. We can drill down into good performing Ea's. Absolutely great work by both of you.

Cheers
Leon
Author:  SteveHopwood [ Sat May 19, 2018 1:25 pm ]
Post subject:  Slopey Peaky Bob

V 1h is in post 1. From the updated user guide and the "Trend time frame Super Slope" section:
  • Colour change inputs: these tell Slopey Peaky Bob what to do in the event that the colour changes from red to blue or back again and retains the change at the close of the candle. He ignores white:
    • CloseMarketTradesOnOppositeColour: tells Slopey Peaky Bob to close open market trades.
    • DeletePendingTradesOnOppositeColour: tells Slopey Peaky Bob to delete outstanding pending trades.
1h also fixes a bug that was preventing stop order deletion following a full opposite direction signal.

The DIY is simple:

Do a search for "extern int HtfSsSlopeATRPeriod" and add these this:

Code: Select all

extern string  cch="-- Colour change --";
extern bool    CloseMarketTradesOnOppositeColour=false;
extern bool    DeletePendingTradesOnOppositeColour=true;
Do a search for "TradeWasClosed = LookForTradeClosure(OrderTicket(), PairIndex);". Scroll up two lines to:

Code: Select all

if (OrderType() < 2)
This was the code preventing the stop order deletion, so delete the line. The code block will look like this:

Code: Select all

      TradeWasClosed = false;
      if (!AreWeAtRollover())
         TradeWasClosed = LookForTradeClosure(OrderTicket(), PairIndex);
      if (TradeWasClosed) 
      {
         if (type == OP_BUY) BuyOpen = false;//Will be reset if subsequent trades are buys that are not closed
         if (type == OP_SELL) SellOpen = false;//Will be reset if subsequent trades are sells that are not closed
         cc++;
         continue;
      }//if (TradeWasClosed)
Do a search for "bool LookForTradeClosure(int ticket, int PairIndex)" and copy this over the top of the existing function (i.e. delete it and replace with this):

Code: Select all

bool LookForTradeClosure(int ticket, int PairIndex)
{
   //Close the trade if the close conditions are met.
   //Called from within CountOpenTrades(). Returns true if a close is needed and succeeds, so that COT can increment cc,
   //else returns false


   if (!BetterOrderSelect(ticket, SELECT_BY_TICKET) ) return(true);
   if (BetterOrderSelect(ticket, SELECT_BY_TICKET) && OrderCloseTime() > 0) return(true);
   
   bool CloseThisTrade = false;
   
   //I have left the tpsl code in case non GP members need stealth
   double take = OrderTakeProfit();
   double stop = OrderStopLoss();
   
        
   ///////////////////////////////////////////////////////////////////////////////////////////////////////////
   if (!CloseThisTrade)
   {
      if (OrderType() == OP_BUY || OrderType() == OP_BUYSTOP || OrderType() == OP_BUYLIMIT)
      {
         //TP
         if (bid >= take && !CloseEnough(take, 0) && !CloseEnough(take, OrderTakeProfit()) ) CloseThisTrade = true;
         //SL
         if (bid <= stop && !CloseEnough(stop, 0)  && !CloseEnough(stop, OrderStopLoss())) CloseThisTrade = true;
   
         //SS has closed red
         if (HtfSsStatus[PairIndex] == red)
         {
            //Complete opposite direction signal
            if (PeakyStatus[PairIndex] == peakyshorttradable)
               CloseThisTrade = true;
         
            //Market trade
            if (!CloseThisTrade)
               if (OrderType() < 2)
                  if (CloseMarketTradesOnOppositeColour)
                     CloseThisTrade = true;
                     
            //Pending trade
            if (!CloseThisTrade)
               if (OrderType() > 1)
                  if (OrderType() < 6)
                     if (DeletePendingTradesOnOppositeColour)
                        CloseThisTrade = true;
                        
               
         }//if (HtfSsStatus[PairIndex] == red)
         
         
         
           
      }//if (OrderType() == OP_BUY)
      
      
      ///////////////////////////////////////////////////////////////////////////////////////////////////////////
      if (OrderType() == OP_SELL || OrderType() == OP_SELLSTOP || OrderType() == OP_SELLLIMIT)
      {
         //TP
         if (bid <= take && !CloseEnough(take, 0) && !CloseEnough(take, OrderTakeProfit()) ) CloseThisTrade = true;
         //SL
         if (bid >= stop && !CloseEnough(stop, 0)  && !CloseEnough(stop, OrderStopLoss())) CloseThisTrade = true;
   
   
         //SS has closed blue
         if (HtfSsStatus[PairIndex] == blue)
         {
            //Complete opposite direction signal
            if (PeakyStatus[PairIndex] == peakylongtradable)
               CloseThisTrade = true;
         
            //Market trade
            if (!CloseThisTrade)
               if (OrderType() < 2)
                  if (CloseMarketTradesOnOppositeColour)
                     CloseThisTrade = true;
                     
            //Pending trade
            if (!CloseThisTrade)
               if (OrderType() > 1)
                  if (OrderType() < 6)
                     if (DeletePendingTradesOnOppositeColour)
                        CloseThisTrade = true;
                        
               
         }//if (HtfSsStatus[PairIndex] == blue)
         
         
            
      }//if (OrderType() == OP_SELL)
   }//if (!CloseThisTrade)
   
   ///////////////////////////////////////////////////////////////////////////////////////////////////////////
   if (CloseThisTrade)
   {
      bool result = false;
      
      if (OrderType() < 2)//Market orders
         result = CloseOrder(ticket);
      else
         result = OrderDelete(ticket, clrNONE);
            
      //Actions when trade close succeeds
      if (result)
      {
         TicketNo = -1;//TicketNo is the most recently trade opened, so this might need editing in a multi-trade EA
         OpenTrades--;//Rather than OpenTrades = 0 to cater for multi-trade EA's
         return(true);//Makes CountOpenTrades increment cc to avoid missing out ccounting a trade
      }//if (result)
   
      //Actions when trade close fails
      if (!result)
      {
         return(false);//Do not increment cc
      }//if (!result)
   }//if (CloseThisTrade)
   
   //Got this far, so no trade closure
   return(false);//Do not increment cc
   
}//End bool LookForTradeClosure()
:xm: :rocket:
Author:  SteveHopwood [ Sat May 19, 2018 1:27 pm ]
Post subject:  Slopey Peaky Bob

MurphyMan » Sat May 19, 2018 12:57 pm wrote:I have been running SPB live for three weeks now. So far, so good. I am using a .01 lot per $1,500 dollop, which seems okay. Pretty much OOTB, with $30 TP/basket. However I have FkMinimumMarginercent set to 1,500 because I'm a big chicken. That limited some trades opening up and maybe more baskets, but I'm okay with that.
One of the thingies we have learned over the years is that being chicken is a seriously good idea. :lol:
In the three weeks I'm up 1,756 pips!

Thanks to all.
:clap: :clap: :clap: :clap: :clap:

:xm: :rocket:
Author:  isabek [ Sat May 19, 2018 2:29 pm ]
Post subject:  Slopey Peaky Bob

Steve, thank you. :clap:

SPB (3 weeks)
SPB 13 Pairs(EURUSD,GBPUSD,AUDUSD,NZDUSD,USDCHF,EURCAD,GBPJPY,GBPCAD,AUDJPY,NZDJPY,CHFJPY,NZDCAD,CADCHF - Weekly CSS),
D1 SS 0.0 threshold Peaky H4 AtrGrid 1D 60 0.5 Individual 75 All 100
spb.png
Author:  SteveHopwood [ Sat May 19, 2018 7:11 pm ]
Post subject:  Slopey Peaky Bob

Version 1i is in post 1.

I was driving home from teaching Katie and her mum - you have met them if you are following my, "Thingies That Happen to Steve in his Other Job" thread - when I had an idea.

The idea was inspired by my doubling the lot size and basket take profit on my main trading account, to 0.02 lots and a $60 basket take profit. I think I know what is safe in live trading, but am taking the chicken route followed by MurphyMan.

It occurred to me that automating the basket cash take profit might be a good idea. This way, using LotsPerDollopOfCash to calculate lot sizes and some way of dynamically calculating the basket take profit would be a good way forward - or merely increasing the basket TP if I increase the lot size manually.

From the updated user guide:
  • All trades belong to a single basket: this is treating all trades with the EA's magic number as part of a whole-position basket. The use of the three inputs TreatAllPairsAsBasket, BasketTargetPips and BasketTargetCash should be obvious. You are seriously in the wrong forum if not. After that:
    • Dynamic basket take profit inputs: these inputs allow you to calculate a dynamic TreatAllPairsAsBasket basket cash take profit:
      • UseDynamicCashTP: turns this feature on/off.
      • CashTakeProfitPerLot: a notional target for a one lot trade. Slopey Peaky Bob calculates the basket cash take profit by multiplying this figure by the value of your Lot input. The default would give a $30 TP on 0.01 lot sizes, so play with it:
        • This includes lot sizes based on RiskPercent and LotsPerDollopOfCash.
        • There is a TP value displayed on the chart so you know where you are.
:xm: :rocket:
All times are UTC Page 11 of 84