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 »

fxozgirl wrote:At the risk of copping a walloping for this time/day related question from Steve, FXDayTrader can you please clarify what settings are required for a Saturday close to trading. Down here in Oz, trading stops at 7am (AEST) Saturday morning...looks like this isn't accounted for in your settings

ie. Monday=1, Tuesday=2, I'm assuming Wednesday=3, Thursday=4, then Friday=5, Sunday=6

Apologies if I am being daft and remember it is Monday morning here ;)
StopTradingDay The day the market closes in your timezone (5=friday, 1=monday, 2=tuesday,..., 6=sunday), up to 99.9% you do not have to change that
Hehe. You will not ever cop a walloping from me.

Best guess is the relevant answer to your question is 6 as crims with Sat and Sun candles will have both as 6. Not certain, mind. :lol:

FXDayTrader, welcome to my world. Guess why I long ago refused to get involved with time zone stuff and absolutely insist that everyone using my bots use their own local time?

: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
fxdaytrader
Trader
Posts: 190
Joined: Sun Jun 10, 2012 7:03 am
Location: Poon-Town (germany, se-asia, se-europe) ...

Re: Bob and Shelley Again

Post by fxdaytrader »

What the fu** - > It seems I just arrived in your world @ Steve :mrgreen:

my explanation was/is wrong: "default: 5=friday (1=monday,2=tuesday,...,6=sunday)"

sunday is =0, so saturday is=6 ...

hours are local time, please consider that when running the ea on vps.

I am sorry, but, hey, I was wondering myself "what, marc is simple coding but no bloops?".

@Steve: I am sorry, could you replace the line (310):
"extern string tra3="default: 5=friday (1=monday,2=tuesday,...,6=sunday)";"

with

Code: Select all

extern string  tra3="default: 5=friday (0=sunday,1=monday,2=tuesday,...,6=saturday)";
I am sorry and will pay you some drinks (if we should meet somewhen, but who knows?) :P
trader689
Trader
Posts: 674
Joined: Thu Nov 17, 2011 12:53 am

Re: Bob and Shelley Again

Post by trader689 »

have loaded v1z, lets see what this week brings
Last edited by trader689 on Mon Sep 30, 2013 2:00 am, edited 1 time in total.
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 »

fxdaytrader wrote:What the fu** - > It seems I just arrived in your world @ Steve :mrgreen:

my explanation was/is wrong: "default: 5=friday (1=monday,2=tuesday,...,6=sunday)"

sunday is =0, so saturday is=6 ...

hours are local time, please consider that when running the ea on vps.

I am sorry, but, hey, I was wondering myself "what, marc is simple coding but no bloops?".

@Steve: I am sorry, could you replace the line (310):
"extern string tra3="default: 5=friday (1=monday,2=tuesday,...,6=sunday)";"

with

Code: Select all

extern string  tra3="default: 5=friday (0=sunday,1=monday,2=tuesday,...,6=saturday)";
I am sorry and will pay you some drinks (if we should meet somewhen, but who knows?) :P
thanks for checking fxdaytrader...I thought I was going a bit silly :lol:
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 »

Not sure if anyone else has noticed but v1z is not moving to breakeven and the jumping stops are not working either.
This has occurred on all my demo's and live accounts.
Please see screenshots below from my live GP account where I have just manually moved my stops on 3 trades which hit +30 overnight.
I am changing back to 1y for now
basa_trades_manually_moved_to_breakeven_131001.png
eurusdh4_131001.png
eurcadh4_131001.png
gbpjpyh4_131001.png
You do not have the required permissions to view the files attached to this post.
User avatar
fxdaytrader
Trader
Posts: 190
Joined: Sun Jun 10, 2012 7:03 am
Location: Poon-Town (germany, se-asia, se-europe) ...

Re: Bob and Shelley Again

Post by fxdaytrader »

fxozgirl wrote:Not sure if anyone else has noticed but v1z is not moving to breakeven and the jumping stops are not working either.

Code: Select all

if (OrderProfit() > 0)
         if (!FirstTime) 
            if (PreviousOpenTrades == 1)             
               TradeManagementModule();

FirstTime is never =false I think (countopentrades(): static bool FirstTime = true; ), so the trademanagementmodule will not be called ?

:?:

edit:
Steve, what do you think about giving stacktrades a different magicnumber?
Maybe it would be easier to filter and (if running on different pairs) summarize all stacktrades (= larger basket). ?
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:Not sure if anyone else has noticed but v1z is not moving to breakeven and the jumping stops are not working either.
This has occurred on all my demo's and live accounts.
Please see screenshots below from my live GP account where I have just manually moved my stops on 3 trades which hit +30 overnight.
I am changing back to 1y for now
basa_trades_manually_moved_to_breakeven_131001.png
eurusdh4_131001.png
eurcadh4_131001.png
gbpjpyh4_131001.png
Nice one Shelley. I had not noticed.

Telling an EA on restart where it left off can be a highly complex thingy, and I left a step out of 1z.

Go to the very bottom of void CountOpenTrades() and add this line of code:
FirstTime = false;

then recompile.

Doesn't matter whether if you understand or not, just do it. It works.

I will put up a full version fix in the morning but my coding machine is turned off and takes about 10 minutes to wake up and I am going to bed soon. I have worked out the fix from my trading machine but have learned that only chaos ensues if I try to post fully-fixed versions from here. I frequently forget to download fixes, and so am adding a fix to a previously faulty version............................................

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

Post by SteveHopwood »

fxdaytrader wrote:
fxozgirl wrote:Not sure if anyone else has noticed but v1z is not moving to breakeven and the jumping stops are not working either.

Code: Select all

if (OrderProfit() > 0)
         if (!FirstTime) 
            if (PreviousOpenTrades == 1)             
               TradeManagementModule();

FirstTime is never =false I think (countopentrades(): static bool FirstTime = true; ), so the trademanagementmodule will not be called ?

:?:
Thanks. Yours and my posts must have waved, "Ehup" to each other as they passed in the ether. Dead right, as usual.
edit:
Steve, what do you think about giving stacktrades a different magicnumber?
Maybe it would be easier to filter and (if running on different pairs) summarize all stacktrades (= larger basket). ?
You think this stuff is not complicated enough already? Why not make it harder still? :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
fxdaytrader
Trader
Posts: 190
Joined: Sun Jun 10, 2012 7:03 am
Location: Poon-Town (germany, se-asia, se-europe) ...

Re: Bob and Shelley Again

Post by fxdaytrader »

attached the version with the fix, replaced '}//End void CountOpenTrades();' with

Code: Select all

FirstTime = false;
}//End void CountOpenTrades();
Further I fixed my moronic mistake (the hint-text for the stoptradingday) ... ;)
You do not have the required permissions to view the files attached to this post.
plateman
Trader
Posts: 43
Joined: Wed Nov 16, 2011 9:25 am

Re: Bob and Shelley Again

Post by plateman »

My preferred way of running BASA is to have an extra blank chart window open, one half is iexposure tickets which gives a good at a glance summary of open positions, the other half is the full version of MPTM managing all trades (a proven bombproof trade manager), all trade management options in the actual EA are obviously turned off.
Locked

Return to “Automated trading systems”