Balls to the Wall, a 1 minute 1 trade EA

Locked
patman
Trader
Posts: 68
Joined: Sat Dec 10, 2011 1:48 am

Re: Version 1h possible code typo

Post by patman »

SteveHopwood wrote: Nice one Pat. Thanks. I reckon it needs to be
if (TimeHour(TimeLocal() ) == MarketOpenHour && (ObjectGet(LowLineName, OBJPROP_PRICE1) != iLow(NULL, PERIOD_H1, 1) && ObjectGet(LowLineName, OBJPROP_PRICE1) != iHigh(NULL, PERIOD_H1, 1)) && !TradingDone && !DisableLineUse)

otherwise the condition will always fail because it is always != to one of the conditions.

I have made this change and am catching up with the tread before posting the update.

:D
Hi Steve,

OK - I have a problem with AND and OR. I agree with what you said in the post.
But that's not what is in 1j

currently in 1j

Code: Select all

if (TimeHour(TimeLocal() ) == MarketOpenHour && (ObjectGet(LowLineName, OBJPROP_PRICE1) != iLow(NULL, PERIOD_H1, 1) && ObjectGet(LowLineName, OBJPROP_PRICE1) && !TradingDone && !DisableLineUse)

should be?

if (TimeHour(TimeLocal() ) == MarketOpenHour && (ObjectGet(LowLineName, OBJPROP_PRICE1) != iLow(NULL, PERIOD_H1, 1) && (ObjectGet(LowLineName, OBJPROP_PRICE1) != iHigh(NULL, PERIOD_H1, 1)) && !TradingDone && !DisableLineUse)

maybe?

pat
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: Balls to the Wall, a 1 minute 1 trade EA

Post by SteveHopwood »

Yep. Thanks Pat. You might get your AND OR confused, but I create endless confusion with my copy/past/forget-to-edit bloops.

Ik in post 1, with Pat's fix to my balls up of his fix. Those of you who know how, it is obvious from the previous post what needs adding. Can someone check that I have copy-pasted it correctly this time, please. :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.
patman
Trader
Posts: 68
Joined: Sat Dec 10, 2011 1:48 am

Re: Balls to the Wall, a 1 minute 1 trade EA

Post by patman »

Steve

Yea - looks fine now

BTW
I was scrolling through 1j and

bool IsThisPairTradable()

scrolled by. I remembered something i'd seen elsewhere

(Multibob http://www.stevehopwoodforex.com/phpBB3 ... 411#p24411)

the line

Code: Select all

   
if (c1open == 1 && c2open == 1) 

It was suggested to change this to

Code: Select all

   
if (c1open > 1 && c2open > 1) 
Maybe this does not apply here


Apologies if not!


pat
User avatar
cuzgeorge
Trader
Posts: 674
Joined: Mon Mar 05, 2012 10:10 am
Location: Johannesburg, South Africa.

Re: Balls to the Wall, a 1 minute 1 trade EA

Post by cuzgeorge »

Hi all,
just a quick mention of what might be related to the time issue above. i havent updated to k yet, but this position was taken at the wrong time. Settings show my time is set to 11. criminal time is at 14 odd and my local computer time is at 16.
i like the position though, its just not supposed to be at this time.

highlighted are the times mentioned, only my computer time is not showing.
hope this helps, will browse myself a bit later and see if anything shows.
regards
cuz
You do not have the required permissions to view the files attached to this post.
10.X, BMac,Xmeter,Marylin,and CaptsNakedTrading thread coupled with Slowkeys Intraday setup for manual trades.
http://www.stevehopwoodforex.com/phpBB3 ... f=36&t=848
patman
Trader
Posts: 68
Joined: Sat Dec 10, 2011 1:48 am

Re: Balls to the Wall, a 1 minute 1 trade EA

Post by patman »

cuzgeorge wrote:Hi all,
just a quick mention of what might be related to the time issue above. i havent updated to k yet, but this position was taken at the wrong time. Settings show my time is set to 11. criminal time is at 14 odd and my local computer time is at 16.
i like the position though, its just not supposed to be at this time.

highlighted are the times mentioned, only my computer time is not showing.
hope this helps, will browse myself a bit later and see if anything shows.
regards
cuz
Hi cuzgeorge,

My understanding and experience of balls is that (in your case) at 11 on your computer the EA made a horizontal line.
Then at 16 on your computer price went above the line and the indicator went from dark red to light red and Stocastic <50 so BUY
Order is placed
Then line is deleted and EA is doing "bugger all" until 11 tomorrow

At least that's what I think

pat
User avatar
wolfeman
Trader
Posts: 143
Joined: Thu Nov 17, 2011 6:15 am
Location: Slumming it in sunny California

Re: Balls to the Wall, a 1 minute 1 trade EA

Post by wolfeman »

hi george, it could be I missed something, but your chart comments say "24 Hr trading". Steve is gonna bitch-slap you for that. :lol:

cuzgeorge wrote:Hi all,
just a quick mention of what might be related to the time issue above. i havent updated to k yet, but this position was taken at the wrong time. Settings show my time is set to 11. criminal time is at 14 odd and my local computer time is at 16.
i like the position though, its just not supposed to be at this time.

highlighted are the times mentioned, only my computer time is not showing.
hope this helps, will browse myself a bit later and see if anything shows.
regards
cuz
User avatar
cuzgeorge
Trader
Posts: 674
Joined: Mon Mar 05, 2012 10:10 am
Location: Johannesburg, South Africa.

Re: Balls to the Wall, a 1 minute 1 trade EA

Post by cuzgeorge »

patman wrote:
cuzgeorge wrote:Hi all,
just a quick mention of what might be related to the time issue above. i havent updated to k yet, but this position was taken at the wrong time. Settings show my time is set to 11. criminal time is at 14 odd and my local computer time is at 16.
i like the position though, its just not supposed to be at this time.

highlighted are the times mentioned, only my computer time is not showing.
hope this helps, will browse myself a bit later and see if anything shows.
regards
cuz
Hi cuzgeorge,

My understanding and experience of balls is that (in your case) at 11 on your computer the EA made a horizontal line.
Then at 16 on your computer price went above the line and the indicator went from dark red to light red and Stocastic <50 so BUY
Order is placed
Then line is deleted and EA is doing "bugger all" until 11 tomorrow

At least that's what I think

pat
Yep, i gotta be more carefull with these pics i post :lol: :lol: :lol:

You're right, theres nothing in the code to mention the line gets removed after 'x' amount of time, i think unless i change the 24hr trading option and stop Balls from looking for that position.
food for thought. Thanks Wolfie.
it turns out the buy was good, now looking to see if i'll manually close it out.

I must say, JTH's method is far easier to trade than watching all the charts to see when to take the jump out. I would prefer to run JTH's system or look to leave Balls completely on it's own rather than manually trade. Very difficult to keep coming back to check all the charts because there are many factors to consider before jumping for that move.
cheers,
cuz
10.X, BMac,Xmeter,Marylin,and CaptsNakedTrading thread coupled with Slowkeys Intraday setup for manual trades.
http://www.stevehopwoodforex.com/phpBB3 ... f=36&t=848
johnlucas
Trader
Posts: 14
Joined: Tue Oct 02, 2012 2:15 pm

Re: Balls to the Wall, a 1 minute 1 trade EA

Post by johnlucas »

Hi everyone,

glad to have joined this forum!
I am backtesting this EA on 2 demo platforms.
On both it happens a strange occurrence: the EA, in ST, starts "well" (takes 3 trades), then it stops working (no more trades taken).
In the journal tab I see a "zero divide" error.

Has anyone experienced this, too?
Is there a way to fix it?

thank you in advance,

John.
User avatar
alex_forex
Trader
Posts: 438
Joined: Tue Nov 15, 2011 5:46 pm
Location: F R A N C E

Re: Balls to the Wall, a 1 minute 1 trade EA

Post by alex_forex »

Did you use the HistoricalData script ?
johnlucas
Trader
Posts: 14
Joined: Tue Oct 02, 2012 2:15 pm

Re: Balls to the Wall, a 1 minute 1 trade EA

Post by johnlucas »

Yes I did, but still receiving the same error...
Locked

Return to “Automated trading systems”