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

Gridtrading from daily open
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4666
Page 2 of 37
Author:  SteveHopwood [ Mon Mar 28, 2016 6:32 pm ]
Post subject:  Gridtrading from daily open

bazze » Mon Mar 28, 2016 6:26 pm wrote:Steve, I know that you don't like question about the time settings :twisted:
(So, why the heck do I dare to ask???????? :oops: :shock: )
But, here it goes :shock: ...I see that your DO is 20.00 London time.
My GMT is +1, so I shall set my DO from 21.00, or? (I'm using GP)
I neither know nor care. Look at the damn clock when GP opens its next D1 candle and work from there.
Author:  bazze [ Mon Mar 28, 2016 6:39 pm ]
Post subject:  Gridtrading from daily open

A really good answer, thanks :good: ...
Author:  Gertje [ Mon Mar 28, 2016 8:33 pm ]
Post subject:  Gridtrading from daily open

bazze » Mon Mar 28, 2016 6:26 pm wrote:Steve, I know that you don't like question about the time settings :twisted:
(So, why the heck do I dare to ask???????? :oops: :shock: )
But, here it goes :shock: ...I see that your DO is 20.00 London time.
My GMT is +1, so I shall set my DO from 21.00, or? (I'm using GP)
I'm in Holland, GMT +1, and am using 23:00 since summer daylightsaving came into effect last weekend.
Just watch rollover tonight and be sure..... :smile:
Author:  SteveHopwood [ Mon Mar 28, 2016 8:59 pm ]
Post subject:  Gridtrading from daily open

Hehe. I understand why I sowed the seeds of confusion for bazze. 20.00 is 8 pm, not 10 pm, so my input should have been "+22.30,-22.32".

Never did like the 24 hour clock. :lol:

:xm:
Author:  The_Snowman [ Mon Mar 28, 2016 9:08 pm ]
Post subject:  Gridtrading from daily open

bazze » Tue Mar 29, 2016 4:39 am wrote:A really good answer, thanks :good: ...
Here's is some tips just for you: :twisted:

1. Don't go to a butcher for brain surgery

2. Don't ask on SHF about time

3. Go to http://www.timeanddate.com/

4. Set up a personal clock

5. Be sure to include Reykjavik --> it is GMT 365 days a year

6. Anytime (pun intended) you have the need to know about time, go there

:D
Author:  bazze [ Tue Mar 29, 2016 4:20 am ]
Post subject:  Gridtrading from daily open

Gertje » Mon Mar 28, 2016 9:33 pm wrote: I'm in Holland, GMT +1, and am using 23:00 since summer daylightsaving came into effect last weekend.
Just watch rollover tonight and be sure..... :smile:
Thanks :good: I figured it out after awhile myself...Had to fire up my two braincells :)
Author:  bazze [ Tue Mar 29, 2016 4:22 am ]
Post subject:  Gridtrading from daily open

The_Snowman » Mon Mar 28, 2016 10:08 pm wrote:
Here's is some tips just for you: :twisted:

1. Don't go to a butcher for brain surgery

2. Don't ask on SHF about time

3. Go to http://www.timeanddate.com/

4. Set up a personal clock

5. Be sure to include Reykjavik --> it is GMT 365 days a year

6. Anytime (pun intended) you have the need to know about time, go there

:D
Thank you for the tip :good: But, it's to late to follow tips #1 :shock:
Author:  SteveHopwood [ Tue Mar 29, 2016 9:29 am ]
Post subject:  Gridtrading from daily open

Gertje, I had the same problem with MPBM yesterday - it was calculating the jumping stop but did not close the position when the pips count dropped below the JS.

I had a look at the code - familiar as Paul took most of it from MPTM. The JS feature will only work after breakeven has been set. Also, mpbm was intended for use with baskets of market trades and so would not have deleted the outstanding pendings.

Attached is a version that should delete the pendings as well in the JS function - I have not looked anywhere else. The inputs are already coded for a BE at 100, locking in 20. See if it does the trick. I have it running on my demo, so we will soon know.

:xm:
Author:  Gertje [ Tue Mar 29, 2016 9:37 am ]
Post subject:  Gridtrading from daily open

Thanks Steve,

I _think_ I have figured out some settings for SAPBM, will let you know once the basket reaches one or the other.

If one of the existing trademanagers can handle the jumping and closing/ deleting, no EA is necessary, just a script will suffice for setting the pendings.
Author:  SteveHopwood [ Tue Mar 29, 2016 11:26 am ]
Post subject:  Gridtrading from daily open

I missed out an "=" sign from line 296
if (pass = 1)

should be

if (pass == 1)

:xm:
All times are UTC Page 2 of 37