Holy Graily Bob 'n Dotty 'n Super Slope 'n Flying Buddha

EA's inspired by nanningbob's work here, especially those based on his 240 Moving Average trend detection filter.
Post Reply
User avatar
TraderJoeForex
Trader
Posts: 1157
Joined: Fri Mar 08, 2013 10:29 pm
Location: South London

Holy Graily Bob 'n Dotty 'n Super Slope 'n Flying Buddha

Post by TraderJoeForex »

TraderJoeForex » Sat May 27, 2017 5:03 pm wrote:
.. Just realized I can use Rene's Multi Symbol controller to limit the trading to just one pair so actually I can just load up on all pairs and see what triggers first. Nice :smile:
So this is my new test for the next few weeks which all being well will then become live:

Reduced account size to £1000GBP
Rene MultiSymbol Controller to ensure just one pair at a time.
HGBnDnSSnFB on 15 pairs looking for setups, Reduced grid of 5, Reduced Sixths to 1440, Trade both ways if market in the middle deactivated.
APTM to manage all trades setup using account currency with £5 BE + JS, £30 SL, £100TP
You do not have the required permissions to view the files attached to this post.
User avatar
rapple
Trader
Posts: 277
Joined: Fri Feb 21, 2014 10:56 pm
Location: Sydney, Australia

Holy Graily Bob 'n Dotty 'n Super Slope 'n Flying Buddha

Post by rapple »

So this is my new test for the next few weeks which all being well will then become live:
Following with interest TJF :clap: :clap:
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Holy Graily Bob 'n Dotty 'n Super Slope 'n Flying Buddha

Post by SteveHopwood »

V 1d is in post 1. The bot was not reacting as intended to the FollowAdverseMarketWithStopOrders input aqnd I have fixed this.

Watch the default inputs; they are effectively my setfile and may not suit you.

DIYers, the easiest way to add the fix is to copy this over the top of the existing void FillGapsWithStopOrders() function starting at line1117:

Code: Select all

void FillGapsWithStopOrders()
{

   //Fill in the gaps between the market price and the most recent trade
   //when the market is above the PH or below the PL.
   
   bool result = true;
   double price = 0;
   double SendLots = Lot;
   double stop = 0, take = 0;
   
   //Sell stops
   if (LatestTradeTicketNo > -1)   
      if (BetterOrderSelect(LatestTradeTicketNo, SELECT_BY_TICKET, MODE_TRADES))
         if (OrderType() == OP_SELL || OrderType() == OP_SELLSTOP)
            if (Bid - OrderOpenPrice() >= (MarketDistance / factor) )
            {
               price = NormalizeDouble(OrderOpenPrice() + (MarketDistance / factor) / 2, Digits);
               if (!DoesStopOrderExist(OP_SELLSTOP, price))
               {
                  stop = CalculateStopLoss(OP_SELL, price);
                  take = OrderTakeProfit();
                  //Lot size calculated by risk
                  if (!CloseEnough(RiskPercent, 0)) SendLots = CalculateLotSize(price, NormalizeDouble(stop + (HiddenPips / factor), Digits) );
   
                  result = SendSingleTrade(Symbol(), OP_SELLSTOP, TradeComment, SendLots, price, stop, take);
               }//if (!DoesTradeExist(OP_SELLSTOP, price))
               
            }//if (Bid - OrderOpenPrice() >= (MarketDistance / factor) )

   //Buy stops
   if (LatestTradeTicketNo > -1)   
      if (BetterOrderSelect(LatestTradeTicketNo, SELECT_BY_TICKET, MODE_TRADES))
         if (OrderType() == OP_BUY || OrderType() == OP_BUYSTOP)
            if (OrderOpenPrice() - Bid >= (MarketDistance / factor) )
            {
               price = NormalizeDouble(OrderOpenPrice() - (MarketDistance / factor) / 2, Digits);
               if (!DoesStopOrderExist(OP_BUYSTOP, price))
               {
                  stop = CalculateStopLoss(OP_BUY, price);
                  take = OrderTakeProfit();
                  //Lot size calculated by risk
                  if (!CloseEnough(RiskPercent, 0)) SendLots = CalculateLotSize(price, NormalizeDouble(stop + (HiddenPips / factor), Digits) );
   
                  result = SendSingleTrade(Symbol(), OP_BUYSTOP, TradeComment, SendLots, price, stop, take);
               }//if (!DoesTradeExist(OP_BUYSTOP, price))
               
            }//if (Bid - OrderOpenPrice() >= (MarketDistance / factor) )
      

}//End void FillGapWithStopOrders()

Compare the two and you will see the changes I have made.

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
TraderJoeForex
Trader
Posts: 1157
Joined: Fri Mar 08, 2013 10:29 pm
Location: South London

Holy Graily Bob 'n Dotty 'n Super Slope 'n Flying Buddha

Post by TraderJoeForex »

TraderJoeForex » Sun May 28, 2017 11:28 pm wrote:
So this is my new test for the next few weeks which all being well will then become live:

Reduced account size to £1000GBP
Rene MultiSymbol Controller to ensure just one pair at a time.
HGBnDnSSnFB on 15 pairs looking for setups, Reduced grid of 5, Reduced Sixths to 1440, Trade both ways if market in the middle deactivated.
APTM to manage all trades setup using account currency with £5 BE + JS, £30 SL, £100TP
So far so good.. EURJPY is the first setup that triggered today so this is my play for this week and looks like it could be a good un.

Just a note to say I only realized today thanks to Tomasso that the currency settings for SL/TP/JS/BE with APTM are internalized within the EA so for anyone trying the set files I posted above don't stress that you don't see a fixed SL/TP sent behind each order.

I'm going to run with this as posted but you can easily change to an ATR based SL/TP/JS/BE with APTM instead of my GBP settings if you prefer. And if using a bigger than £1000 account would need to do this to scale up anyway.
You do not have the required permissions to view the files attached to this post.
User avatar
cozybooks
Trader
Posts: 301
Joined: Wed Mar 27, 2013 1:33 am

Holy Graily Bob 'n Dotty 'n Super Slope 'n Flying Buddha

Post by cozybooks »

Week #1 of my test using TJF's settings, but using No Grid.

In theory this would allow me to trade larger lot sizes and trade more pairs and break up my risk into several different trades at a time. Right now I'm not discriminating on better or worse looking setups. Ran the EA on 10 pairs, but only six trades for the week - pretty much break even, which is not bad for a crazy trading week.

Have a great weekend! :clap:
You do not have the required permissions to view the files attached to this post.
User avatar
TraderJoeForex
Trader
Posts: 1157
Joined: Fri Mar 08, 2013 10:29 pm
Location: South London

Holy Graily Bob 'n Dotty 'n Super Slope 'n Flying Buddha

Post by TraderJoeForex »

cozybooks » Fri Jun 02, 2017 8:56 pm wrote:Week #1 of my test using TJF's settings, but using No Grid.

In theory this would allow me to trade larger lot sizes and trade more pairs and break up my risk into several different trades at a time. Right now I'm not discriminating on better or worse looking setups. Ran the EA on 10 pairs, but only six trades for the week - pretty much break even, which is not bad for a crazy trading week.

Have a great weekend! :clap:
I got hammered with just the EURJPY grid partly because APTM currency management didn't kick in as intended .. so I lost the early profits on the table at the start of the week. Next week will change to ATR based settings so I can see what's it doing and ensure the SL are there but drawdown stayed below 10% so I reckon the money management of 1 pair per £1000 for this grid is ok.

Next week will be interesting...
You do not have the required permissions to view the files attached to this post.
User avatar
TraderJoeForex
Trader
Posts: 1157
Joined: Fri Mar 08, 2013 10:29 pm
Location: South London

Holy Graily Bob 'n Dotty 'n Super Slope 'n Flying Buddha

Post by TraderJoeForex »

TraderJoeForex » Fri Jun 02, 2017 11:26 pm wrote:
Next week will be interesting...

.. thought I'd do a before and after election results. Currently a very positive bounce back week +8.4% not bad for one pair at a time trading (so still just EURJPY carried over from last week) and if this was live I would have closed all by now for sure. :cheer:
You do not have the required permissions to view the files attached to this post.
User avatar
cozybooks
Trader
Posts: 301
Joined: Wed Mar 27, 2013 1:33 am

Holy Graily Bob 'n Dotty 'n Super Slope 'n Flying Buddha

Post by cozybooks »

Week #2 of my test using TJF's settings, but using No Grid. I am liking this more and more! :yahoo:

10 trades for the week running on 16 pairs. Up a total of 459 pips. With my breakeven first week, things are looking up.

I left this running through the election, but had I closed the GBPJPY trade before the election, the results would have been about 100 pips lower.

Low risk, small number of trades open. I may look at other options as well for when to close the trades, but I'll leave this demo running as-is all through June.

Have a great weekend!
You do not have the required permissions to view the files attached to this post.
User avatar
TraderJoeForex
Trader
Posts: 1157
Joined: Fri Mar 08, 2013 10:29 pm
Location: South London

Holy Graily Bob 'n Dotty 'n Super Slope 'n Flying Buddha

Post by TraderJoeForex »

cozybooks » Fri Jun 09, 2017 3:59 pm wrote:Week #2 of my test using TJF's settings, but using No Grid. I am liking this more and more! :yahoo:

10 trades for the week running on 16 pairs. Up a total of 459 pips. With my breakeven first week, things are looking up.

I left this running through the election, but had I closed the GBPJPY trade before the election, the results would have been about 100 pips lower.

Low risk, small number of trades open. I may look at other options as well for when to close the trades, but I'll leave this demo running as-is all through June.

Have a great weekend!
Well done.. Buy low, sell high, Superslope and Flying Buddha is an awesome combination whichever way it is traded. We owe huge thanks to Steve for enabling them all together in this EA. :yahoo:
User avatar
cozybooks
Trader
Posts: 301
Joined: Wed Mar 27, 2013 1:33 am

Holy Graily Bob 'n Dotty 'n Super Slope 'n Flying Buddha

Post by cozybooks »

Yes, a very, very big thanks to Steve for making all of this possible! :party: :clap: :D :yahoo: :!!:

I do a lot of custom programming in other programming languages, and over the years have often had to modify code written by someone else. I can count on less than one finger the number of times I've modified someone's code where it was as well documented and organized as what Steve is doing in his EA's. If you've ever wanted to play around with different ideas on an EA, Steve has made it all possible, not to mention providing the forum in the first place!

Not only that, but if you're having a down week, Steve always brings a smile to your face when he writes some of his entertaining replies, even if you're the one who made the foolish comment in the first place to earn one of his replies.

Steve, everyone here can't thank you enough times for everything you've done!! :clap:
Post Reply

Return to “Thingy Bob EA's”