Gridtrading from daily open

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.

Gridtrading from daily open

Post by SteveHopwood »

GW V 1a is in post 1, with a fix for a logic bloop that Bruster just pointed out to me. There could be orphaned trades left lying around after a closure.

Dead easy fixes to make yourselves. Go to line 21, which is a blank line. Copy:
#define AllTrades 10 //Tells CloseAllTrades() to close/delete everything

Then go to line 3202 and change:
ShouldTradesBeClosed();

to

CloseAllTrades(AllTrades);

The code block will look like this:

Code: Select all

   if (ForceTradeClosure) 
   {
      CloseAllTrades(AllTrades);
      return;
   }//if (ForceTradeClosure) 
: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

Gridtrading from daily open

Post by Gertje »

Update.
Trading 27 pairs with ADR1 for the grid of 10 trades in both directons.
20 closed today, 7 still left.

Banked 1124 pips, over $100 in cash (demo), that's over 10% of the starting balance of the account. :yahoo:
Greedy Wotsit.png
I love it when a plan comes together! (Hannibal from the A-team )
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

Gridtrading from daily open

Post by Gertje »

kayaktri » Tue Apr 12, 2016 2:57 pm wrote:
Gertje,

I may have not clearly stated my hypothesis in the post above, but my intention was to provide an example where one could have a mechanism to reduce the number of winning trades required to close out a basket in times where price was ranging. As with the current EA, no losses will be taken prior to the basket closing. I am sure there are much smarter people here that can come up with an even better solution than I in this endeavor.

Reading your quote above, I understand you are not bothered by DD, but are bothered with margin. If DD is kept small, margin issues are less likely.

In looking at your example #3 in the quote above, the reason why it requires 9 winners to close the basket is because you are 'dragging' 3 losers against you when you finally head in the direction of the trend. In my example, you would only be 'dragging' one loser against you, hence it would take fewer winners to close out your basket. The current EA holds onto the DD until the basket is closed, and my example does the same. The only difference would be how many losing trades you carry in the basket.

Thank you for your consideration, and I will let this go unless further interest arises by you. I appreciate your contribution.
Kayaktri,

If you can try this manually on demo and proof it's worth while, everybody here will follow you like a dog follows the sheperd.
Point is, how to automate it.

Of course I thought of ways to reduce DD, but the thing is that nobody knows which way the market turns.
User avatar
krzysiekqq2
Trader
Posts: 69
Joined: Sun Oct 11, 2015 11:59 am
Location: Gdynia, town at Baltic sea cost

Gridtrading from daily open

Post by krzysiekqq2 »

Hi, I just want to share my results with GW confirming Gertje results. I use local ECN broker and GW is run on Demo. I modified GW to add Global profit automaticly calculated based on ATR. Best results today were with Global Profit set 0.4ATR, 1D, 10D Period with lowest DD, I run 6 pairs.
Thinking to start on real account next week.
Cheers,
Krzysiek
You do not have the required permissions to view the files attached to this post.
Maximilian
Trader
Posts: 150
Joined: Sat Sep 06, 2014 2:43 pm

Gridtrading from daily open

Post by Maximilian »

krzysiekqq2 » Tue Apr 12, 2016 6:03 pm wrote:Hi, I just want to share my results with GW confirming Gertje results. I use local ECN broker and GW is run on Demo. I modified GW to add Global profit automaticly calculated based on ATR. Best results today were with Global Profit set 0.4ATR, 1D, 10D Period with lowest DD, I run 6 pairs.
Thinking to start on real account next week.
Cheers,
Krzysiek
Do you mind sharing your mod?
:good:
Cheers, Max
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.

Gridtrading from daily open

Post by SteveHopwood »

Maximilian » Tue Apr 12, 2016 7:25 pm wrote: Do you mind sharing your mod?
:good:
Cheers, Max
I am going to intervene here and ask krzysiekqq2 to do so in a separate thread should he chose to do share his mod.

Threads become confused very quickly if different people are uploading different versions of an EA.

krzysiekqq2, should you wish to start a new thread with your version, I will link it in my post 1 edit so that it is not ignored. Send me a pm with a link should you decide to do so.

: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.

Gridtrading from daily open

Post by SteveHopwood »

V 1b is in post 1. Adds to the earlier fix.

I was about to pour myself an extra libation (boy o boy but I have been celebrating since closing down those HGBnG trades) and the thought popped into my mind that I had left something out after Bruster pointed out the logic bloop I fixed earlier. Wonderful thingy the mind, when left to do its own stuff without interference from a lunatic.

Making fixes yourselves? Good for you. I thoroughly approve. :clap: :clap: :clap: :clap: Not making your own fixes yet? Booooooooooooooo

Copy this over the top of line 1711:

Code: Select all

         if (OrderType() != type) 
            if (type != AllTrades)
               continue;
Those of you making these minor fixes for yourselves will be starting to get a feel for this coding business and might even understand the meaning of the code. Feel free to ask if not. Enjoy yourselves. You cannot do any harm.

: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.
Maximilian
Trader
Posts: 150
Joined: Sat Sep 06, 2014 2:43 pm

Gridtrading from daily open

Post by Maximilian »

SteveHopwood » Tue Apr 12, 2016 7:54 pm wrote:
Maximilian » Tue Apr 12, 2016 7:25 pm wrote: Do you mind sharing your mod?
:good:
Cheers, Max
I am going to intervene here and ask krzysiekqq2 to do so in a separate thread should he chose to do share his mod.

Threads become confused very quickly if different people are uploading different versions of an EA.

krzysiekqq2, should you wish to start a new thread with your version, I will link it in my post 1 edit so that it is not ignored. Send me a pm with a link should you decide to do so.

:xm:
:good:
kayaktri
Posts: 7
Joined: Mon Apr 29, 2013 4:07 am

Gridtrading from daily open

Post by kayaktri »

If you can try this manually on demo and prove it's worth while....



Gertje,

Sounds Good,

Lets let GW run on its current trajectory and then we can revisit this aspect later if necessary.

Thank you
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.

Gridtrading from daily open

Post by SteveHopwood »

pipstar » Tue Apr 12, 2016 9:54 pm wrote:
Hi Gertje,

Which of your previously posted sets is the set ADR1, please? If it has not been previously posted, please post it here.
You wouldn't care to do some thinking for yourself, would you? Idiots do not tend to do well when trading Forex. Clearly you are a dimwit, and your best interests are served by following something less financially dangerous.

Like betting on Newt races.

: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.
Post Reply

Return to “Automated trading systems”