stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Once Upon A Timeframe
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3685
Page 4 of 8
Author:  Radar [ Tue Jul 29, 2014 9:14 am ]
Post subject:  Once Upon A Timeframe

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^)
Author:  Elixe [ Tue Jul 29, 2014 9:22 am ]
Post subject:  Once Upon A Timeframe

Radar » 1 minute ago wrote:(I hope OrderProfit() takes swap and commission into account).
Nope :mrgreen:

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());
}
Author:  Radar [ Tue Jul 29, 2014 9:32 am ]
Post subject:  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^)
Author:  SteveHopwood [ Tue Jul 29, 2014 10:21 pm ]
Post subject:  Once Upon A Timeframe

Version 1i (I'm going to have to find a larger alphabet) here...
I feel your pain. :arrrg:

:xm:
Author:  Radar [ Wed Jul 30, 2014 2:19 pm ]
Post subject:  Once Upon A Timeframe

SteveHopwood » Wed Jul 30, 2014 7:51 am wrote:
Version 1i (I'm going to have to find a larger alphabet) here...
I feel your pain. :arrrg:

:xm:
LOL!

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^)
Author:  banzak [ Thu Jul 31, 2014 4:32 pm ]
Post subject:  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:
screenshot.22.jpg
screenshot.23.jpg
Regards,
Banzak
Author:  currymonster [ Thu Jul 31, 2014 9:26 pm ]
Post subject:  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
Author:  banzak [ Thu Jul 31, 2014 9:47 pm ]
Post subject:  Once Upon A Timeframe

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
Hi,

I fixed this by compiling the mql again, then it worked.

Regards,
Banzak
Author:  currymonster [ Thu Jul 31, 2014 10:09 pm ]
Post subject:  Once Upon A Timeframe

banzak » Thu Jul 31, 2014 9:47 pm wrote:
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
Hi,

I fixed this by compiling the mql again, then it worked.

Regards,
Banzak
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.
Author:  banzak [ Thu Jul 31, 2014 10:58 pm ]
Post subject:  Once Upon A Timeframe

currymonster » 01 Aug 2014, 00:09 wrote:
banzak » Thu Jul 31, 2014 9:47 pm wrote:
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
Hi,

I fixed this by compiling the mql again, then it worked.

Regards,
Banzak
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.
Let it be attached and compile it again.
All times are UTC Page 4 of 8