Bob and Shelley Again

Locked
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: Bob and Shelley Again

Post by SteveHopwood »

Aha. Problem solved.

It is common knowledge that I code my ea's using my shell. This shell caters for strategies that only trade at the open of a new candle and those that trade at every tick with the variable EveryTickMode. When an ea trades only at the start of a new candle, I hide the variable and set it to false.

Someow, BASA latest has this set to 'true'. I will post a fix later. In the meantime, those of you who can (and yes, that really should be all of you by now) find

bool EveryTickMode=true;

and change it to

bool EveryTickMode=false;

then recompile.

:D
fxozgirl wrote:
SteveHopwood wrote:
spotdespot wrote: I can't think of any reason why any Main or Re-entry trade would open part way through a H4 candle - whatever the settings. For me that is the main mystery.
.
If the spread widens beyond MultiplierToDetectStopHunt * AverageSpread, BASA (and any other ea coded from later versions of my shell) will hang up its hat with a "EA suspended during a massive spread event" or some such wording. It will continue to monitor open trades but will not attempt to send new trades until the spread returns to within acceptable bounds.

This all happens within void CheckForSpreadWidening(), so the code to tell BASA that a new candle is not reached at the end of start(). So far as BASA is concerned, it is looking at a new candle even though that candle may be some minutes old.

Shouldn't be a problem, but we can monitor this and change if need be.

:D
Ok, this is interesting...
I too had a GBPNZD trade taken 2 hours into the candle last night, the entry was correct for the start of the candle, just a delayed entry??
Unfortunately this trade due to a spike down in the next candle was stopped out, but if it had been taken at the start of the candle would have closed in a nice profit. Worse, it was my live account :(
gbpnzdh4_291013.png
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
beleidigtebw
Trader
Posts: 12
Joined: Sun Dec 11, 2011 8:31 pm

Re: Bob and Shelley Again

Post by beleidigtebw »

Thank you Steve!
spotdespot
Trader
Posts: 768
Joined: Sun Jan 22, 2012 11:38 pm

Re: Bob and Shelley Again

Post by spotdespot »

EDIT: Scrapped that useless post - missed Steve's somehow - thanks Steve.

Cheers,
Dave.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Re: Bob and Shelley Again

Post by milanese »

:D it was so simple that it could find only a genius like Steve :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: Bob and Shelley Again

Post by SteveHopwood »

I tried to post my last a couple of hours ago. Then the dreaded "Waiting for stevehopwoodforex" message appeared, so I did my usual and wandered off to do something useful. And so ignored the, "Someone else has added a post. What do you want to do?" or whatever the wording is.

Is it only me, or is everyone else here spending half their lives "Waiting for stevehopwoodforex" these days?

Whatever. V 2n with the fix for the EveryTickMode thingy is in post 1. No idea how that crept in. My best guess is that I made the edit in the wrong scite tab - there is an EA out there somewhere that should be trading every tick but is waiting for the open of a new candle. Bugger. :lol:

: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
fxozgirl
Trader
Posts: 1176
Joined: Wed Nov 16, 2011 9:16 am
Location: Melbourne, Australia

Re: Bob and Shelley Again

Post by fxozgirl »

SteveHopwood wrote:I tried to post my last a couple of hours ago. Then the dreaded "Waiting for stevehopwoodforex" message appeared, so I did my usual and wandered off to do something useful. And so ignored the, "Someone else has added a post. What do you want to do?" or whatever the wording is.

Is it only me, or is everyone else here spending half their lives "Waiting for stevehopwoodforex" these days?

Whatever. V 2n with the fix for the EveryTickMode thingy is in post 1. No idea how that crept in. My best guess is that I made the edit in the wrong scite tab - there is an EA out there somewhere that should be trading every tick but is waiting for the open of a new candle. Bugger. :lol:

:D
Brilliant Steve...thanks so much

and yes, SteveHopwoodForex is very slow these days...you may need to look at how much bandwidth the site has/is using? I would suggest it's pretty high due to the large number of attachments uploaded. Usually increasing the bandwidth will solve the problem!
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: Bob and Shelley Again

Post by SteveHopwood »

fxozgirl wrote: and yes, SteveHopwoodForex is very slow these days...you may need to look at how much bandwidth the site has/is using? I would suggest it's pretty high due to the large number of attachments uploaded. Usually increasing the bandwidth will solve the problem!
Hehe. Never confuse my ability to hack together an EA with anything that remotely resembles an understanding of the underlying technology. In the past, when I have stood at the side of the road working out how to change the tire, girls have stopped to help out. :lol:

If mop hadn't stepped in to oversee this site's migration we would probably have lost it. What on earth does "Usually increasing the bandwidth will solve the problem!" mean?

: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
fxozgirl
Trader
Posts: 1176
Joined: Wed Nov 16, 2011 9:16 am
Location: Melbourne, Australia

Re: Bob and Shelley Again

Post by fxozgirl »

SteveHopwood wrote:
fxozgirl wrote: and yes, SteveHopwoodForex is very slow these days...you may need to look at how much bandwidth the site has/is using? I would suggest it's pretty high due to the large number of attachments uploaded. Usually increasing the bandwidth will solve the problem!
Hehe. Never confuse my ability to hack together an EA with anything that remotely resembles an understanding of the underlying technology. In the past, when I have stood at the side of the road working out how to change the tire, girls have stopped to help out. :lol:

If mop hadn't stepped in to oversee this site's migration we would probably have lost it. What on earth does "Usually increasing the bandwidth will solve the problem!" mean?

:D

You are hilarious Steve :lol:
Well, I'm the opposite...can't code an EA for crap, but give me a website to tinker and I'm in my element :lol:

I'll send you a PM so we don't clog up the thread with website stuff :D
forexdj
Trader
Posts: 63
Joined: Fri Mar 22, 2013 4:40 am

Re: Bob and Shelley Again

Post by forexdj »

SteveHopwood wrote:Aha. Problem solved.

It is common knowledge that I code my ea's using my shell. This shell caters for strategies that only trade at the open of a new candle and those that trade at every tick with the variable EveryTickMode. When an ea trades only at the start of a new candle, I hide the variable and set it to false.

Someow, BASA latest has this set to 'true'. I will post a fix later. In the meantime, those of you who can (and yes, that really should be all of you by now) find

bool EveryTickMode=true;

and change it to

bool EveryTickMode=false;

then recompile.

:D
fxozgirl wrote:
SteveHopwood wrote:
spotdespot wrote: I can't think of any reason why any Main or Re-entry trade would open part way through a H4 candle - whatever the settings. For me that is the main mystery.
.
If the spread widens beyond MultiplierToDetectStopHunt * AverageSpread, BASA (and any other ea coded from later versions of my shell) will hang up its hat with a "EA suspended during a massive spread event" or some such wording. It will continue to monitor open trades but will not attempt to send new trades until the spread returns to within acceptable bounds.

This all happens within void CheckForSpreadWidening(), so the code to tell BASA that a new candle is not reached at the end of start(). So far as BASA is concerned, it is looking at a new candle even though that candle may be some minutes old.

Shouldn't be a problem, but we can monitor this and change if need be.

:D
Ok, this is interesting...
I too had a GBPNZD trade taken 2 hours into the candle last night, the entry was correct for the start of the candle, just a delayed entry??
Unfortunately this trade due to a spike down in the next candle was stopped out, but if it had been taken at the start of the candle would have closed in a nice profit. Worse, it was my live account :(
gbpnzdh4_291013.png
Thanks so much Steve for the fix!
Btw all those trades that BASA had opened incorrectly yesterday evening have all closed at SL.
Steve, am enjoying spotting your bloops! :lol: :lol: :lol:
UKIONA VYAELEA JUA VIMEUNDWA!
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: Bob and Shelley Again

Post by SteveHopwood »

forexdj wrote:Steve, am enjoying spotting your bloops! :lol: :lol: :lol:
Most people do. :lol:
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.
Locked

Return to “Automated trading systems”