stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Gridtrading from daily open
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4666
Page 19 of 37
Author:  Gertje [ Wed Apr 13, 2016 11:37 am ]
Post subject:  Gridtrading from daily open

krzysiekqq2 » Wed Apr 13, 2016 11:17 am wrote:Hi, do you experiance error 130 on GW? I run ECN account with 5 digits. Could anyone suggest, where I should look to fix it. The Alert window almost does not close.
Cheers,
Krzysztof
Nope.
Use Global Prime and you don't have these.
:jump:
Probably there is a minimal distance between price and [pending]order that the broker set.
Author:  Gertje [ Wed Apr 13, 2016 11:38 am ]
Post subject:  Gridtrading from daily open

Also the input "is ECN broker" is there for a reason, set it to yes when using ECN broker.
Author:  krzysiekqq2 [ Wed Apr 13, 2016 11:59 am ]
Post subject:  Gridtrading from daily open

Also the input "is ECN broker" is there for a reason, set it to yes when using ECN broker.
Thanks, I do not know how I could miss this.

Krzysztof
Author:  Louisetano [ Wed Apr 13, 2016 12:14 pm ]
Post subject:  Gridtrading from daily open

Zennor » Wed Apr 13, 2016 9:51 am wrote:Louisetano did you make any changes to the EA, if so sometimes this can happen, as a rule if I make a single change I save the .set file, remove the EA, replace the EA and then load the saved .set file. This ensures that the EA is running clean. This is especially true when changing time.
Hi Zennor,

No I actually did exactly how you described it. Am running on 8 pairs, some have slightly different setfile due to ADR, but it was only UJ that couldn't wait for tonight to go again ;)
No harm done though, and maybe it's just a one off. I'll let it have a go again at next DO.
Thanks though :hi:
Author:  Gertje [ Wed Apr 13, 2016 12:19 pm ]
Post subject:  Gridtrading from daily open

Louisetano » Wed Apr 13, 2016 12:14 pm wrote:
Zennor » Wed Apr 13, 2016 9:51 am wrote:Louisetano did you make any changes to the EA, if so sometimes this can happen, as a rule if I make a single change I save the .set file, remove the EA, replace the EA and then load the saved .set file. This ensures that the EA is running clean. This is especially true when changing time.
Hi Zennor,

No I actually did exactly how you described it. Am running on 8 pairs, some have slightly different setfile due to ADR, but it was only UJ that couldn't wait for tonight to go again ;)
No harm done though, and maybe it's just a one off. I'll let it have a go again at next DO.
Thanks though :hi:
Funny, I had the exact same thing happening on USDJPY..... :arrrg:
USDJPYH1.png
Author:  Gertje [ Wed Apr 13, 2016 12:30 pm ]
Post subject:  Gridtrading from daily open

I looked into it, and an additional pending triggered at the moment that GW was closing trades.
The now orphan open order made GW add another grid to do it's thing.
Just a case of LUC coming by for coffee I guess.
Author:  Bruster400 [ Wed Apr 13, 2016 1:23 pm ]
Post subject:  Gridtrading from daily open

Gertje » Wed Apr 13, 2016 1:30 pm wrote:I looked into it, and an additional pending triggered at the moment that GW was closing trades.
The now orphan open order made GW add another grid to do it's thing.
Just a case of LUC coming by for coffee I guess.

Hmmmmm I thought the last update made the trade closure routine more robust to prevent orphans. As an additional safety net, the if(SendIndividualGridsAtExtremes) check could be enhanced to also check that the rest of the grid is still in place too so that it doesn't open an extra grid on the basis of just one pending trade if that trade is orphaned. Something like:

line 1157:

Code: Select all

if (SendIndividualGridsAtExtremes)
      {
         if (BuyStops == 1 && MarketBuys >=(GridSize-1))
         {
Author:  Gertje [ Wed Apr 13, 2016 3:42 pm ]
Post subject:  Gridtrading from daily open

Bruster400 » Wed Apr 13, 2016 1:23 pm wrote:
Gertje » Wed Apr 13, 2016 1:30 pm wrote:I looked into it, and an additional pending triggered at the moment that GW was closing trades.
The now orphan open order made GW add another grid to do it's thing.
Just a case of LUC coming by for coffee I guess.
Hmmmmm I thought the last update made the trade closure routine more robust to prevent orphans. As an additional safety net, the if(SendIndividualGridsAtExtremes) check could be enhanced to also check that the rest of the grid is still in place too so that it doesn't open an extra grid on the basis of just one pending trade if that trade is orphaned. Something like:

line 1157:

Code: Select all

if (SendIndividualGridsAtExtremes)
      {
         if (BuyStops == 1 && MarketBuys >=(GridSize-1))
         {
Well, uuuuhmmm, Steve is goanna slap me over the head for this one.....
I was running v1, just updated after I realised this....
:arrrg:
Author:  SteveHopwood [ Wed Apr 13, 2016 6:02 pm ]
Post subject:  Gridtrading from daily open

V 1b is in post 2.

The scenario Gertje described earlier can occur easily, especially if the market is moving quickly. 1b attempts to combat this.

What is not possible is that GW can initiate a basket out of hours. Shudder delicately and contemplate the results of suggesting it is.

:xm:
Author:  Anima999 [ Wed Apr 13, 2016 7:57 pm ]
Post subject:  Gridtrading from daily open

Evening traders,

Thanks Steve for the updates.

An update on my live account:
GJ has hits its 100pip every day this week
EJ and GN trades are still alive from Monday and in a combined DD of ~700pips with a max of 1000 earlier today.

My demo on USDSEK exotic has smashed in +700 today alone but that might be expected as its so volatile. Don't worry, I won't be going live on this without demoing for a very long time first; just an interesting experiment at this stage.

A quick glance through my hindsight-ometre
Ranging currencies are a killer in terms of DD for this so it strikes me that a quick glance at a CSS chart might help in optimising performance. For those who don't know what it is have a look in the HGI forum.
CSS.png
As you can see from the beginning of the week it says EUR and JPY are both parallel heading south (weakening) = ranging
GBP and NZD are both heading up parallel (and at the 0 line) which means both are strengthening = ranging.
Therefore Grannies and eggs ;
GBP strengthening, JPY weakening... GJ has given me the pips.

I chose the currencies that I did by having a look at their trending and ATR over the previous week without looking at the bigger picture. If I had glanced at CSS, which is an amazing tool, I can't help but think I might have chosen different pairs.
So next week I will experiment with manually adding CSS into the GW mix next week.
All times are UTC Page 19 of 37