Hey Gang,
Another minor update...
Changed the basket profit calculation, (I hope OrderProfit() takes swap and commission into account).
The EA now appends the MagicNumber to all GlobalVariable names, so that you can have multiple copies running on the same instance of Empty4... Kinda handy if you want to play the Asian pairs during the Asian session, etc...
Update is here... http://www.stevehopwoodforex.com/phpBB3 ... 556#p94556
Have fun!
Radar =8^)
Once Upon A Timeframe
-
Radar
- Trader
- Posts: 437
- Joined: Fri Mar 23, 2012 5:39 pm
- Location: Round the bend ;)
Once Upon A Timeframe
Check out my new, (well, old now), manual trade & automatic scale-in manager,
StackManV2
StackManV2
- Elixe
- Trader
- Posts: 98
- Joined: Tue Jun 04, 2013 6:44 pm
- Location: France
Once Upon A Timeframe
NopeRadar » 1 minute ago wrote:(I hope OrderProfit() takes swap and commission into account).
OrderProfit() : The net profit value (without swaps or commissions) for the selected order.
But there's OrderCommission() and OrderSwap()
Provided your order is already selected, this little function might work :
Code: Select all
double OrderNetProfit()
{
return (OrderProfit()+OrderSwap()+OrderCommission());
}-
Radar
- Trader
- Posts: 437
- Joined: Fri Mar 23, 2012 5:39 pm
- Location: Round the bend ;)
Once Upon A Timeframe
Bummer!

Thanks for that, Elixe
Version 1i (I'm going to have to find a larger alphabet) here...
http://www.stevehopwoodforex.com/phpBB3 ... 556#p94556
Have fun!
Radar =8^)
Thanks for that, Elixe
Version 1i (I'm going to have to find a larger alphabet) here...
http://www.stevehopwoodforex.com/phpBB3 ... 556#p94556
Have fun!
Radar =8^)
Check out my new, (well, old now), manual trade & automatic scale-in manager,
StackManV2
StackManV2
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Once Upon A Timeframe
I feel your pain.Version 1i (I'm going to have to find a larger alphabet) here...
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.
-
Radar
- Trader
- Posts: 437
- Joined: Fri Mar 23, 2012 5:39 pm
- Location: Round the bend ;)
Once Upon A Timeframe
LOL!SteveHopwood » Wed Jul 30, 2014 7:51 am wrote:I feel your pain.Version 1i (I'm going to have to find a larger alphabet) here...![]()
And to push the point...
Basket StopLoss wasn't getting updated when BreakEven was achieved
Version 1j is here... http://www.stevehopwoodforex.com/phpBB3 ... 556#p94556
Have fun!
Radar =8^)
Check out my new, (well, old now), manual trade & automatic scale-in manager,
StackManV2
StackManV2
- banzak
- Trader
- Posts: 79
- Joined: Thu Dec 13, 2012 1:54 pm
- Location: Zgorzelec / Poland
Once Upon A Timeframe
Hi Radar,
thank you for that great EA. I've put it OOTB 2 days ago on my little live account, where I'm testing different EA's once in a while.
Here I want to share the impressing results: Regards,
Banzak
thank you for that great EA. I've put it OOTB 2 days ago on my little live account, where I'm testing different EA's once in a while.
Here I want to share the impressing results: Regards,
Banzak
You do not have the required permissions to view the files attached to this post.
_________________________________________________________________________
It is better to go on a new path to mislead than to follow the mass on the right track.
It is better to go on a new path to mislead than to follow the mass on the right track.
-
currymonster
- Trader
- Posts: 99
- Joined: Wed Nov 16, 2011 8:37 pm
Once Upon A Timeframe
currymonster » Mon Jul 21, 2014 10:33 pm wrote:Think Steve will tazer me for asking, but the EA on a GP demo eur usd D1 chart comes up with in the EA tab
2014.07.21 23:17:40.199 Once a Day basket trader v1_d with MTFTM EURUSD.G,Daily: uninit reason 8
2014.07.21 23:17:40.199 Once a Day basket trader v1_d with MTFTM EURUSD.G,Daily: initialization failed (-1)
So looking at the reason codes on Empty4........
Constant
Value
Still getting problems with this on a profiforex teeny live account, somehow got it going eventually on a global prime account .
Seem to be problems on mql 4 FORUM, http://forum.mql4.com/13803
Has anyone got a fix for this?
Cheers
- banzak
- Trader
- Posts: 79
- Joined: Thu Dec 13, 2012 1:54 pm
- Location: Zgorzelec / Poland
Once Upon A Timeframe
Hi,currymonster » 31 Jul 2014, 23:26 wrote:currymonster » Mon Jul 21, 2014 10:33 pm wrote:Think Steve will tazer me for asking, but the EA on a GP demo eur usd D1 chart comes up with in the EA tab
2014.07.21 23:17:40.199 Once a Day basket trader v1_d with MTFTM EURUSD.G,Daily: uninit reason 8
2014.07.21 23:17:40.199 Once a Day basket trader v1_d with MTFTM EURUSD.G,Daily: initialization failed (-1)
So looking at the reason codes on Empty4........
Constant
Value
Still getting problems with this on a profiforex teeny live account, somehow got it going eventually on a global prime account .
Seem to be problems on mql 4 FORUM, http://forum.mql4.com/13803
Has anyone got a fix for this?
Cheers
I fixed this by compiling the mql again, then it worked.
Regards,
Banzak
_________________________________________________________________________
It is better to go on a new path to mislead than to follow the mass on the right track.
It is better to go on a new path to mislead than to follow the mass on the right track.
-
currymonster
- Trader
- Posts: 99
- Joined: Wed Nov 16, 2011 8:37 pm
Once Upon A Timeframe
I tried that - opened the EA in metaeditor and compiled, but when I atached to the chart again, the same errors, frustrating, thanks though Banzak.banzak » Thu Jul 31, 2014 9:47 pm wrote:Hi,currymonster » 31 Jul 2014, 23:26 wrote:currymonster » Mon Jul 21, 2014 10:33 pm wrote:Think Steve will tazer me for asking, but the EA on a GP demo eur usd D1 chart comes up with in the EA tab
2014.07.21 23:17:40.199 Once a Day basket trader v1_d with MTFTM EURUSD.G,Daily: uninit reason 8
2014.07.21 23:17:40.199 Once a Day basket trader v1_d with MTFTM EURUSD.G,Daily: initialization failed (-1)
So looking at the reason codes on Empty4........
Constant
Value
Still getting problems with this on a profiforex teeny live account, somehow got it going eventually on a global prime account .
Seem to be problems on mql 4 FORUM, http://forum.mql4.com/13803
Has anyone got a fix for this?
Cheers
I fixed this by compiling the mql again, then it worked.
Regards,
Banzak
- banzak
- Trader
- Posts: 79
- Joined: Thu Dec 13, 2012 1:54 pm
- Location: Zgorzelec / Poland
Once Upon A Timeframe
Let it be attached and compile it again.currymonster » 01 Aug 2014, 00:09 wrote:I tried that - opened the EA in metaeditor and compiled, but when I atached to the chart again, the same errors, frustrating, thanks though Banzak.banzak » Thu Jul 31, 2014 9:47 pm wrote:Hi,currymonster » 31 Jul 2014, 23:26 wrote:currymonster » Mon Jul 21, 2014 10:33 pm wrote:Think Steve will tazer me for asking, but the EA on a GP demo eur usd D1 chart comes up with in the EA tab
2014.07.21 23:17:40.199 Once a Day basket trader v1_d with MTFTM EURUSD.G,Daily: uninit reason 8
2014.07.21 23:17:40.199 Once a Day basket trader v1_d with MTFTM EURUSD.G,Daily: initialization failed (-1)
So looking at the reason codes on Empty4........
Constant
Value
Still getting problems with this on a profiforex teeny live account, somehow got it going eventually on a global prime account .
Seem to be problems on mql 4 FORUM, http://forum.mql4.com/13803
Has anyone got a fix for this?
Cheers
I fixed this by compiling the mql again, then it worked.
Regards,
Banzak
_________________________________________________________________________
It is better to go on a new path to mislead than to follow the mass on the right track.
It is better to go on a new path to mislead than to follow the mass on the right track.