Forex Forum - EarnForex
Serving Traders Since 2005
 

Go Back   Forex Forum - EarnForex > MetaTrader > MetaTrader Expert Advisors

MetaTrader Expert Advisors Post and discuss the MetaTrader expert advisors here.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 13th December 2008, 13:43
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,444
Thanks: 6
Thanked 8 Times in 7 Posts
Default myRandom

Discuss myRandom expert advisor. myRandom is a completely random expert advisor with some input parameters for the user's control. You can ask any questions about this expert advisor here.
Reply With Quote
  #2 (permalink)  
Old 2nd May 2010, 08:53
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,444
Thanks: 6
Thanked 8 Times in 7 Posts
Default

myRandom EA is now available for MetaTrader 5.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #3 (permalink)  
Old 1st April 2011, 16:12
Default Avatar
Junior Member
 
Join Date: Apr 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default myrandom -- "hedging" not nfa compliant?

Somewhere on this forum is mention that this EA does some hedging, so my ibfx nfa compliant broker is no good for this EA?
Jerry
Reply With Quote
  #4 (permalink)  
Old 2nd April 2011, 07:48
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,444
Thanks: 6
Thanked 8 Times in 7 Posts
Default

Quote:
Originally Posted by batchboy View Post
Somewhere on this forum is mention that this EA does some hedging, so my ibfx nfa compliant broker is no good for this EA?
Jerry
Why? MetaTrader 5 version works nicely with FIFO. MT4 version may try to open orders in different directions, but if your broker adheres to NFA regulations, they will automatically close the position in case of opening a new one in an opposite direction.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #5 (permalink)  
Old 25th June 2011, 08:12
Default Avatar
Junior Member
 
Join Date: Apr 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Talking optimization

I ran optimizing on Finfx ecn acct mt4. Result is sl=40 & tp=300 and bar#=68 as result of looking for below 13% dd. 2000 bars = 4 mo 1hr gbpjpy.
Performance is $2000 profit on $2200 with 11% dd for 9 winning trades and 20 losers.
Anotherwords for every two 40 pip loser there is a 300 pip winner, not bad so I'm risking using on my real$ ecn acct. One section of test result has 5 losers in a row as worst case, even then the winner afterwards is ahead of the bad streak by 100 pips.
Tester is set to "open bar only" type testing. Often this misses tick performance that occurs in real life but in examining closely the results tab and where SL's got hit on playback chart bars its comforting seeing all ohlc of bars are taken into account by tester and it figures out each trade as if hitting sl's or tp's.
So wish me luck folks on real ecn acct.
Jerry
Reply With Quote
  #6 (permalink)  
Old 25th June 2011, 16:50
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,444
Thanks: 6
Thanked 8 Times in 7 Posts
Default

Quote:
Originally Posted by batchboy View Post
I ran optimizing on Finfx ecn acct mt4. Result is sl=40 & tp=300 and bar#=68 as result of looking for below 13% dd. 2000 bars = 4 mo 1hr gbpjpy.
Performance is $2000 profit on $2200 with 11% dd for 9 winning trades and 20 losers.
Anotherwords for every two 40 pip loser there is a 300 pip winner, not bad so I'm risking using on my real$ ecn acct. One section of test result has 5 losers in a row as worst case, even then the winner afterwards is ahead of the bad streak by 100 pips.
Tester is set to "open bar only" type testing. Often this misses tick performance that occurs in real life but in examining closely the results tab and where SL's got hit on playback chart bars its comforting seeing all ohlc of bars are taken into account by tester and it figures out each trade as if hitting sl's or tp's.
So wish me luck folks on real ecn acct.
Jerry
If you optimizing all the parameters to get such results on some past period, I strongly suggest against running it on real account. You've overoptimized it for the past period and the chances are that it won't work so well in forward-testing.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #7 (permalink)  
Old 26th November 2011, 10:03
Default Avatar
Junior Member
 
Join Date: Nov 2011
Posts: 24
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hello there,
Thankyou, this is very interesting.
I have been trading Forex for about an year now, and I can say that most of the time the Market is random due to News events, natural disasters, wars etc...
But the market can only go in 3 directions:
1)Ranging
2)Up
3)Down
When it goes Up or Down, it doesn't go in a straight line, but only in Fibonacci retracements. This is the only pattern that I see in Forex.
So the fact that you use a random entry period, is a very good idea to work with the Fib tracements.

Anyhow, with the myRandom ea suing default settings., if it opens 5 trades a month, there is only 1/6 chances 16% of chance you can loose, and 84% of chance of making a profit- ranging from small profits to large profits.

Its all about probability.
There's so many Eas out there that try to trade according to some pattern and most of them don't even reach 90% success rate- and there is no gurantee that is will continue to work in future market conditions. This is worry- better to change something that is random, which will work in all market conditions.
Like throwing a dice, how many times will 6 come up?
or 1 come up?

Thanks alot :-)
Tony
Reply With Quote
  #8 (permalink)  
Old 26th November 2011, 15:36
Default Avatar
Junior Member
 
Join Date: Nov 2011
Posts: 24
Thanks: 0
Thanked 1 Time in 1 Post
Default MM

Hello again,
Is it possible to include some sort of automatic money management to this?
%Risk of account?

Thanks,
Reply With Quote
  #9 (permalink)  
Old 26th November 2011, 16:50
Default Avatar
Junior Member
 
Join Date: Nov 2011
Posts: 24
Thanks: 0
Thanked 1 Time in 1 Post
Default More random,the better.

The more random it is, within a given boundaries, the better it is I think.
How about adding randomness to Tp, Sl and RandomEntry period?
The user still sets these parameters, but random no generator would allow to generate a value within +- 30pips of the value?
E.g. Tp = 600 pips, random generator within +-30pips range = -21,
hence Tp this time will be 579pips.

Also have a look at this comment from:
http://forum.mql4.com/36418/page2#387446
************************************************** *****
I use random entry/exit strategy EA's to capture a lot of information regarding the market dynamics. It speaks to entitlement, and the data itself are useful when applying statistical analysis of the market.

In my case I use "time" as my indicator. A position is taken at a random time, held open for a random amount of time, and then closed at a random time. The resultant P/L as well as MAE/MFE are tallied. Rinse and repeat on years of historical data. It's all MonteCarlo driven, then I do it a few thousands of times, pool the results, apply statistics.

With those results in hand I then have a benchmark by which I can assess the performance of any EA strategy I might consider entertaining. If it can't outperform the random strategy (and P/L is not the metric to optimize for in backtesting) then its worthless.

Oh and one lesson learned in the creation of my random entry/exit EA is that one person's idea of "random" is another person's definition of "biased". You should have some expectation of what a truly random strategy ought to produce in terms of results.

In my case the results set me back because of their true simplicity:
Reply With Quote
  #10 (permalink)  
Old 26th November 2011, 19:28
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,444
Thanks: 6
Thanked 8 Times in 7 Posts
Default

Thanks for info, Tony! I will consider your suggestions.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
Reply

Bookmarks

Tags
expert advisor, metatrader, mt4


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:41.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Inactive Reminders By Icora Web Design

SEO by vBSEO 3.3.2