Slopey Peaky Bob

Post Reply
User avatar
MurphyMan
Trader
Posts: 345
Joined: Tue Nov 15, 2011 2:35 pm
Location: Southern Illinois, USA

Slopey Peaky Bob

Post by MurphyMan »

I am bumfluxed, can someone take a look at my settings?

For some reason, my lot size is locked in and setting pending trades, at 0.10 lots. Right now, I am at $6,900 equity, so with $1,500 dollops I should have a trading size of .04 lots. I've gone through the settings a dozen times. What am I missing here? Including my set file as well.
CSPB-2.PNG
You do not have the required permissions to view the files attached to this post.
billv
Trader
Posts: 283
Joined: Fri Apr 13, 2012 1:57 pm

Slopey Peaky Bob

Post by billv »

MurphyMan » Sat Mar 02, 2019 6:44 am wrote:I am bumfluxed, can someone take a look at my settings?
Hello MMan
The settings look ok, have you tried loading a different set file or an earlier version of the EA?
Sometimes the loaded set file contains other parameters which upset the EA's.
For example, sometimes I accidentally loaded a Peaky or Awesome set file to the Slopey and visa versa.

Failing that, why don't you load the EA again on top of the existing one and import the same set or different set file?

To see what size trades the EA places, I would pick a pair which has a recent grid of 5 pending orders,
delete them and then wait for the EA to replace them.
Sometimes the placement of new orders is immediate, sometimes it takes a while
You can switch timeframes on the chart which has the EA (up and down a few levels) and see if that triggers new orders.

Cheers
rognar
Posts: 1
Joined: Tue Nov 26, 2013 6:32 pm

Slopey Peaky Bob

Post by rognar »

MurphyMan » Fri Mar 01, 2019 7:44 pm wrote:I am bumfluxed, can someone take a look at my settings?

For some reason, my lot size is locked in and setting pending trades, at 0.10 lots. Right now, I am at $6,900 equity, so with $1,500 dollops I should have a trading size of .04 lots. I've gone through the settings a dozen times. What am I missing here? Including my set file as well.
Maybe your broker’s account has a minimum lot of 0.10?
P.S Sorry for my English
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.

Slopey Peaky Bob

Post by SteveHopwood »

MurphyMan » Fri Mar 01, 2019 7:44 pm wrote:I am bumfluxed, can someone take a look at my settings?

For some reason, my lot size is locked in and setting pending trades, at 0.10 lots. Right now, I am at $6,900 equity, so with $1,500 dollops I should have a trading size of .04 lots. I've gone through the settings a dozen times. What am I missing here? Including my set file as well.
That is a curious one. Have you tried shutting down and restarting the platform?

:xm: :rocket:
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
MurphyMan
Trader
Posts: 345
Joined: Tue Nov 15, 2011 2:35 pm
Location: Southern Illinois, USA

Slopey Peaky Bob

Post by MurphyMan »

SteveHopwood » Fri Mar 01, 2019 3:06 pm wrote:I am bumfluxed, can someone take a look at my settings?

For some reason, my lot size is locked in and setting pending trades, at 0.10 lots. Right now, I am at $6,900 equity, so with $1,500 dollops I should have a trading size of .04 lots. I've gone through the settings a dozen times. What am I missing here? Including my set file as well.


That is a curious one. Have you tried shutting down and restarting the platform?

:xm: :rocket:
I have shut it down several times. Even logged out of my VPS then back in. This is a really screwy item, it happens with Versions 1w, 1z and now 2c. I also tried deleting mlqcache. No joy. Traders Way is my current broker and the SPB SPB 1w demo I have running with them is fine. This demo is located on my desktop confuser, and the trouble-making live account is on the VPS.

I can't work on it anymore today, but tomorrow I'll get a new download from TW and bring all it up from scratch.

Sam
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.

Slopey Peaky Bob

Post by SteveHopwood »

Latest version 2d is in post 1. Thomas is finding in his testing that closing trades merely because there is a new peak hilo is reducing profits, so there is a new input in the Peaky inputs section:
  • CloseAllWhenPeakyChanges: this tells SPB to:
    • Close buy trades following a new high.
    • Close sell trades following a new low.
I have added the rolling grid feature that I added to Desky last week. Fancy a DIY for all this?

Do a search for, ""extern int NoOfBarsOnChart" and add this underneath:
extern bool CloseAllWhenPeakyChanges=false;

Go to bool LookForTradeClosure(int ticket, int PairIndex). Scroll down to:
if (PeakyStatus[PairIndex] == peakyshorttradable) and add this directly underneath:

Code: Select all

if (CloseAllWhenPeakyChanges)
                  
Scroll down to: if (PeakyStatus[PairIndex] == peakylongtradable) (might be easier to find with a search). Add this directly underneath:

Code: Select all

if (CloseAllWhenPeakyChanges)
                  
Then to add the rolling code:
Do a search for: "extern string gtp="-- Grid trades take profit --";"

Insert this immediately above:

Code: Select all

//Adding to the grid when there is a strong move in our favour and all the stop orders have filled
extern string  rgi="--Rolling grid inputs --";
extern bool    RollingGrid=false;
extern int     MaxRolledTrades=20;
//Close the grid when there are the max trades open and the market reaches the next level
extern bool    CloseGridAtMrtPlusOneLevel=false;
Go to void AutoTrading(). Insert these three functions immediately above:

Code: Select all

void DoRollingGridStuff(string symbol, int pairIndex)
{

   GetBasics(symbol);
   
   //Rolling grid.
   if (RollingGrid)//Are we using this feature?
      if (IsTradingAllowed(symbol, pairIndex) )//Make sure there is nothing to stop us trading eg spread
         if (MarketTradesTotal > 0)//There are open trades
            if (MarketTradesTotal + GridSize <= (MaxRolledTrades - GridSize) )//A new grid will not exceed our maximum allowed
            {   
               //Buy grid
               if (BuyOpen)//There are market buy trades
               {
                  //Buy grid
                  if (BuyStopsCount == 0)
                  {
                     SendBuyGrid(symbol, OP_BUYSTOP, ask, Lot, TradeComment); 
                  }//if (BuyStopsCount == 0)
               }//if (BuyOpen)
               
               //Sell grid
               if (SellOpen)//There are market sell trades
               {
                  //Sell grid
                  if (SellStopsCount == 0)
                  {
                     SendSellGrid(symbol, OP_SELLSTOP, bid, Lot, TradeComment); 
                  }//if (SellStopsCount == 0)
               }//if (SellOpen)
               
            }//if (MarketTradesTotal + GridSize <= MaxRolledTrades)//A new grid will not exceed our maximum allowed

}//End void DoRollingGridStuff(string symbol, int pairIndex)

void DoRollingGridClosure(string symbol, int pairIndex)
{

   int type = OP_BUY;
   if (SellOpen)
      type = OP_SELL;
   CanWeCloseTheRollingGrid(symbol, pairIndex, type);

}//void DoRollingGridClosure(string symbol, int pairIndex)


void CanWeCloseTheRollingGrid(string symbol, int pairIndex, int type)
{
   //Close a rolling grid when the market reaches MaxRolledTrades + DistanceBetweenTrades
   
   if (MarketTradesTotal < MaxRolledTrades)
      return;//Nothing to do
   
   GetBasics(symbol);
      
   //Buy grid
   if (type == OP_BUY)
   {
      if (bid >= (HighestBuyPrice + (DistanceBetweenTrades / factor) ) )
      {
         CloseAllTrades(symbol, OP_BUY);
         return;
      }//if (bid >= (HighestBuyPrice + (DistanceBetweenTrades / factor) ) )
   }//if (type == OP_BUY)
   
   //Sell grid
   if (type == OP_SELL)
   {
      if (ask <= (LowestSellPrice - (DistanceBetweenTrades / factor) ) )
      {
         CloseAllTrades(symbol, AllTrades);
         return;
      }//if (ask <= (LowestSellPrice - (DistanceBetweenTrades / factor) ) )
   }//if (type == OP_SELL)
   
   
}//End void CanWeCloseTheRollingGrid(string symbol, int pairIndex, int type)
Finally, do a search for, "if (TimeCurrent() >= TimeToStartTrading[PairIndex])". Add this code block immediately above:

Code: Select all

      //Rolling grid
      if (RollingGrid)
      {
         DoRollingGridStuff(symbol, PairIndex);
         if (CloseGridAtMrtPlusOneLevel)
         {
            DoRollingGridClosure(symbol, PairIndex);
            if (ForceTradeClosure)
            {
               PairIndex--;
               continue;
            }//if (ForceTradeClosure)
            
         }//if (CloseGridAtMrtPlusOneLevel)
         
      }//if (RollingGrid)
      
Have fun.

:xm: :rocket:
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
MurphyMan
Trader
Posts: 345
Joined: Tue Nov 15, 2011 2:35 pm
Location: Southern Illinois, USA

Slopey Peaky Bob

Post by MurphyMan »

MurphyMan » Fri Mar 01, 2019 1:44 pm wrote:I am bumfluxed, can someone take a look at my settings?

For some reason, my lot size is locked in and setting pending trades, at 0.10 lots. Right now, I am at $6,900 equity, so with $1,500 dollops I should have a trading size of .04 lots. I've gone through the settings a dozen times. What am I missing here? Including my set file as well.
I sure hope this doesn't result in "Egads you dimwit"! :oops:

I completely reinstalled Empty4 and loaded SPB V 2d.

When I change LotsPerDollopOfCash from 0.0 to 0.01 the screen returns the Lot Size as 0.10. In fact, it seems that any number other than 0.0 returns 0.10.

Now that I see it, my workaround is simple, manually change the Lot size to my desired size and LotsPerDollopOfCash to 0.0.
Last edited by MurphyMan on Fri Apr 05, 2019 9:14 pm, edited 1 time in total.
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.

Slopey Peaky Bob

Post by SteveHopwood »

MurphyMan » Sun Mar 03, 2019 8:58 pm wrote:
I sure hope this doesn't result in "Egads you dimwit"! :oops:

I completely reinstalled Empty4 and loaded SPB V 2d.

When I change LotsPerDollopOfCash from 0.0 to 0.01 the screen returns the Lot Size as 0.10. In fact, it seems that any number other than 0.0 returns 0.10.

Now that I see it, my workaround is simple, manually change the Lot size to my desired size and LotsPerDollopOfCash to False.
Egads, you dimwit.

In fact, this reminded me to play with lots per dollop. I am finding that whatever I enter into LotsPerDollopOfCash then shows up as the lot size on the screen.

Looks like the lots per dollop calculation has been broken somehow. I will have a look tomorrow.

:xm: :rocket:
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
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Slopey Peaky Bob

Post by SteveHopwood »

V 2e is in post 1.

It turns out that I had not quite implemented something Thomas wanted. He wanted SPB closing trades when both the HTF SS had changed to the opposite colour AND Peaky was pointing in the wrong direction. Thomas sent me the code he wanted earlier.

The easiest way to DIY is to copy the attached code over the top of the existing function. It is a long function that would be awkward to copy from a post, so I have put it into a script code:
  • Go to: bool LookForTradeClosure(int ticket, int PairIndex)
  • Open the attached in your editor and copy the contents to your clipboard.
  • Delete the existing function and replace it with the new one.
:xm: :rocket:
You do not have the required permissions to view the files attached to this post.
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
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Slopey Peaky Bob

Post by SteveHopwood »

niceguy pm'd to say I had uploaded Desky to post 1 instead of SPB. Correct bot is there now. Thanks niceguy. :clap: :clap: :clap:

:xm: :rocket:
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.
Post Reply

Return to “Super Slope EA's”