Gday: a D1 Stochastic OB/OS trading robot

Locked
garyfritz

Re: Gday: a D1 Stochastic OB/OS trading robot

Post by garyfritz »

Yes, if my tests are right, the average trade size on this is actually fairly reasonable -- 10-30 pip range. So we might be able to run it on shorter timeframes and add to the trade list.
RockyJ
Trader
Posts: 84
Joined: Sun Dec 18, 2011 3:44 am
Location: Denver Colorado

Re: Gday: a D1 Stochastic OB/OS trading robot

Post by RockyJ »

p.s. great work on fixing the jumping stop issue... ... so much brain power around here.. 8-)
It's impressive to see.
1of3
Posts: 4
Joined: Mon Nov 21, 2011 1:36 pm

Re: Gday: a D1 Stochastic OB/OS trading robot

Post by 1of3 »

Steve, in the JumpingStopLoss() function you have:

Code: Select all

 [Line1] if (NewStop - OrderStopLoss() >= Point) modify = true;//George again. What a guy
[Line2] modify = true;

for the BUY and

Code: Select all

 [Line1] if (OrderStopLoss() - NewStop >= Point || OrderStopLoss() == 0) modify = true;//George again. What a guy   
[Line2]  modify = true; 
for the SELL.

Does the second line of code not make the first line of code moot or have I misunderstood what it's doing?.
User avatar
alex_forex
Trader
Posts: 438
Joined: Tue Nov 15, 2011 5:46 pm
Location: F R A N C E

Re: Gday: a D1 Stochastic OB/OS trading robot

Post by alex_forex »

My results for today (not all the good pairs were active tonight so let's see on the next start)

12.21.2011 14:21 USDCAD Sell 0.03 1.02919 0.97839 1.02939 1.02954 -1.5 -0.44 14h 21m

12.21.2011 13:23 AUDUSD Buy 0.03 1.01194 1.05784 1.00674 1.01194 52.0 15.60 13h 23m

Regards
Alex
User avatar
gaheitman
Trader
Posts: 655
Joined: Tue Nov 15, 2011 10:55 pm
Location: Richmond, VA, US

Re: Gday: a D1 Stochastic OB/OS trading robot

Post by gaheitman »

1of3 wrote:Steve, in the JumpingStopLoss() function you have:

Code: Select all

 [Line1] if (NewStop - OrderStopLoss() >= Point) modify = true;//George again. What a guy
[Line2] modify = true;

for the BUY and

Code: Select all

 [Line1] if (OrderStopLoss() - NewStop >= Point || OrderStopLoss() == 0) modify = true;//George again. What a guy   
[Line2]  modify = true; 
for the SELL.

Does the second line of code not make the first line of code moot or have I misunderstood what it's doing?.
Yep, the second line shouldn't be there. I suspect the "modify = true" was visually lost on the first line so the second line is supposed to be the action to take if the "if" is true.

Good catch.
User avatar
Gamma_gallus
Trader
Posts: 118
Joined: Wed Nov 16, 2011 2:03 pm
Location: France

Re: Gday: a D1 Stochastic OB/OS trading robot

Post by Gamma_gallus »

Hum I wonder how this puppy would behave if we switch on Hanover for W1 (maybe 1 slope confirmation) :?:

I'll see that in 2012 - well if I do remember ... - Off from trading for 2 weeks now.

I wish you all a Merry Christmas, enjoy the parties :D

Cheers
Gamma
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.

Re: Gday: a D1 Stochastic OB/OS trading robot

Post by SteveHopwood »

1of3 wrote:Steve, in the JumpingStopLoss() function you have:

Code: Select all

 [Line1] if (NewStop - OrderStopLoss() >= Point) modify = true;//George again. What a guy
[Line2] modify = true;

for the BUY and

Code: Select all

 [Line1] if (OrderStopLoss() - NewStop >= Point || OrderStopLoss() == 0) modify = true;//George again. What a guy   
[Line2]  modify = true; 
for the SELL.

Does the second line of code not make the first line of code moot or have I misunderstood what it's doing?.
Nice one. I will fix it when I add the break even profit to JS later on.
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.

Re: Gday: a D1 Stochastic OB/OS trading robot

Post by SteveHopwood »

Latest update in post 1.

TIG ran his slide rule over the trailing stop stuff and made the same changes he made to JS.

I have reintroduced AddBEP to the JS function - I am not sure what I was thinking when I removed it from the shell. Hey ho.

So, BE and JS are now separate. BE is disabled by default; JS is enabled. Strictly speaking, BE is no longer needed but I leave it in for those who want a move to BE but then no further trailing/jumping of the stop.

I intended asking people if we might remove a few of the trend-spotting routines to shorten the inputs list, but I see people already starting to think about how to use the features. I shall leave them all in place.

I would be surprised to find that there is anything else in existing code to stop Gday working as intended - George is a very clever programmer. So, time to think about more flexible, market based sl/tp.

I think we have a few alternatives to play with:
  • 1) Standard manually chosen stop.
    2) My own volatility calculator. This works by working out the average daily pips movement over a set period of days. I prefer this to ATR only because I do not properly understand ATR.
    3) ATR
    4) 'Chandelier' stop as measured/indicated by PSAR.
Any thoughts, gals and galesses?

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

Re: Gday: a D1 Stochastic OB/OS trading robot

Post by SteveHopwood »

For anyone briefly confused, there was a typo my previous post. 'So, BE and JS are not separate. ' should have been, and is now, 'So, BE and JS are now separate. '

:D
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
alex_forex
Trader
Posts: 438
Joined: Tue Nov 15, 2011 5:46 pm
Location: F R A N C E

Re: Gday: a D1 Stochastic OB/OS trading robot

Post by alex_forex »

Thanks for this update ;)

Voting for solution number 2 in TP/SL calculation 8-)

Regards
Alex
SteveHopwood wrote:Latest update in post 1.

TIG ran his slide rule over the trailing stop stuff and made the same changes he made to JS.

I have reintroduced AddBEP to the JS function - I am not sure what I was thinking when I removed it from the shell. Hey ho.

So, BE and JS are now separate. BE is disabled by default; JS is enabled. Strictly speaking, BE is no longer needed but I leave it in for those who want a move to BE but then no further trailing/jumping of the stop.

I intended asking people if we might remove a few of the trend-spotting routines to shorten the inputs list, but I see people already starting to think about how to use the features. I shall leave them all in place.

I would be surprised to find that there is anything else in existing code to stop Gday working as intended - George is a very clever programmer. So, time to think about more flexible, market based sl/tp.

I think we have a few alternatives to play with:
  • 1) Standard manually chosen stop.
    2) My own volatility calculator. This works by working out the average daily pips movement over a set period of days. I prefer this to ATR only because I do not properly understand ATR.
    3) ATR
    4) 'Chandelier' stop as measured/indicated by PSAR.
Any thoughts, gals and galesses?

:D
Locked

Return to “Automated trading systems”