dsugums,
Are you running the EA with the 'UseStochastic' set to'True'?
Scalp the Little Gits, dsu
-
dsugums
- Trader
- Posts: 117
- Joined: Mon Jan 30, 2012 9:57 pm
Scalp the Little Gits, dsu
I am using it for my EA to filter out trades. If you set it to false, you get heaps of pending trades.goldcourse » Wed Jun 25, 2014 3:19 am wrote:dsugums,
Are you running the EA with the 'UseStochastic' set to'True'?
If I have 6 pairs running, I don't want all 6 pairs to take a trade. With stochastics, I am trying to increase the chances a few of the trades will go to target with momentum in our favour.
-
goldcourse
- Trader
- Posts: 48
- Joined: Tue Dec 27, 2011 2:18 am
Scalp the Little Gits, dsu
Thanks for the explanation. So... it is set to 'True' ?dsugums » Wed Jun 25, 2014 10:32 am wrote:I am using it for my EA to filter out trades. If you set it to false, you get heaps of pending trades.goldcourse » Wed Jun 25, 2014 3:19 am wrote:dsugums,
Are you running the EA with the 'UseStochastic' set to'True'?
If I have 6 pairs running, I don't want all 6 pairs to take a trade. With stochastics, I am trying to increase the chances a few of the trades will go to target with momentum in our favour.
-
dsugums
- Trader
- Posts: 117
- Joined: Mon Jan 30, 2012 9:57 pm
Scalp the Little Gits, dsu
Asian session was a sleepy hollow today as expected as no news came out from Oz, Japan or China. Did not set the EA to trade Asia today.
Now, lets see what Frank/London gives
Now, lets see what Frank/London gives
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Scalp the Little Gits, dsu
I was setting up new demos for comparison of the success of different settings, and discovered the cause of those 'divide by zero' errors and why they had not shown up on my platform.
It only affected those of you starting a new account with the later versions that calculated the profit percentage of the account balance at the start of the day.
The problem was indeed the StartBalance variable. StartBalance is calculated by subtracting the profits on closed trades from the current balance.
Empty4 regards your initial deposit as a profit trade. On a new account, your 'profit' would equal your current balance, and so StartBalance = 0, hence the divide by zero.
This is fixed in V 1f in post 1. Those of you who can, go to line 3453 (should be a blank line) and add this:
then recompile.
This works fine here. If anyone here has a Empty4 that shows a different comment in the deposit comment field, I will get around it by making this a user input.

It only affected those of you starting a new account with the later versions that calculated the profit percentage of the account balance at the start of the day.
The problem was indeed the StartBalance variable. StartBalance is calculated by subtracting the profits on closed trades from the current balance.
Empty4 regards your initial deposit as a profit trade. On a new account, your 'profit' would equal your current balance, and so StartBalance = 0, hence the divide by zero.
This is fixed in V 1f in post 1. Those of you who can, go to line 3453 (should be a blank line) and add this:
Code: Select all
if (OrderComment() == "Deposit")
continue;This works fine here. If anyone here has a Empty4 that shows a different comment in the deposit comment field, I will get around it by making this a user input.
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.
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.
- unionnone
- Trader
- Posts: 18
- Joined: Fri Jun 29, 2012 3:14 am
Scalp the Little Gits, dsu
nice one!!! i was there when udine start the thread!! and here is some EA 
Bear in mind that you cannnot win if you cannot afford to loss!!!
As long as you are following your rules, you wins.
As long as you are following your rules, you wins.
-
dsugums
- Trader
- Posts: 117
- Joined: Mon Jan 30, 2012 9:57 pm
-
nonlinear
- Trader
- Posts: 293
- Joined: Fri Jun 01, 2012 2:56 pm
- Location: Washington DC
Scalp the Little Gits, dsu
Hey guys, One suggestion for this EA. The daily open will vary depending upon your broker time, which will greatly affect results. Perhaps modify the EA to make an offset on the daily open. So if your broker or computer (either way is fine so long as you can count) is GMT+3, then your offset would be -3 to get a daily open on GMT 0 time.
Also, if you broker has a Sunday bar that can louse things up too. Be wary.
Also, if you broker has a Sunday bar that can louse things up too. Be wary.
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Scalp the Little Gits, dsu
Only one in NY - UJ. I typically only get one trade, because a filled one uses up all the available margin and so any attempt to fill a pending fails through lack of money. The trade has to close fairly quickly to allow others to fill.
Not complaining; that one trade represents 3% profit - not bad for one trade.
I am going to set up another demo to see what happens if I take lots of little trades instead of one big one. We shall see.
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.
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.
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Scalp the Little Gits, dsu
ds, you mentioned not taking trades when the market is too far from the D1 open price. Have you thought about having a MaxPipsFromOpen filter, or maybe a percentage of ATR? Either would take me about two minutes to code.

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.
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.

