Hi Gertje, are you using some kind of trade manager now? Or simply manual close after X grid opened?Gertje » Mon Apr 25, 2016 6:31 pm wrote:This morning I woke up to some 600 banked pis, and -90 floating across 6-7 pairs.
I used the nucleair option to close all out, and be done for the day.
More time to watch RnR in awe....
Gridtrading from daily open
-
marcoFF
- Trader
- Posts: 127
- Joined: Mon Apr 20, 2015 10:50 pm
Gridtrading from daily open
-
made2ride
- Posts: 2
- Joined: Fri Oct 23, 2015 6:49 am
Gridtrading from daily open
My 1st post and 1st have to say thanks to everybody as I’ve learnt so much in the short time I’ve been here.
I’ve read through and found a reference but sadly no cure to an error message that I’m now getting with the “SendIndividualGridsAtExtremes” setting, which when set at true will only send buy stops correctly, the sell stops are returning alert messages with:
Sell stop: Lots 0.01: Price 1.4622: Bid 1.4548, (trying to place the sell stop above actual price as if sending a sell limit).
GBPUSD Greedy Wotsit OP_SELLSTOP order send failed with error(130): invalid stops
I have zero knowledge of coding but have looked through the EA code and the only thing I found was at line 1171 which read as SendBuyGrid that I changed for SendSellGrid but sadly this has not made any difference.
I have now downloaded the latest version and still have the same error.
Please tell me where I’m going wrong and how to proceed?
I am using Global Prime
Thanks Joe
I’ve read through and found a reference but sadly no cure to an error message that I’m now getting with the “SendIndividualGridsAtExtremes” setting, which when set at true will only send buy stops correctly, the sell stops are returning alert messages with:
Sell stop: Lots 0.01: Price 1.4622: Bid 1.4548, (trying to place the sell stop above actual price as if sending a sell limit).
GBPUSD Greedy Wotsit OP_SELLSTOP order send failed with error(130): invalid stops
I have zero knowledge of coding but have looked through the EA code and the only thing I found was at line 1171 which read as SendBuyGrid that I changed for SendSellGrid but sadly this has not made any difference.
I have now downloaded the latest version and still have the same error.
Please tell me where I’m going wrong and how to proceed?
I am using Global Prime
Thanks Joe
- Gertje
- Trader
- Posts: 1936
- Joined: Mon Dec 12, 2011 1:17 pm
- Location: Middle of the Netherlands
Gridtrading from daily open
Simple manual close.marcoFF » Wed Apr 27, 2016 12:13 pm wrote:Hi Gertje, are you using some kind of trade manager now? Or simply manual close after X grid opened?Gertje » Mon Apr 25, 2016 6:31 pm wrote:This morning I woke up to some 600 banked pis, and -90 floating across 6-7 pairs.
I used the nucleair option to close all out, and be done for the day.
More time to watch RnR in awe....
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Gridtrading from daily open
There is a fix for this in V 1e in post 2.made2ride » Thu Apr 28, 2016 7:43 am wrote:My 1st post and 1st have to say thanks to everybody as I’ve learnt so much in the short time I’ve been here.
I’ve read through and found a reference but sadly no cure to an error message that I’m now getting with the “SendIndividualGridsAtExtremes” setting, which when set at true will only send buy stops correctly, the sell stops are returning alert messages with:
Sell stop: Lots 0.01: Price 1.4622: Bid 1.4548, (trying to place the sell stop above actual price as if sending a sell limit).
GBPUSD Greedy Wotsit OP_SELLSTOP order send failed with error(130): invalid stops
I have zero knowledge of coding but have looked through the EA code and the only thing I found was at line 1171 which read as SendBuyGrid that I changed for SendSellGrid but sadly this has not made any difference.
I have now downloaded the latest version and still have the same error.![]()
Please tell me where I’m going wrong and how to proceed?
I am using Global Prime
Thanks Joe
Add your own fix by copying this over the top of the code block starting at line 1186:
Code: Select all
//Add a new grid at L4
if (SendIndividualGridsAtExtremes)
{
if (BuyStops == 1)
{
price = NormalizeDouble(HighestBuyStopPrice + (DistanceBetweenTrades / factor), Digits);
if (price <= Ask)
price = NormalizeDouble(Ask + (DistanceBetweenTrades / factor), Digits);
SendBuyGrid(Symbol(), OP_BUYSTOP, price, Lot);
}//if (BuyStops == 1)
if (SellStops == 1)
{
price = NormalizeDouble(LowestBuyStopPrice - (DistanceBetweenTrades / factor), Digits);
if (price >= Bid)
price = NormalizeDouble(Bid - (DistanceBetweenTrades / factor), Digits);
SendBuyGrid(Symbol(), OP_SELLSTOP, price, Lot);
}//if (SellStops == 1)
}//if (SendIndividualGridsAtExtremes)
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.
-
made2ride
- Posts: 2
- Joined: Fri Oct 23, 2015 6:49 am
Gridtrading from daily open
wow that was quick Steve
Thanks
Joe
Thanks
Joe
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Gridtrading from daily open
I left a conditional the wrong way around - my usual copy/paste/forgot-to-edit. Fixed in post 2.
Your own fix. Line 1192:
if (price >= Ask)
if (price <= Ask)
You might want to hold on a few minutes though. I am about to add offsetting into the mix.

Your own fix. Line 1192:
if (price >= Ask)
if (price <= Ask)
You might want to hold on a few minutes though. I am about to add offsetting into the mix.
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.
-
marcoFF
- Trader
- Posts: 127
- Joined: Mon Apr 20, 2015 10:50 pm
Gridtrading from daily open
Thanks for that Steve, it's possible to add a trade manager like suggest by Zennor some post ago?SteveHopwood » Thu Apr 28, 2016 9:51 am wrote:There is a fix for this in V 1e in post 2.made2ride » Thu Apr 28, 2016 7:43 am wrote:My 1st post and 1st have to say thanks to everybody as I’ve learnt so much in the short time I’ve been here.
I’ve read through and found a reference but sadly no cure to an error message that I’m now getting with the “SendIndividualGridsAtExtremes” setting, which when set at true will only send buy stops correctly, the sell stops are returning alert messages with:
Sell stop: Lots 0.01: Price 1.4622: Bid 1.4548, (trying to place the sell stop above actual price as if sending a sell limit).
GBPUSD Greedy Wotsit OP_SELLSTOP order send failed with error(130): invalid stops
I have zero knowledge of coding but have looked through the EA code and the only thing I found was at line 1171 which read as SendBuyGrid that I changed for SendSellGrid but sadly this has not made any difference.
I have now downloaded the latest version and still have the same error.![]()
Please tell me where I’m going wrong and how to proceed?
I am using Global Prime
Thanks Joe
Add your own fix by copying this over the top of the code block starting at line 1186:Code: Select all
//Add a new grid at L4 if (SendIndividualGridsAtExtremes) { if (BuyStops == 1) { price = NormalizeDouble(HighestBuyStopPrice + (DistanceBetweenTrades / factor), Digits); if (price <= Ask) price = NormalizeDouble(Ask + (DistanceBetweenTrades / factor), Digits); SendBuyGrid(Symbol(), OP_BUYSTOP, price, Lot); }//if (BuyStops == 1) if (SellStops == 1) { price = NormalizeDouble(LowestBuyStopPrice - (DistanceBetweenTrades / factor), Digits); if (price >= Bid) price = NormalizeDouble(Bid - (DistanceBetweenTrades / factor), Digits); SendBuyGrid(Symbol(), OP_SELLSTOP, price, Lot); }//if (SellStops == 1) }//if (SendIndividualGridsAtExtremes)
Something can put the trade in be/trailing the price grid after grid?
In any case thanks for your effort.
Marco.
Ps. not a bad start for new demo with adx, he like the jpy pair last night..
less 24hr trading..
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.
Gridtrading from daily open
It is not so easy to add offsetting as I thought, and sorting out the bloop I found when copying the code across took longer than it should have done, so I have run out of time. I will finish off later.

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.
Gridtrading from daily open
V 1f is in post 2, with offsetting implemented. I got into a real tangle doing this and guarantee nothing. 1f should go nowhere near a live account yet.
There is an offsetting inputs section just below the ADX inputs:
There is an offsetting inputs section just below the ADX inputs:
- AllowSimpleAndComplexOffsetting: this allows the offsetting of the biggest winner in one group of trades against the biggest loser in the group, and offsetting a number of trades from the winning side of a hedge against the biggest loser on the other side.
- AllowSingleSideOffsets: allows offsetting a group of trades against a loser from the same group of trades. This is not allowed if AllowSimpleAndComplexOffsetting = false
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.
-
zaguy
- Trader
- Posts: 43
- Joined: Wed Feb 03, 2016 7:42 am
Gridtrading from daily open
Once again, a sincere thanks for all the hard work Steve.