jiva34's BB Stop auto-trader

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.

Re: jiva34's BB Stop auto-trader

Post by SteveHopwood »

Gamma_gallus wrote: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
Cheers. This reminds me I need to put the indi in post 1.

I won't use this one for now, as it has a different name to the one used by the EA, but I will update the code sometime. In the meantime, anyone who wants to use this version in this post, can copy it over the top of the old one, keeping the same old name.

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

gaheitman wrote: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
Oops. Fixed the 'return' thingy straight off - post 1 as usual.

The rest I will look at later - going out now.

Cheers Geroge - you really are fantastic.

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

Latest update in post 1. In light of George's recent comments, this is an essential re-download if you use All/averages.

George, the AA reading does indeed usually lie within TrendDetectionModule(). I removed the module from this EA because I thought it would not be needed. I have left it for now in ReadIndicatorValues() but moved the use of the data to LookForTradingOpportunities(), where it probably belongs.

If you see anything in TrendDetectionModule() that can be improved/streamlined, please sing out. The better this code is, the more reliable will be my shell code for myself and for others using it.

: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.
peterke
Trader
Posts: 56
Joined: Wed Nov 16, 2011 9:17 am

Re: jiva34's BB Stop auto-trader

Post by peterke »

heres a couple more.
rgds

Peter

SteveHopwood wrote:
Gamma_gallus wrote: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
Cheers. This reminds me I need to put the indi in post 1.

I won't use this one for now, as it has a different name to the one used by the EA, but I will update the code sometime. In the meantime, anyone who wants to use this version in this post, can copy it over the top of the old one, keeping the same old name.

:D
You do not have the required permissions to view the files attached to this post.
User avatar
jiva34
Trader
Posts: 49
Joined: Tue Nov 15, 2011 1:26 pm

Re: jiva34's BB Stop auto-trader

Post by jiva34 »

Woohooo looks like you've got it....
it's trading with the aa trend.
Fantastic..
I want to be able to code like you do...
I coded my first script today.... :D
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:Woohooo looks like you've got it....
it's trading with the aa trend.
Fantastic..
I want to be able to code like you do...
I coded my first script today.... :D
GoForItGoForItGoForItGoForItGoForItGoForItGoForItGoForItGoForItGoForIt

My first ever mq4 coding was adapting a trade-sending script. Most of those that I use still have an appreciation of the original authour.

We all start somewhere...............................

And, there are a few people here to help you.

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

Khalaad wrote:
Have fun. Let's see if this baby can sing.
Steve,

It sang quite well today, the first day I have live traded (manual entries) the EA and its mirror off Empty4 and MultiCharts -- DDE data fed for tick chart. :idea:

The mirror EA is the one where I changed all OP_BUY to OP_SELL, and all OP_SELL to OP_BUY! Because , when I sat down to trade EURUSD was mostly ranging, and I thought it advisable to trade accordingly and SHORT only.

A small beginning, and an eventual hands-off trading journey ahead.

Heartfelt thanks to Jiva and you.

Khalid
Fantastic. That is a brilliant start.

I nearly took a live GC trade today but chickened out because I was a bar late. Shame, cos the move lasted a decent number of pips. Ah well, there is always the future...................

I second your heartfelt thanks to jiva. This is looking really good.

: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.
greyfox
Posts: 3
Joined: Wed Nov 16, 2011 2:55 pm
Location: Western New York, USA

Re: jiva34's BB Stop auto-trader

Post by greyfox »

I am running the latest version OOTB, loaded All Averages v2.2, changed Crim is ECN to true. It's not taking any trades. Last version was trading like a tart, OOTB. Anyone have a .set file that's working for them? Would like to get this puppy running so I can play with it. I am running it on EU tried 1M and 5M.
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 »

greyfox wrote:I am running the latest version OOTB, loaded All Averages v2.2, changed Crim is ECN to true. It's not taking any trades. Last version was trading like a tart, OOTB. Anyone have a .set file that's working for them? Would like to get this puppy running so I can play with it. I am running it on EU tried 1M and 5M.
Make sure you still have AA v.2.1 loaded. The bot works with that one.

: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
hiredwhip
Trader
Posts: 90
Joined: Tue Nov 15, 2011 7:36 pm
Location: Mountains, East Coast USA

Re: jiva34's BB Stop auto-trader

Post by hiredwhip »

greyfox wrote:I am running the latest version OOTB, loaded All Averages v2.2, changed Crim is ECN to true. It's not taking any trades. Last version was trading like a tart, OOTB. Anyone have a .set file that's working for them? Would like to get this puppy running so I can play with it. I am running it on EU tried 1M and 5M.
greyfox,
You need to disable the BB indi and it will work.....Set the AA indi the same as the bot.....As Steve said it needs v2.1 AA indi......

whip
A rainy day is of enormous value to both the farm and the farmer....Stay Hungry. Stay Foolish....
Post Reply

Return to “Automated trading systems”