jiva34's BB Stop auto-trader

Post Reply
laharjaya
Trader
Posts: 45
Joined: Wed Nov 16, 2011 4:11 am

Re: jiva34's BB Stop auto-trader

Post by laharjaya »

thanx Steve for inviting me ..
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: jiva34's BB Stop auto-trader

Post by SteveHopwood »

jiva34 wrote:Hi Steve,
for moving average we want to confirm entry with cross of bb stop, and slope of ma...
We are not looking for a close above or below ma, just slope....
it doesn't appear that the bot is consulting with aa.....
http://img198.imageshack.us/img198/6971/oc3.png
Latest update in post 1.

I uploaded the code with AA turned off by default - no idea why. It is turned on now and there is some screen feedback to show if it is turned off.

Sing out if it still does not work, because that means there is a hole in the code. I am fairly sure that it worked in backtesting to check the code.

: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: jiva34's BB Stop auto-trader

Post by SteveHopwood »

Sorry. There was a bloop in the AA code. Fixed now, I think.

Update in post 1.

: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
jiva34
Trader
Posts: 49
Joined: Tue Nov 15, 2011 1:26 pm

Re: jiva34's BB Stop auto-trader

Post by jiva34 »

SteveHopwood wrote:Sorry. There was a bloop in the AA code. Fixed now, I think.

Update in post 1.

:D
chomping at the bit here...
to get it going..
the previous upgraded file was still not working, will test this latest upgrade.
:ugeek:
User avatar
jiva34
Trader
Posts: 49
Joined: Tue Nov 15, 2011 1:26 pm

Re: jiva34's BB Stop auto-trader

Post by jiva34 »

needs something... not opening and closing properly...
http://img841.imageshack.us/img841/2811/oc7.png
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: jiva34's BB Stop auto-trader

Post by SteveHopwood »

This could easily be me mis-understanding something.

Do me a favour, please, and spell out your trade exit rules in one-syllable words. If you can make them 3-letter words as well, that would be even better. :mrgreen:

Hey, tell you what. When the damn thing does work properly, it is awesome. I think we owe you a few drinks.

: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
jiva34
Trader
Posts: 49
Joined: Tue Nov 15, 2011 1:26 pm

Re: jiva34's BB Stop auto-trader

Post by jiva34 »

SteveHopwood wrote:This could easily be me mis-understanding something.

Do me a favour, please, and spell out your trade exit rules in one-syllable words. If you can make them 3-letter words as well, that would be even better. :mrgreen:

Hey, tell you what. When the damn thing does work properly, it is awesome. I think we owe you a few drinks.

:D
ha ha, noticed you were careful not to say 4 letter words.... :P

Enter long at open 2nd candle after a close above bb stop and aa is up
Enter short at open 2nd candle after a close below bb stop and aa is down

exit long at open 2nd candle after close below bb stop
exit short at open 2nd candle after close above bbstop
(or other options which are available in the shell).
User avatar
jiva34
Trader
Posts: 49
Joined: Tue Nov 15, 2011 1:26 pm

Re: jiva34's BB Stop auto-trader

Post by jiva34 »

jiva34 wrote:
SteveHopwood wrote:This could easily be me mis-understanding something.

Do me a favour, please, and spell out your trade exit rules in one-syllable words. If you can make them 3-letter words as well, that would be even better. :mrgreen:

Hey, tell you what. When the damn thing does work properly, it is awesome. I think we owe you a few drinks.

:D
ha ha, noticed you were careful not to say 4 letter words.... :P

Enter long at open 2nd candle after a close above bb stop and aa is up
Enter short at open 2nd candle after a close below bb stop and aa is down

exit long at open 2nd candle after close below bb stop
exit short at open 2nd candle after close above bbstop
(or other options which are available in the shell).
I changed the wording a bit since I posted this at first...
User avatar
Gamma_gallus
Trader
Posts: 118
Joined: Wed Nov 16, 2011 2:03 pm
Location: France

Re: jiva34's BB Stop auto-trader

Post by Gamma_gallus »

Regarding the Indi All Averages, I've found somewhere a newer version with 2 new methods (from the same original author), no clue if that could be useful for you, but better to share it.

The 2 new methods are :

// MA_Method=18: TriMAgen - Triangular Moving Average generalized by J.Ehlers
// MA_Method=19: VWMA - Volume Weighted Moving Average

Thx
Gamma
You do not have the required permissions to view the files attached to this post.
User avatar
gaheitman
Trader
Posts: 655
Joined: Tue Nov 15, 2011 10:55 pm
Location: Richmond, VA, US

Re: jiva34's BB Stop auto-trader

Post by gaheitman »

Hey Steve,

You've probably already seen this, but I have a couple of observations.

In ReadIndicatorValues() you have a "return" statement after testing that SlowUpTrendSignal > -1, which skips the AllAverages test later.

More importantly, perhaps, the exit criteria doesn't use the AllAverages test, so it is possible that even though you have an opposite cross of BBands, if the AA slope doesn't change you set the direction to "none" and then your test in start() doesn't close the open trade.

Does it make sense to add an option to your standard TrendDetectionModule() for UseAATrendDetection() and then handle like you do with the other trend detection options? I'm not sure the AllAverages test has been proven as well as the others in your template, but it might simplify matters. The faster option is probably to just add an AATrend variable and set that separately, but I'm always trying to think in terms of code reuse.

George
Post Reply

Return to “Automated trading systems”