Thank's Steve :hi:SteveHopwood » Tue Sep 26, 2017 3:58 pm wrote:I think the opposite side offsetting is working now - it appears to be in Crapergy Tester. Try this version on demo first.
I have reinstated HGI as there is a demand for it.
Holy Graily Bob's Candle Power
- TraderJoeForex
- Trader
- Posts: 1157
- Joined: Fri Mar 08, 2013 10:29 pm
- Location: South London
Holy Graily Bob's Candle Power
- dreambig2
- Trader
- Posts: 46
- Joined: Sat Nov 19, 2016 12:54 am
- Location: US
Holy Graily Bob's Candle Power
Thanks Steve
H1....33 hours starting Monday US open thru Tuesday market close.
Hedge Profit 30
Increasing JS to 10 next and set offset.
H1....33 hours starting Monday US open thru Tuesday market close.
Hedge Profit 30
Increasing JS to 10 next and set offset.
You do not have the required permissions to view the files attached to this post.
-
firewight
- Trader
- Posts: 17
- Joined: Wed Oct 21, 2015 7:39 am
Holy Graily Bob's Candle Power
Not liking the current "leaky toilet" scenario on EU very much, even with 20 pip spacing its building up...
- 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's Candle Power
The version I posted yesterday is now V 1e in post 1. Offsetting appears to work correctly and netted me 257 pips as soon as I loaded it onto my live Global Prime trading account. No need to re-download; the only difference between 1e and yesterday's version is the version display. I have also updated the user guide.
I have a suggestion for someone to try based on this observation: when a complicated, unmanaged position builds up and I load up a managed version of CP, there is huge profitability as offsetting/jumping stops etc close down trades. Try this someone:

Coders, the offsetting code was originally intended only for one purpose. Here it has to serve two: offsetting a balanced position; offsetting an unbalanced one. I have declared some temporary storage variables so that inputs for both offsetting features do not get over written, starting around about line 4818:
I will tidy up CanTradesBeOffset() at some point, so that variables such as AllowComplexSingleSidedOffsets get replaced by a passed parameter.
I have a suggestion for someone to try based on this observation: when a complicated, unmanaged position builds up and I load up a managed version of CP, there is huge profitability as offsetting/jumping stops etc close down trades. Try this someone:
- create two set files:
- one where CP only trades. No breakeven, basket take profit, offsetting etc.
- a second with all the management features enabled.
- load CP with the first set file and allow a complicated position to develop.
- load the management set file,, allow CP to do her thingies and see if this is more profitable than trading CP as we have been doing.
Coders, the offsetting code was originally intended only for one purpose. Here it has to serve two: offsetting a balanced position; offsetting an unbalanced one. I have declared some temporary storage variables so that inputs for both offsetting features do not get over written, starting around about line 4818:
Code: Select all
//Save the user inputs
bool OldAllowComplex = AllowComplexSingleSidedOffsets;//Save the user input
AllowComplexSingleSidedOffsets = AllowComplexSingleSidedOffsetsRecovery;
int OldMinTrades = MinOpenTradesToStartOffset;
MinOpenTradesToStartOffset = MinTradesToStartUnbalancedOffset;
CanTradesBeOffset(0);
//Restore the user's inputs
AllowComplexSingleSidedOffsets = OldAllowComplex;
MinTradesToStartUnbalancedOffset = OldMinTrades;
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.
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.
- 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's Candle Power
My previous post gave me an idea. The attached experimental version has a new input at the bottom of the 'General Inputs' section - TradesOpenBeforeManagementKicksIn.
CP should not call any of the management features until there are at least TradesOpenBeforeManagementKicksIn trades open. Play with it if you like the idea.

CP should not call any of the management features until there are at least TradesOpenBeforeManagementKicksIn trades open. Play with it if you like the idea.
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.
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.
- Wavegarrick
- Trader
- Posts: 1172
- Joined: Sun Dec 30, 2012 11:21 am
- Location: South Africa
Holy Graily Bob's Candle Power
Man this is exciting
,
What could be seen as an otherwise boring day exploded into something.
I am testing only GBPJPY and GBPCAD. The experimental version that Steve posted holds promise and maybe my creativity will kickstart again. Who knows
Todays results simply brilliant.
Great thinking Steve
Cheers
Leon
What could be seen as an otherwise boring day exploded into something.
Great thinking Steve
Cheers
Leon
You do not have the required permissions to view the files attached to this post.
- 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's Candle Power
<Preens modestly>.Wavegarrick » Wed Sep 27, 2017 4:37 pm wrote:Man this is exciting,
What could be seen as an otherwise boring day exploded into something.I am testing only GBPJPY and GBPCAD. The experimental version that Steve posted holds promise and maybe my creativity will kickstart again. Who knows
Todays results simply brilliant.
Great thinking Steve![]()
Cheers
Leon
In fact, the success of all this so far is down to the genius of TJF.
MInd, I was beginning to wonder if the blasted GJ would ever move again until a couple of hours ago.
Maybe we simply have to be like theatre/film/concert audiences and accept that we have to patiently wait for entertainment.
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.
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.
- c1borg
- Trader
- Posts: 456
- Joined: Sun Aug 14, 2016 5:09 pm
Holy Graily Bob's Candle Power
Been making consistent money with http://www.stevehopwoodforex.com/phpBB3 ... 88#p145120 but going to start experimenting with this exciting project. Global Prime setup today, my criminal account kicked into the long grass
hope to be giving you some results soon. Thanks guys the forum is amazing, full of educational info and trading ideas.

-
KingOfCoolville
- Trader
- Posts: 36
- Joined: Sun Dec 04, 2011 4:52 pm
Holy Graily Bob's Candle Power
Steve,
Thanks for this EA, I've been demoing it for a few days - looks very promising. Thanks for taking the time to code it.
I've been thinking about how to alleviate the 'leaky toilet' situation, where the market moves further and further away from a losing position until ultimately hitting the 200 stop loss. Obviously the new management features will help with this, however I'm wondering if a 'rinse and repeat' situation would also help?
I know the updates to the latest versions have 'nuclear option' on margin level as a safety feature. Could this be reversed to a 'nuclear option' on equity increase? (balance (banked trades) + open positions). I am often in a situation where banked small profits are a higher value than current open trades. It may be worth, at a user defined equity value, closing all trades and pending orders and starting the whole process fresh.
This would mean you'd be taking profits as soon as they become available and you would close losing positions which are getting further away from the market hopefully before hitting SL.
Just thinking out loud really.

Thanks for this EA, I've been demoing it for a few days - looks very promising. Thanks for taking the time to code it.
I've been thinking about how to alleviate the 'leaky toilet' situation, where the market moves further and further away from a losing position until ultimately hitting the 200 stop loss. Obviously the new management features will help with this, however I'm wondering if a 'rinse and repeat' situation would also help?
I know the updates to the latest versions have 'nuclear option' on margin level as a safety feature. Could this be reversed to a 'nuclear option' on equity increase? (balance (banked trades) + open positions). I am often in a situation where banked small profits are a higher value than current open trades. It may be worth, at a user defined equity value, closing all trades and pending orders and starting the whole process fresh.
This would mean you'd be taking profits as soon as they become available and you would close losing positions which are getting further away from the market hopefully before hitting SL.
Just thinking out loud really.
- Weyk
- Trader
- Posts: 42
- Joined: Mon Apr 10, 2017 3:53 pm
Holy Graily Bob's Candle Power
Ha! You are GridMaster sort of guy.KingOfCoolville » 27 Sep 2017, 22:31 wrote:Steve,
Thanks for this EA, I've been demoing it for a few days - looks very promising. Thanks for taking the time to code it.
I've been thinking about how to alleviate the 'leaky toilet' situation, where the market moves further and further away from a losing position until ultimately hitting the 200 stop loss. Obviously the new management features will help with this, however I'm wondering if a 'rinse and repeat' situation would also help?
I know the updates to the latest versions have 'nuclear option' on margin level as a safety feature. Could this be reversed to a 'nuclear option' on equity increase? (balance (banked trades) + open positions). I am often in a situation where banked small profits are a higher value than current open trades. It may be worth, at a user defined equity value, closing all trades and pending orders and starting the whole process fresh.
This would mean you'd be taking profits as soon as they become available and you would close losing positions which are getting further away from the market hopefully before hitting SL.
Just thinking out loud really.
Cheers.
If you put your mind onto something sooner or later it will come up with the solution.