Peaky on Steroids

The place for Peaky and Peaky-related stuff.
Post Reply
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.

Peaky on Steroids

Post by SteveHopwood »

V 1g is in post 1. It is an attempt to automate Gertje's groups-of-pairs trading. I have added a group of inputs underneath those belonging to the four time frames, entitled, "Gertje automation feature". The details are in the updated user guide, but you do not need it if you understood Gertje's post just a few up from here and have used PoS for a while.

I am not certain that the code is entirely correct, so perhaps you expert bloop spotters might care to take a look. The relevant function is void CalculateGertjeInputs(int tfIndex) at line 3133. It is called at line 3240.

Gertje, could you put together a setfile for post 1, please?

: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
Gertje
Trader
Posts: 1936
Joined: Mon Dec 12, 2011 1:17 pm
Location: Middle of the Netherlands

Peaky on Steroids

Post by Gertje »

SteveHopwood » Thu Nov 02, 2017 2:43 pm wrote:Gertje, could you put together a setfile for post 1, please?

:xm:
Sure, right away.
I'm humbled and honored by your request.
:hi:
User avatar
Gertje
Trader
Posts: 1936
Joined: Mon Dec 12, 2011 1:17 pm
Location: Middle of the Netherlands

Peaky on Steroids

Post by Gertje »

You nailed it Steve, all I had to change was the place I take the lotsizes from; balance instead of equity to not screw up the recoverypart. :yahoo:

I loaded this one on my demo, if anything pops up then I will report back.
You do not have the required permissions to view the files attached to this post.
User avatar
Gertje
Trader
Posts: 1936
Joined: Mon Dec 12, 2011 1:17 pm
Location: Middle of the Netherlands

Peaky on Steroids

Post by Gertje »

SteveHopwood » Thu Nov 02, 2017 2:43 pm wrote:V 1g is in post 1. It is an attempt to automate Gertje's groups-of-pairs trading. I have added a group of inputs underneath those belonging to the four time frames, entitled, "Gertje automation feature". The details are in the updated user guide, but you do not need it if you understood Gertje's post just a few up from here and have used PoS for a while.

I am not certain that the code is entirely correct, so perhaps you expert bloop spotters might care to take a look. The relevant function is void CalculateGertjeInputs(int tfIndex) at line 3133. It is called at line 3240.

Gertje, could you put together a setfile for post 1, please?

:xm:
Hi Steve,

I tried to manipulate one pair to add recovery trades, the new EA won't send any.
I tried several inputs, like UseGertje yes/ no, changed lotsizes etc.
When I changed back to the previous version, it added the trades immediately again.
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.

Peaky on Steroids

Post by SteveHopwood »

Gertje » Thu Nov 02, 2017 3:18 pm wrote: Hi Steve,

I tried to manipulate one pair to add recovery trades, the new EA won't send any.
I tried several inputs, like UseGertje yes/ no, changed lotsizes etc.
When I changed back to the previous version, it added the trades immediately again.
Can you have a look in the Journal and Experts tabs to see if there are any messages?

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

Peaky on Steroids

Post by SteveHopwood »

LUC came around for a coffee and this resulted in some insane lot sizes when I loaded her up and she fired her first trades. Fixed in post 1. I did not turn off the auto lot calculation features in the four time frames - Trade1LotsPerDollopOfCash etc.

Do a search for "//Lot sizing. Hard lot size" and copy this over the top of the code block:

Code: Select all

         //Lot sizing. Hard lot size
         if (!UseGertje)
         {
            Lot = TradeLots[tfIndex];
            //Dynamic lot sizing based on account size
            if (!CloseEnough(TradeLotsPerDollop[tfIndex], 0))
            {
               LotsPerDollopOfCash = TradeLotsPerDollop[tfIndex];
               SizeOfDollop = TradeSizeOfDollop[tfIndex];
               UseBalance = TradeUseBalance[tfIndex];
               UseEquity = TradeUseEquity[tfIndex];
               CalculateLotAsAmountPerCashDollops();
            }//if (!CloseEnough(LotsPerDollopOfCash, 0))
         }//if (!UseGertje)
    
: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
Gertje
Trader
Posts: 1936
Joined: Mon Dec 12, 2011 1:17 pm
Location: Middle of the Netherlands

Peaky on Steroids

Post by Gertje »

SteveHopwood » Thu Nov 02, 2017 3:45 pm wrote: Can you have a look in the Journal and Experts tabs to see if there are any messages?

:xm:
I downloaded the last version, and tried to make it add pendings by removing existing ones.
1g didn't add any, 1e did right away after I replaced it on the chart.
The expert tab shows no messages other than whats to be expected.
1g deleted pendings journal.png
1e new pendings added.png
1g experts tab.png
You do not have the required permissions to view the files attached to this post.
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.

Peaky on Steroids

Post by SteveHopwood »

Gertje » Fri Nov 03, 2017 10:39 am wrote: I downloaded the last version, and tried to make it add pendings by removing existing ones.
1g didn't add any, 1e did right away after I replaced it on the chart.
The expert tab shows no messages other than whats to be expected.




I have no idea what your problem is. The latest version send several pending orders immediately after I loaded it and it had finished its initial calculations. Two of these have filled and a third is close.

All the new code does is re-calculate the variables you can see in void CalculateGertjeInputs(string symbol, int tfIndex). It does nothing to interfere with the order sending stuff.

Delete your current .mq4 and .ex4 files and re-download from post 1 to ensure you are using the latest code with the fix I mentioned at http://www.stevehopwoodforex.com/phpBB3 ... 12#p157912. There is nothing I can do, sadly, if that does not work. The bot is working fine on my demo.

: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
Gertje
Trader
Posts: 1936
Joined: Mon Dec 12, 2011 1:17 pm
Location: Middle of the Netherlands

Peaky on Steroids

Post by Gertje »

SteveHopwood » Fri Nov 03, 2017 11:22 am wrote: I have no idea what your problem is. The latest version send several pending orders immediately after I loaded it and it had finished its initial calculations. Two of these have filled and a third is close.

All the new code does is re-calculate the variables you can see in void CalculateGertjeInputs(string symbol, int tfIndex). It does nothing to interfere with the order sending stuff.

Delete your current .mq4 and .ex4 files and re-download from post 1 to ensure you are using the latest code with the fix I mentioned at http://www.stevehopwoodforex.com/phpBB3 ... 12#p157912. There is nothing I can do, sadly, if that does not work. The bot is working fine on my demo.

:xm:
Okay, I will delete the older files to make sure it uses the latest one.
Thanks for reporting back, I will sort it out.
Eventually... :lol:
User avatar
Gertje
Trader
Posts: 1936
Joined: Mon Dec 12, 2011 1:17 pm
Location: Middle of the Netherlands

Peaky on Steroids

Post by Gertje »

Gertje » Fri Nov 03, 2017 11:24 am wrote:
SteveHopwood » Fri Nov 03, 2017 11:22 am wrote: I have no idea what your problem is. The latest version send several pending orders immediately after I loaded it and it had finished its initial calculations. Two of these have filled and a third is close.

All the new code does is re-calculate the variables you can see in void CalculateGertjeInputs(string symbol, int tfIndex). It does nothing to interfere with the order sending stuff.

Delete your current .mq4 and .ex4 files and re-download from post 1 to ensure you are using the latest code with the fix I mentioned at http://www.stevehopwoodforex.com/phpBB3 ... 12#p157912. There is nothing I can do, sadly, if that does not work. The bot is working fine on my demo.

:xm:
Okay, I will delete the older files to make sure it uses the latest one.
Thanks for reporting back, I will sort it out.
Eventually... :lol:
Couldn't get it to work.
Started a brand new demo, and tadaaa :!!:
Works okay now, have to look after a few strange level of pendings, probably the history is missing.
Post Reply

Return to “Peaky forum”