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

Gridtrading from daily open
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4666
Page 23 of 37
Author:  Zennor [ Thu Apr 14, 2016 6:46 pm ]
Post subject:  Gridtrading from daily open

Gertje » Thu Apr 14, 2016 6:44 pm wrote:
SteveHopwood » Thu Apr 14, 2016 4:36 pm wrote:V 1c is in post 1.

Scroll down to the Atr inputs. I have added:
  • MinimumAtrToAllowTrading: GW will not trade if the atr is less than this figure. Default is 100 on the 20 D1 atr.
  • The ability to use atr to calculate the global take profit. I am assuming the inputs are obvious.
:xm:
Thanks Steve,

2 really usefull additions!
:hi:
What Gertje said... :hi:

Nice one and thanks Steve, just wondering when you are going to implement the "Make a cup of Tea" function, seems to do everything else.. :yahoo:
Author:  Peepaws [ Thu Apr 14, 2016 6:51 pm ]
Post subject:  Gridtrading from daily open

Perhaps an option for coffee for us non-tea drinkers! Or beer! :party:
Author:  heart1010 [ Thu Apr 14, 2016 9:20 pm ]
Post subject:  Gridtrading from daily open

Bruster400 » Thu Apr 14, 2016 5:18 pm wrote:All,

I'm putting way too much thought into this (and not getting much work done!). I figure I can work at weekends :smile:

Anyway, there's been a general theme so far that pairs with higher ADR are better because they move more. I've just been looking at this and that's only one part of the story. We want pairs that are moving a lot in one day, yes, but ideally we also want them to be trending strongly in order to dig us out of DD if we get hit with some hedged trades. On the trending side, ADX is often used to indicate the trend strength.

So with this in mind should we be looking to trade those pairs that have high ADR AND high ADX? Combining the two might be an interesting filter (if you're looking for one!).

It's just an idea anyway, but since I'm currently learning MQL4 I thought I'd share an indicator I've written for this. Please take "currently learning" into account with your feedback - I already know it's not up to the standards of real coders. I've positioned it so that if you have lots of charts open small, you can still see it. I've also set a toggle on the text - but leave it on initially to make sure that it's picking up the right values for your feed.

I'll admit upfront that I have no evidence of this improving the results of this EA but it will help anyone that wants to test it. Just thought I'd share.
Thanks for that... two small things I noticed. You use two times "———ATR_SETTINGS————" in extern settings area and two times "wingdings 3" instead of "wingdings" in the code.
Author:  vsmakkal [ Fri Apr 15, 2016 1:32 am ]
Post subject:  Gridtrading from daily open

SteveHopwood » Fri Apr 15, 2016 12:36 am wrote:V 1c is in post 1.

Scroll down to the Atr inputs. I have added:
  • MinimumAtrToAllowTrading: GW will not trade if the atr is less than this figure. Default is 100 on the 20 D1 atr.
  • The ability to use atr to calculate the global take profit. I am assuming the inputs are obvious.
:xm:
Fantabulous!! You are a champ!

Thanks Steve

Sara
Author:  Bruster400 [ Fri Apr 15, 2016 6:27 am ]
Post subject:  Gridtrading from daily open

heart1010 » Thu Apr 14, 2016 10:20 pm wrote:
Bruster400 » Thu Apr 14, 2016 5:18 pm wrote:I thought I'd share an indicator I've written for this. Please take "currently learning" into account with your feedback
Thanks for that... two small things I noticed. You use two times "———ATR_SETTINGS————" in extern settings area and two times "wingdings 3" instead of "wingdings" in the code.
Thanks for the feedback - Good spot. I've corrected the input title, updated in original post. wingdings 3 is the font I'm using for the separate ATR and ADX arrows. There are plenty to choose from beyond just wingdings - see attached.
webdings-wingdings-character-map.png
Gertji / Steve et al - if this is too "off thread" feel free to delete - just wanted to share the above as I found it useful.
Author:  heart1010 [ Fri Apr 15, 2016 7:29 am ]
Post subject:  Gridtrading from daily open

ok, I didn't have that "wingdings 3" on my pc... got it now :good:
Author:  marcoFF [ Fri Apr 15, 2016 8:19 am ]
Post subject:  Gridtrading from daily open

SteveHopwood » Thu Apr 14, 2016 5:36 pm wrote:V 1c is in post 1.

Scroll down to the Atr inputs. I have added:
  • MinimumAtrToAllowTrading: GW will not trade if the atr is less than this figure. Default is 100 on the 20 D1 atr.
  • The ability to use atr to calculate the global take profit. I am assuming the inputs are obvious.
:xm:
Thanks Steve!
That is the situation this morning, 0.03lots/50%adr/50pipsprofit
tradereport1504.jpg
Author:  Gertje [ Fri Apr 15, 2016 9:13 am ]
Post subject:  Gridtrading from daily open

Zennor » Thu Apr 14, 2016 2:53 pm wrote:OK DD, this is the biggest killer of this system.
I gave it some thoughts as well, and have some ideas.
No clue if it can be automated at all, I can't code even if my life would depend on it.
[I would learn how to then :smile: ]

There are several possibilities, taking the standard setting of a grid spaced at 1/10ADR and 1/2ADR TP;

- price goes one way, triggers 3 and TP
- price goes one way, triggers 1 and reverses. Needs 5 countertrades to TP
- price goes one way, triggers 2 and reverses. Needs 7 countertrades to TP
- price does several of the above, weaving a DD-web

When taking a 200pip ADR for example; what if we;

- set for the first trade a SL at the DO, and add the lost pips to the TP when triggered. The loss will be 20 pips. When price takes off after SL, TP will be 100+20=120. Price needs to travel an additional 7 pips [the lost 20/ 3 trades] to TP. It takes less than half a level to accomplish this instead of 2 levels in the current situation.

- set for the first 2 trades a SL at the DO, and add the lost pips to the TP when triggered. The loss will be 20+40=60 pips. When price takes off after the SL, TP will be 100+60=160. Price needs to travel an additional 20 pips [the lost 60/ 3 trades] to TP. It takes just 1 extra level to accomplish this instead of 4 in the current situation.

- set BE when 3 trades in the same direction are triggered. BE will be on the 2nd trade, a whole level away. Price either goes to TP within the next level or the trades close at BE.

Doing it this way avoids huge baskets of hedged trades, and makes it easier for the basket to reach TP.
What to do after BE is triggered, I'm not sure.
Maybe just quit the pair for the day and rely on the straight runners to do the heavy lifting.

Whatever happens, we will never have hedged trades anymore.

Of course there are scenario's where any pair can throw a curveball, but what do you guys and galls think about the general idea?
Author:  Bruster400 [ Fri Apr 15, 2016 10:23 am ]
Post subject:  Gridtrading from daily open

Gertje » Fri Apr 15, 2016 10:13 am wrote:
Zennor » Thu Apr 14, 2016 2:53 pm wrote:OK DD, this is the biggest killer of this system.
Of course there are scenario's where any pair can throw a curveball, but what do you guys and galls think about the general idea?
Gertji,

Interesting ideas - worth trying. I think the stops and BE are going to be too tight to price and will be hit more often than not thought. You're right, it will filter out those days that don't move away sharply but it's hard to say whether it would add overall.

There are loads of ways to refine how the grid trades once it's open but I really think that rinse and repeat is the best place to start when looking for a way to do this. Need to see if we can get that working and then adapt from there?
Author:  marcoFF [ Fri Apr 15, 2016 10:39 am ]
Post subject:  Gridtrading from daily open

After 11 days GW closed the GN trades, but i dont understand why he closed at BE.
Any idea?
be.png
All times are UTC Page 23 of 37