Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (EternallyCurious, Quad, vicknick), 700 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Unanswered questions about EA #462388
09/26/16 15:31
09/26/16 15:31
Joined: Sep 2016
Posts: 20
France
J
JohanAu Offline OP
Newbie
JohanAu  Offline OP
Newbie
J

Joined: Sep 2016
Posts: 20
France
Hello everyone,

I am an Engineer with background in control theory and computer science.
I have started programing EA few months ago so I am kind of new and I have few questions for experienced developers.

I have developed a strategy by following the different step from http://www.financial-hacker.com/build-better-strategies-part-3-the-development-process/ (by the way this article is so great).

I have now in my hand a strategy that passed all the step described in this article.
By looking at the different trades that the strategy has done, the trades duration vary from 1 week to few weeks (the maximum is 24 weeks). This means that the trade are left open during weekends.

What are the rules for that ? I mean I find a lot of article on internet that warn about keeping the trades open during weekends. It is stated that if there is some bad news, then the price will open with a strong gap and the stop loss limit might suffer from slip.
I don't understand the rationale behind that, I mean the EURUSD currency is stable and it certainly won't fall off from Friday to Monday. What is your advice on it ?
If I need to close the trade during the weekends then the SR of strategy will decrease slightly and it became unprofitable.

Secondly, I am using the WFO analysis like explained in the workshop. Is it something that every strategy should have ?
The market is moving so the strategy need to be adapted somehow but what is the rules ? When do we need to retrain ? During DD or even when the strategy is profitable ?

The rules states is every 35 weeks but I guess it depend that timeframe of your algo...

Last question regards the money management, do you guys are using fixed lot or using a formula for that ?

Thank you by advance !

By the way, I think you guys from Zorro are doing a great work and the manual is perfectly done.
My aim is to also share my strategies !

Re: Unanswered questions about EA [Re: JohanAu] #462390
09/26/16 16:35
09/26/16 16:35
Joined: May 2016
Posts: 180
Prague
pcz Offline
Member
pcz  Offline
Member

Joined: May 2016
Posts: 180
Prague
I always leave trades open over the weekends. Maybe if there were really big news expected (something like Grexit or Brexit) I would stop the strategy but otherwise I think it unnecessarily decreases the profits. But it depends on the money management too...

That said - if the strategy becomes unprofitable when closing the trades over the weekends I would double check it if it really has enough edge.

Some strategies can be run without any optimalization. Sometimes, the optimalization can even decrease the robustness of the strategy. But when you optimize I think you have to decide for yourself what's the best retrain period for the particular strategy. You can run some experiments to determine that.

Re: Unanswered questions about EA [Re: pcz] #462393
09/27/16 06:40
09/27/16 06:40
Joined: Apr 2016
Posts: 27
Frankfurt, Germany
M
MIGI Offline
Newbie
MIGI  Offline
Newbie
M

Joined: Apr 2016
Posts: 27
Frankfurt, Germany
The EURUSD is not stable, it does not fit the economy of all the participating countries, i.e before Greece joined the Euro they had to pay double digit interests, after that they paid the same 4-5% like other strong countries. It was a nice time for the Greeks to earn money by paying lower interest, but there was a reason why they had to pay higher interests before. There is a high chance that the Euro will break within the next 5 years. If it breaks it will be over the weekend, because people cannot react quickly enough. On the day of the Brexit votum we had a 500 pip movement. This is the minimum you should be prepared if you hold EURUSD positions over the weekend. Just be prepared and use a smaller position.

WFO is good, but at the end you have just one optimal result, you don't know how the neighborhood looks like. I like this https://www.youtube.com/watch?v=B4ScXtiM3OE better. You can find Dave Waltons papers in the internet.

Moneymangement depends on the strategy. Most times I use fixed fractional, but there are strategies that always have a looser after a big winner. Then it is better to use fixed contracts. Other methods use volatiliy for positionsizing. A good book is Van Tharp - Definitive Guide to Position Sizing.

Re: Unanswered questions about EA [Re: MIGI] #462400
09/27/16 14:50
09/27/16 14:50
Joined: Sep 2016
Posts: 20
France
J
JohanAu Offline OP
Newbie
JohanAu  Offline OP
Newbie
J

Joined: Sep 2016
Posts: 20
France
Thank for your response guys.

I am looking a little bit more about position sizing.
In the training, the following money management formula is given:

Margin = 0.5 *OptimalF * Capital * sqrt(1 + ProfitClosed/Capital);

let say that capital=1000$
and with have only 1 asset so OptimalF=1

This mean that the margin is equal to half the capital ? This mean that you are likely to loose half of your capital for one trade ?

I think that is a bit too much. I don't understand how the lot is calculated, it shall be based on the stop limit isn't it ?

About the weekend, is it possible to lower the order size of your trade before the week end ?

Re: Unanswered questions about EA [Re: JohanAu] #463090
11/14/16 21:45
11/14/16 21:45
Joined: Nov 2016
Posts: 2
Alqahira
M
mecca Offline
Guest
mecca  Offline
Guest
M

Joined: Nov 2016
Posts: 2
Alqahira
Just a vey important question folks, i'm new in here. i have been battling myslf with is question and searching your fourm.

Is it possible to import an MT4 costume indicator because my strategy is based on an MT4 custom indicator and i have its source code ?

Re: Unanswered questions about EA [Re: mecca] #463116
11/15/16 23:53
11/15/16 23:53
Joined: Apr 2014
Posts: 482
Sydney, Australia
B
boatman Offline
Senior Member
boatman  Offline
Senior Member
B

Joined: Apr 2014
Posts: 482
Sydney, Australia
In general, yes. You just have to convert the MQL code to lite-C. Usually the lite-C implementation will be much more simple than the MQL version.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1