You are currently not signed in.

Please sign in or register.

RULES ARE GOOD :)

Página: 1
Sep 02, 2012 03:09 pm
#1
realincome Mirrorbeta

Postagens: 13
Membro desde: 27/08/2012

Ok, so I am a persistent son of a gun and so have fiddled with robot building for over 3 years, you could say I have a few good ones now, I have in built so many in the past that my head spins sometimes lol ;)

Anyway, this morning I was "fiddling" with an old account, which has an old version on it and decided to bring a few of its features up to date a bit. 

It made me think about this forum, as  I have very specific rules for all my robots (ie, my single trade robots ONLY make profits, ie 100% - thats a good one right there ), and I would like to share them with you, perhaps it might help you if your into this crazy type of coding.

MY ROBOT BUILDING RULES :-

The main rule is this -, if it did a trade in live trading or in a backtest, I expect to see the EXACT trade in both lof them, no compromises, ther can be no exceptions. Now I often see it writen that backtests are not teh same as forward tests - WHAT A LOT OF GUFF - the truth is the robot has simply been "curve fitted". ( Thats just plain cheating in my language folks haha. )

Moving on, another of my funny rules is that I NEVER download back history, what I get from my broker, is what I got, and thats it. MY broker may delay my trades 1700ms and be slower than a packmule going up a mountain trail, they may charge me 3 pips spread, they may heavily filter their feeds, they may "snag" the occasional pip from me ( I have software that checks haha), but by gum they work with my robots and thats what counts, the reason my robots work is entirely due to not playing about with the data ! Why not you may ask ... well folks .. its because it makes my brokers very PREDICTABLE - and thats what indicators are good at, trying to predict where the market is going, based on wheres its been. So next time your tempted to get 3 years of data -  just wait 3 years haha.

Another golden  rule is that I only backtest for the past 6 months or so, the market is not the same as last year, so why bother with it, I tested then anyway, so why redo it all, after you have been building, tweaking and testing for a few years you will see it makes sense, stop worrying about the past and try to figure out where the market will go in say .. the next 5-15 minutes .. that shouldn't require to much backtesting what :)

Ok, so we have predictable data, robots that do what they say on the tin, up to date testing, and what else ...

Well, if I was to give anyone any advice on what to add to a robot, it would be this ...

   if ( DayOfWeek()==1 || DayOfWeek()==5) {return(0);}

 

Now don't get me wrong, it took me several years to even dare to add that, as it kinda contravens one of my other rules ( well apart from DON'T FIDDLE WITH INDICATOR SETTINGS that is haha - almost forgot that one - always use the default values - or your just "curve fitting" , theres that expression again folks haha , well its so easy to do and to fool yourself - if you have just realised that is what you have done recently - my work here is done :) ), the rule being ...

NO TIME RESTRICTIONS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

So you can understand my "trepidation, would I be breaking this rule by not trading certain days, well I struggled for several years with absolutely no time or day restrictions, no news restrictions of any kind, nothing, but plain old indicators, and I do alright, but WOWWWWEEEEEEEE .. when I added that ( ok not exactly that, I did put start n finish times for those days in haha, but het I'm not here to build your robot for you lmao )you can imagine my surprise when a robot with a drawdown of 15-18% MAX, suddenly went down to 2-3% max drawdown, even doing a longer test (for me) of this year only brought it up to 5-8%, and finally 4-6% drawdown.

 

Nice you may say, but so what, you simply do less trading... DO I ????

 

NO !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 

The robot openned and closed MORE TRADES !!!

 

Well you can imagine my ASTONISHMENT

 

Enjoy :)

 

I look forward to reading all your robot rules, or if you try that bit of code and find .. NIRVANA, like I did...

Steve

Sep 09, 2012 02:46 pm
Champ User

Postagens: 711
Membro desde: 17/05/2011

The main rule is this -, if it did a trade in live trading or in a backtest, I expect to see the EXACT trade in both lof them, no compromises, ther can be no exceptions. Now I often see it writen that backtests are not teh same as forward tests - WHAT A LOT OF GUFF - the truth is the robot has simply been "curve fitted". ( Thats just plain cheating in my language folks haha.


How is it possible. Do u mean they developers do some kind of cheating to make it profitable in backtests?

http://www.fxstat.com/widget/link?t=tiny&c=1&s=24959&o1=growth&o2=drawdown&o3=profitfactor

Oct 23, 2012 04:24 am

Postagens: 939
Membro desde: 21/04/2011

Rules r meant to provide good management. In forex trading it means managing ur risk and money. When making an EA, u need to check if ur rules r following risk and money management rules. 

Stick to your rules

Oct 27, 2012 09:06 am
Jogi User

Postagens: 685
Membro desde: 06/06/2011

 if it did a trade in live trading or in a backtest, I expect to see the EXACT trade in both lof them, no compromises, ther can be no exceptions


Thats a good rule. If robot is performing good in backtests but with live account it fails then it is simply curve fitted robot, used to scam other people. 

http://www.fxstat.com/widget/link?t=wide&c=1&s=26883&o1=growth&o2=drawdown&o3=monthly&o4=equity

Nov 01, 2012 07:06 am
illiterate User

Postagens: 561
Membro desde: 21/04/2011

If a forex trader is also a developer and wants to develop an EA for himself, he will surely try to make best. Some will define rules before making a robot and some will start making robots without any rules. No doubt, in the end, profitability matters. But preplanning matters a lot.

https://www.fxstat.com/widget/link?t=medium&c=1&s=25892&o1=growth&o2=drawdown&o3=monthly&o4=equity

Nov 12, 2012 04:42 am
Sasha User

Postagens: 836
Membro desde: 16/05/2011

To make an EA u need a strategy. So rules will be of strategy and not of EA. It is not like u develop an EA and continue making strategy. So if u r having strict rules for ur strategy then u will obviously make good EA ( if ur developing skills r also excellent ).

Página: 1