Once Upon A Timeframe

Post Reply
Haggadah
Trader
Posts: 154
Joined: Sat Dec 03, 2011 12:01 pm

Once Upon A Timeframe

Post by Haggadah »

Radar,

The attached pic I am posting shows that the EA is closing trades very early. Is there an option to turn on and off the Take Profit portion of the EA. I would prepare closing profitable trades manually.

Thank you,

Haggadah
You do not have the required permissions to view the files attached to this post.
Radar
Trader
Posts: 437
Joined: Fri Mar 23, 2012 5:39 pm
Location: Round the bend ;)

Once Upon A Timeframe

Post by Radar »

Hey Haggedah,
Haggadah » Tue Jul 15, 2014 8:50 pm wrote:Radar,

The attached pic I am posting shows that the EA is closing trades very early. Is there an option to turn on and off the Take Profit portion of the EA. I would prepare closing profitable trades manually.

Thank you,

Haggadah
If you don't want to use a TakeProfit, set both "D1_CashProfitTarget" and "D1_CashProfitTargetPerTrade" to zero.

The trades in your pic all closed at the correct time, though, (they were open for 8 hours, which is what you have for your current settings (Open trades at 08:00, close them at 16:00 your Local time (15:00 to 23:00 Broker time)). If you want your trades to stay open longer, change your settings ;)

Have fun!

Radar =8^)
Check out my new, (well, old now), manual trade & automatic scale-in manager,
StackManV2
Haggadah
Trader
Posts: 154
Joined: Sat Dec 03, 2011 12:01 pm

Once Upon A Timeframe

Post by Haggadah »

Radar » Tue Jul 15, 2014 11:38 am wrote:Hey Haggedah,

If you don't want to use a TakeProfit, set both "D1_CashProfitTarget" and "D1_CashProfitTargetPerTrade" to zero.

The trades in your pic all closed at the correct time, though, (they were open for 8 hours, which is what you have for your current settings (Open trades at 08:00, close them at 16:00 your Local time (15:00 to 23:00 Broker time)). If you want your trades to stay open longer, change your settings ;)

Have fun!

Radar =8^)
Radar,

Thank you. Now I am getting an idea how the EA works. Will update you of any progress in my demo.

Cheers,

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

Once Upon A Timeframe

Post by SteveHopwood »

Lots of 'invalid stops' errors when trying to move the SL to breakeven, Radar, so I had a look at the code and saw the cause straight away.

You have used 'Digits' instead of 'digits' in lines:
598
603
1375
1386
1448/9
1464/2

If you have done fresh work on the code and the line numbers are incorrect now, just do a 'Match case' search for 'Digits'.

:xm:
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.
Radar
Trader
Posts: 437
Joined: Fri Mar 23, 2012 5:39 pm
Location: Round the bend ;)

Once Upon A Timeframe

Post by Radar »

SteveHopwood » Wed Jul 16, 2014 8:37 pm wrote:Lots of 'invalid stops' errors when trying to move the SL to breakeven, Radar, so I had a look at the code and saw the cause straight away.

You have used 'Digits' instead of 'digits' in lines:
598
603
1375
1386
1448/9
1464/2

If you have done fresh work on the code and the line numbers are incorrect now, just do a 'Match case' search for 'Digits'.

:xm:
Thanks, Steve :)

Fixed EA in post 2.

Have fun!

Radar =8^)
Check out my new, (well, old now), manual trade & automatic scale-in manager,
StackManV2
User avatar
remix919
Trader
Posts: 91
Joined: Wed Jan 23, 2013 2:42 am
Location: Some Road in the USA

Once Upon A Timeframe

Post by remix919 »

Hey, just want to confirm, this is a basket trader EA so I can just put it on 1 EURUSD Daily chart and that's it right?
EA's are the best way to trade. Why? Because they take the emotion out of trading.
Radar
Trader
Posts: 437
Joined: Fri Mar 23, 2012 5:39 pm
Location: Round the bend ;)

Once Upon A Timeframe

Post by Radar »

remix919 » Sat Jul 19, 2014 1:41 am wrote:Hey, just want to confirm, this is a basket trader EA so I can just put it on 1 EURUSD Daily chart and that's it right?
Yep, Remix, it's a basket case ;)

No, wait, that's me! ;)

Put it on a single chart, unless you find that some symbols have a better set of start/stop times.

Have fun!

Radar =8^)
Check out my new, (well, old now), manual trade & automatic scale-in manager,
StackManV2
currymonster
Trader
Posts: 99
Joined: Wed Nov 16, 2011 8:37 pm

Once Upon A Timeframe

Post by currymonster »

Thanks guys have set up a demo. Will let it run and see how it does, thanks Radar and Steve :D
currymonster
Trader
Posts: 99
Joined: Wed Nov 16, 2011 8:37 pm

Once Upon A Timeframe

Post by currymonster »

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
Description
REASON_PROGRAM
0
Expert Advisor terminated its operation by calling the ExpertRemove() function
REASON_REMOVE
1
Program has been deleted from the chart
REASON_RECOMPILE
2
Program has been recompiled
REASON_CHARTCHANGE
3
Symbol or chart period has been changed
REASON_CHARTCLOSE
4
Chart has been closed
REASON_PARAMETERS
5
Input parameters have been changed by a user
REASON_ACCOUNT
6
Another account has been activated or reconnection to the trade server has occurred due to changes in the account settings
REASON_TEMPLATE
7
A new template has been applied
REASON_INITFAILED
8
This value means that OnInit() handler has returned a nonzero value
REASON_CLOSE
9
Terminal has been closed


the reason 8 code means nowt to me I'm afraid as a dumkopf non coder - I deserve flaming, but anyone help me out as to a possible cause?

Many thanks and apologees Steve!
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.

Once Upon A Timeframe

Post by SteveHopwood »

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

etc

Many thanks and apologees Steve!
Well, leaving aside the fact that I do not tazer my old buddies from Way Back When, this isn't my thread.

Doesn't mean you haven't balsed something up, just that I neither have to worry about it nor tazer you for it.

:xm:
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.
Post Reply

Return to “Automated trading systems”